Initial
This commit is contained in:
		
							
								
								
									
										202
									
								
								Repositories/Migrations/20210706081036_v1.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										202
									
								
								Repositories/Migrations/20210706081036_v1.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,202 @@ | ||||
| // <auto-generated /> | ||||
| using System; | ||||
| using Microsoft.EntityFrameworkCore; | ||||
| using Microsoft.EntityFrameworkCore.Infrastructure; | ||||
| using Microsoft.EntityFrameworkCore.Migrations; | ||||
| using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||||
| using Repositories; | ||||
|  | ||||
| namespace Repositories.Migrations | ||||
| { | ||||
|     [DbContext(typeof(FwDbContext))] | ||||
|     [Migration("20210706081036_v1")] | ||||
|     partial class v1 | ||||
|     { | ||||
|         protected override void BuildTargetModel(ModelBuilder modelBuilder) | ||||
|         { | ||||
| #pragma warning disable 612, 618 | ||||
|             modelBuilder | ||||
|                 .HasAnnotation("ProductVersion", "3.1.16") | ||||
|                 .HasAnnotation("Relational:MaxIdentifierLength", 64); | ||||
|  | ||||
|             modelBuilder.Entity("Datamodels.DatabaseModels.Address", b => | ||||
|                 { | ||||
|                     b.Property<long>("Id") | ||||
|                         .ValueGeneratedOnAdd() | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<long?>("AddressTypeId") | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<DateTime>("ChangedAt") | ||||
|                         .HasColumnType("datetime(6)"); | ||||
|  | ||||
|                     b.Property<string>("City") | ||||
|                         .HasColumnType("longtext CHARACTER SET utf8mb4"); | ||||
|  | ||||
|                     b.Property<DateTime>("CreatedAt") | ||||
|                         .HasColumnType("datetime(6)"); | ||||
|  | ||||
|                     b.Property<long?>("PersonId") | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<string>("StreetName") | ||||
|                         .HasColumnType("longtext CHARACTER SET utf8mb4"); | ||||
|  | ||||
|                     b.Property<int>("StreetNumber") | ||||
|                         .HasColumnType("int"); | ||||
|  | ||||
|                     b.Property<string>("Zip") | ||||
|                         .HasColumnType("longtext CHARACTER SET utf8mb4"); | ||||
|  | ||||
|                     b.HasKey("Id"); | ||||
|  | ||||
|                     b.HasIndex("AddressTypeId"); | ||||
|  | ||||
|                     b.HasIndex("PersonId"); | ||||
|  | ||||
|                     b.ToTable("Address"); | ||||
|                 }); | ||||
|  | ||||
|             modelBuilder.Entity("Datamodels.DatabaseModels.Communication", b => | ||||
|                 { | ||||
|                     b.Property<long>("Id") | ||||
|                         .ValueGeneratedOnAdd() | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<DateTime>("ChangedAt") | ||||
|                         .HasColumnType("datetime(6)"); | ||||
|  | ||||
|                     b.Property<long?>("CommunicationTypeId") | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<string>("CommunicationValue") | ||||
|                         .HasColumnType("longtext CHARACTER SET utf8mb4"); | ||||
|  | ||||
|                     b.Property<DateTime>("CreatedAt") | ||||
|                         .HasColumnType("datetime(6)"); | ||||
|  | ||||
|                     b.Property<long?>("PersonId") | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.HasKey("Id"); | ||||
|  | ||||
|                     b.HasIndex("CommunicationTypeId"); | ||||
|  | ||||
|                     b.HasIndex("PersonId"); | ||||
|  | ||||
|                     b.ToTable("Communication"); | ||||
|                 }); | ||||
|  | ||||
|             modelBuilder.Entity("Datamodels.DatabaseModels.Person", b => | ||||
|                 { | ||||
|                     b.Property<long>("Id") | ||||
|                         .ValueGeneratedOnAdd() | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<DateTime?>("Birthday") | ||||
|                         .HasColumnType("datetime(6)"); | ||||
|  | ||||
|                     b.Property<DateTime>("ChangedAt") | ||||
|                         .HasColumnType("datetime(6)"); | ||||
|  | ||||
|                     b.Property<DateTime>("CreatedAt") | ||||
|                         .HasColumnType("datetime(6)"); | ||||
|  | ||||
|                     b.Property<string>("FirstName") | ||||
|                         .HasColumnType("longtext CHARACTER SET utf8mb4"); | ||||
|  | ||||
|                     b.Property<long?>("GenderId") | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<bool>("IsActive") | ||||
|                         .HasColumnType("tinyint(1)"); | ||||
|  | ||||
|                     b.Property<string>("LastName") | ||||
|                         .HasColumnType("longtext CHARACTER SET utf8mb4"); | ||||
|  | ||||
|                     b.HasKey("Id"); | ||||
|  | ||||
|                     b.HasIndex("GenderId"); | ||||
|  | ||||
|                     b.ToTable("Person"); | ||||
|                 }); | ||||
|  | ||||
|             modelBuilder.Entity("Datamodels.Lookups.LookupCategory", b => | ||||
|                 { | ||||
|                     b.Property<long>("Id") | ||||
|                         .ValueGeneratedOnAdd() | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<string>("CategoryName") | ||||
|                         .HasColumnType("longtext CHARACTER SET utf8mb4"); | ||||
|  | ||||
|                     b.Property<bool>("IsActive") | ||||
|                         .HasColumnType("tinyint(1)"); | ||||
|  | ||||
|                     b.HasKey("Id"); | ||||
|  | ||||
|                     b.ToTable("LookupCategories"); | ||||
|                 }); | ||||
|  | ||||
|             modelBuilder.Entity("Datamodels.Lookups.LookupValue", b => | ||||
|                 { | ||||
|                     b.Property<long>("Id") | ||||
|                         .ValueGeneratedOnAdd() | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<bool>("IsActive") | ||||
|                         .HasColumnType("tinyint(1)"); | ||||
|  | ||||
|                     b.Property<long?>("LookupCategoryId") | ||||
|                         .HasColumnType("bigint"); | ||||
|  | ||||
|                     b.Property<string>("Value") | ||||
|                         .HasColumnType("longtext CHARACTER SET utf8mb4"); | ||||
|  | ||||
|                     b.HasKey("Id"); | ||||
|  | ||||
|                     b.HasIndex("LookupCategoryId"); | ||||
|  | ||||
|                     b.ToTable("LookupValues"); | ||||
|                 }); | ||||
|  | ||||
|             modelBuilder.Entity("Datamodels.DatabaseModels.Address", b => | ||||
|                 { | ||||
|                     b.HasOne("Datamodels.Lookups.LookupValue", "AddressType") | ||||
|                         .WithMany() | ||||
|                         .HasForeignKey("AddressTypeId"); | ||||
|  | ||||
|                     b.HasOne("Datamodels.DatabaseModels.Person", "Person") | ||||
|                         .WithMany("Addresses") | ||||
|                         .HasForeignKey("PersonId"); | ||||
|                 }); | ||||
|  | ||||
|             modelBuilder.Entity("Datamodels.DatabaseModels.Communication", b => | ||||
|                 { | ||||
|                     b.HasOne("Datamodels.Lookups.LookupValue", "CommunicationType") | ||||
|                         .WithMany() | ||||
|                         .HasForeignKey("CommunicationTypeId"); | ||||
|  | ||||
|                     b.HasOne("Datamodels.DatabaseModels.Person", "Person") | ||||
|                         .WithMany("Communications") | ||||
|                         .HasForeignKey("PersonId"); | ||||
|                 }); | ||||
|  | ||||
|             modelBuilder.Entity("Datamodels.DatabaseModels.Person", b => | ||||
|                 { | ||||
|                     b.HasOne("Datamodels.Lookups.LookupValue", "Gender") | ||||
|                         .WithMany() | ||||
|                         .HasForeignKey("GenderId"); | ||||
|                 }); | ||||
|  | ||||
|             modelBuilder.Entity("Datamodels.Lookups.LookupValue", b => | ||||
|                 { | ||||
|                     b.HasOne("Datamodels.Lookups.LookupCategory", "LookupCategory") | ||||
|                         .WithMany("LookupValues") | ||||
|                         .HasForeignKey("LookupCategoryId"); | ||||
|                 }); | ||||
| #pragma warning restore 612, 618 | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user