181 lines
7.2 KiB
C#
181 lines
7.2 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using BlazorSyncfusionCrm.Server.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace BlazorSyncfusionCrm.Server.Migrations
|
|
{
|
|
[DbContext(typeof(DataContext))]
|
|
partial class DataContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.0-preview.3.23174.2")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("BlazorSyncfusionCrm.Shared.Contact", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateDeleted")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DateOfBirth")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateUpdated")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FirstName")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("LastName")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<double?>("Latitude")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double?>("Longitude")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("NickName")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Place")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Contacts");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = 1,
|
|
DateCreated = new DateTime(2023, 4, 20, 22, 9, 23, 469, DateTimeKind.Local).AddTicks(6899),
|
|
DateDeleted = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
DateOfBirth = new DateTime(2001, 8, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
DateUpdated = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
FirstName = "Peter",
|
|
IsDeleted = false,
|
|
LastName = "Parker",
|
|
NickName = "Spider-Man",
|
|
Place = "New York City"
|
|
},
|
|
new
|
|
{
|
|
Id = 2,
|
|
DateCreated = new DateTime(2023, 4, 20, 22, 9, 23, 469, DateTimeKind.Local).AddTicks(6903),
|
|
DateDeleted = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
DateOfBirth = new DateTime(1970, 5, 29, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
DateUpdated = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
FirstName = "Tony",
|
|
IsDeleted = false,
|
|
LastName = "Stark",
|
|
NickName = "Iron Man",
|
|
Place = "Malibu"
|
|
},
|
|
new
|
|
{
|
|
Id = 3,
|
|
DateCreated = new DateTime(2023, 4, 20, 22, 9, 23, 469, DateTimeKind.Local).AddTicks(6906),
|
|
DateDeleted = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
DateOfBirth = new DateTime(1915, 4, 7, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
DateUpdated = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
FirstName = "Bruce",
|
|
IsDeleted = false,
|
|
LastName = "Wayne",
|
|
NickName = "Batman",
|
|
Place = "Gotham City"
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("BlazorSyncfusionCrm.Shared.Note", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<int?>("ContactId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Text")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ContactId");
|
|
|
|
b.ToTable("Notes");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = 1,
|
|
ContactId = 1,
|
|
DateCreated = new DateTime(2023, 4, 20, 22, 9, 23, 469, DateTimeKind.Local).AddTicks(7002),
|
|
Text = "With great power comes great responsibility."
|
|
},
|
|
new
|
|
{
|
|
Id = 2,
|
|
ContactId = 2,
|
|
DateCreated = new DateTime(2023, 4, 20, 22, 9, 23, 469, DateTimeKind.Local).AddTicks(7006),
|
|
Text = "I'm Iron Man."
|
|
},
|
|
new
|
|
{
|
|
Id = 3,
|
|
ContactId = 3,
|
|
DateCreated = new DateTime(2023, 4, 20, 22, 9, 23, 469, DateTimeKind.Local).AddTicks(7007),
|
|
Text = "I'm Batman!."
|
|
});
|
|
});
|
|
|
|
modelBuilder.Entity("BlazorSyncfusionCrm.Shared.Note", b =>
|
|
{
|
|
b.HasOne("BlazorSyncfusionCrm.Shared.Contact", "Contact")
|
|
.WithMany("Notes")
|
|
.HasForeignKey("ContactId");
|
|
|
|
b.Navigation("Contact");
|
|
});
|
|
|
|
modelBuilder.Entity("BlazorSyncfusionCrm.Shared.Contact", b =>
|
|
{
|
|
b.Navigation("Notes");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|