diff --git a/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj b/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj index 8731cf9..3bd3e45 100644 --- a/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj +++ b/src/UDS.Net.API.Client/UDS.Net.API.Client.csproj @@ -4,13 +4,13 @@ netstandard2.1 Library UDS.Net.API.Client - 1.5.0 + 1.5.1 Sanders-Brown Center on Aging UDS client library for using UDS.Net.API UK-SBCoA Client library for API https://github.com/UK-SBCoA/uniform-data-set-dotnet-api - 1.5.0 + 1.5.1 diff --git a/src/UDS.Net.API/Data/Migrations/20230912204138_change-respothx-type.Designer.cs b/src/UDS.Net.API/Data/Migrations/20230912204138_change-respothx-type.Designer.cs new file mode 100644 index 0000000..3e290ec --- /dev/null +++ b/src/UDS.Net.API/Data/Migrations/20230912204138_change-respothx-type.Designer.cs @@ -0,0 +1,4863 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using UDS.Net.API.Data; + +#nullable disable + +namespace UDS.Net.API.Data.Migrations +{ + [DbContext(typeof(ApiDbContext))] + [Migration("20230912204138_change-respothx-type")] + partial class changerespothxtype + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.5") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("UDS.Net.API.Entities.A1", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("BIRTHMO") + .HasColumnType("int"); + + b.Property("BIRTHYR") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EDUC") + .HasColumnType("int"); + + b.Property("HANDED") + .HasColumnType("int"); + + b.Property("HISPANIC") + .HasColumnType("int"); + + b.Property("HISPOR") + .HasColumnType("int"); + + b.Property("HISPORX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("INDEPEND") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(true) + .HasColumnName("SUB"); + + b.Property("LEARNED") + .HasColumnType("int"); + + b.Property("LIVSITUA") + .HasColumnType("int"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MARISTAT") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("PRESPART") + .HasColumnType("int"); + + b.Property("PRESTAT") + .HasColumnType("int"); + + b.Property("PRIMLANG") + .HasColumnType("int"); + + b.Property("PRIMLANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RACE") + .HasColumnType("int"); + + b.Property("RACESEC") + .HasColumnType("int"); + + b.Property("RACESECX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RACETER") + .HasColumnType("int"); + + b.Property("RACETERX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RACEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("REASON") + .HasColumnType("int"); + + b.Property("REFERSC") + .HasColumnType("int"); + + b.Property("RESIDENC") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("SEX") + .HasColumnType("int"); + + b.Property("SOURCENW") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.Property("ZIP") + .HasMaxLength(3) + .HasColumnType("nvarchar(3)"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("INBIRMO") + .HasColumnType("int"); + + b.Property("INBIRYR") + .HasColumnType("int"); + + b.Property("INCALLS") + .HasColumnType("int"); + + b.Property("INEDUC") + .HasColumnType("int"); + + b.Property("INHISP") + .HasColumnType("int"); + + b.Property("INHISPOR") + .HasColumnType("int"); + + b.Property("INHISPOX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("INKNOWN") + .HasColumnType("int"); + + b.Property("INLIVWTH") + .HasColumnType("int"); + + b.Property("INRACE") + .HasColumnType("int"); + + b.Property("INRACEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("INRASEC") + .HasColumnType("int"); + + b.Property("INRASECX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("INRATER") + .HasColumnType("int"); + + b.Property("INRATERX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("INRELTO") + .HasColumnType("int"); + + b.Property("INRELY") + .HasColumnType("int"); + + b.Property("INSEX") + .HasColumnType("int"); + + b.Property("INVISITS") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NEWINF") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A2s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A3", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("AFFFAMM") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DADAGEO") + .HasColumnType("int"); + + b.Property("DADDAGE") + .HasColumnType("int"); + + b.Property("DADMOB") + .HasColumnType("int"); + + b.Property("DADMOE") + .HasColumnType("int"); + + b.Property("DADNEUR") + .HasColumnType("int"); + + b.Property("DADPRDX") + .HasColumnType("int"); + + b.Property("DADYOB") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FADMUSO") + .HasColumnType("int"); + + b.Property("FADMUSOX") + .HasColumnType("nvarchar(max)"); + + b.Property("FADMUT") + .HasColumnType("int"); + + b.Property("FADMUTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("FFTDMUSO") + .HasColumnType("int"); + + b.Property("FFTDMUSX") + .HasColumnType("nvarchar(max)"); + + b.Property("FFTDMUT") + .HasColumnType("int"); + + b.Property("FFTDMUTX") + .HasColumnType("nvarchar(max)"); + + b.Property("FOTHMUSO") + .HasColumnType("int"); + + b.Property("FOTHMUSX") + .HasColumnType("nvarchar(max)"); + + b.Property("FOTHMUT") + .HasColumnType("int"); + + b.Property("FOTHMUTX") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("KIDS") + .HasColumnType("int"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MOMAGEO") + .HasColumnType("int"); + + b.Property("MOMDAGE") + .HasColumnType("int"); + + b.Property("MOMMOB") + .HasColumnType("int"); + + b.Property("MOMMOE") + .HasColumnType("int"); + + b.Property("MOMNEUR") + .HasColumnType("int"); + + b.Property("MOMPRDX") + .HasColumnType("int"); + + b.Property("MOMYOB") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NWINFKID") + .HasColumnType("int"); + + b.Property("NWINFMUT") + .HasColumnType("int"); + + b.Property("NWINFSIB") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("SIBS") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A3s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A4D", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DRUGID") + .IsRequired() + .HasMaxLength(6) + .HasColumnType("nvarchar(6)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("DRUGID"); + + b.HasIndex("VisitId"); + + b.ToTable("tbl_A4Ds"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A4G", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ANYMEDS") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A4Gs"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A5", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ABUSOTHR") + .HasColumnType("int"); + + b.Property("ABUSX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ALCFREQ") + .HasColumnType("int"); + + b.Property("ALCOCCAS") + .HasColumnType("int"); + + b.Property("ALCOHOL") + .HasColumnType("int"); + + b.Property("ANXIETY") + .HasColumnType("int"); + + b.Property("APNEA") + .HasColumnType("int"); + + b.Property("ARTHLOEX") + .HasColumnType("int"); + + b.Property("ARTHRIT") + .HasColumnType("int"); + + b.Property("ARTHSPIN") + .HasColumnType("int"); + + b.Property("ARTHTYPE") + .HasColumnType("int"); + + b.Property("ARTHTYPX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ARTHUNK") + .HasColumnType("int"); + + b.Property("ARTHUPEX") + .HasColumnType("int"); + + b.Property("B12DEF") + .HasColumnType("int"); + + b.Property("BIPOLAR") + .HasColumnType("int"); + + b.Property("CBSTROKE") + .HasColumnType("int"); + + b.Property("CBTIA") + .HasColumnType("int"); + + b.Property("CVAFIB") + .HasColumnType("int"); + + b.Property("CVANGINA") + .HasColumnType("int"); + + b.Property("CVANGIO") + .HasColumnType("int"); + + b.Property("CVBYPASS") + .HasColumnType("int"); + + b.Property("CVCHF") + .HasColumnType("int"); + + b.Property("CVHATT") + .HasColumnType("int"); + + b.Property("CVHVALVE") + .HasColumnType("int"); + + b.Property("CVOTHR") + .HasColumnType("int"); + + b.Property("CVOTHRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("CVPACDEF") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DEP2YRS") + .HasColumnType("int"); + + b.Property("DEPOTHR") + .HasColumnType("int"); + + b.Property("DIABETES") + .HasColumnType("int"); + + b.Property("DIABTYPE") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("HATTMULT") + .HasColumnType("int"); + + b.Property("HATTYEAR") + .HasColumnType("int"); + + b.Property("HYPERCHO") + .HasColumnType("int"); + + b.Property("HYPERTEN") + .HasColumnType("int"); + + b.Property("INCONTF") + .HasColumnType("int"); + + b.Property("INCONTU") + .HasColumnType("int"); + + b.Property("INSOMN") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NPSYDEV") + .HasColumnType("int"); + + b.Property("OCD") + .HasColumnType("int"); + + b.Property("OTHSLEEP") + .HasColumnType("int"); + + b.Property("OTHSLEEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("PACKSPER") + .HasColumnType("int"); + + b.Property("PD") + .HasColumnType("int"); + + b.Property("PDOTHR") + .HasColumnType("int"); + + b.Property("PDOTHRYR") + .HasColumnType("int"); + + b.Property("PDYR") + .HasColumnType("int"); + + b.Property("PSYCDIS") + .HasColumnType("int"); + + b.Property("PSYCDISX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("PTSD") + .HasColumnType("int"); + + b.Property("QUITSMOK") + .HasColumnType("int"); + + b.Property("RBD") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("SCHIZ") + .HasColumnType("int"); + + b.Property("SEIZURES") + .HasColumnType("int"); + + b.Property("SMOKYRS") + .HasColumnType("int"); + + b.Property("STROKMUL") + .HasColumnType("int"); + + b.Property("STROKYR") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("TBI") + .HasColumnType("int"); + + b.Property("TBIBRIEF") + .HasColumnType("int"); + + b.Property("TBIEXTEN") + .HasColumnType("int"); + + b.Property("TBIWOLOS") + .HasColumnType("int"); + + b.Property("TBIYEAR") + .HasColumnType("int"); + + b.Property("THYROID") + .HasColumnType("int"); + + b.Property("TIAMULT") + .HasColumnType("int"); + + b.Property("TIAYEAR") + .HasColumnType("int"); + + b.Property("TOBAC100") + .HasColumnType("int"); + + b.Property("TOBAC30") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_A5s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B1", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("BPDIAS") + .HasColumnType("int"); + + b.Property("BPSYS") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("HEARAID") + .HasColumnType("int"); + + b.Property("HEARING") + .HasColumnType("int"); + + b.Property("HEARWAID") + .HasColumnType("int"); + + b.Property("HEIGHT") + .HasColumnType("decimal(3,1)"); + + b.Property("HRATE") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VISCORR") + .HasColumnType("int"); + + b.Property("VISION") + .HasColumnType("int"); + + b.Property("VISWCORR") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.Property("WEIGHT") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B4", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CDRGLOB") + .HasColumnType("decimal(2,1)"); + + b.Property("CDRLANG") + .HasColumnType("decimal(2,1)"); + + b.Property("CDRSUM") + .HasColumnType("decimal(3,1)"); + + b.Property("COMMUN") + .HasColumnType("decimal(2,1)"); + + b.Property("COMPORT") + .HasColumnType("decimal(2,1)"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("HOMEHOBB") + .HasColumnType("decimal(2,1)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("JUDGMENT") + .HasColumnType("decimal(2,1)"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MEMORY") + .HasColumnType("decimal(2,1)"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("ORIENT") + .HasColumnType("decimal(2,1)"); + + b.Property("PERSCARE") + .HasColumnType("decimal(2,1)"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B4s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B5", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("AGIT") + .HasColumnType("int"); + + b.Property("AGITSEV") + .HasColumnType("int"); + + b.Property("ANX") + .HasColumnType("int"); + + b.Property("ANXSEV") + .HasColumnType("int"); + + b.Property("APA") + .HasColumnType("int"); + + b.Property("APASEV") + .HasColumnType("int"); + + b.Property("APP") + .HasColumnType("int"); + + b.Property("APPSEV") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DEL") + .HasColumnType("int"); + + b.Property("DELSEV") + .HasColumnType("int"); + + b.Property("DEPD") + .HasColumnType("int"); + + b.Property("DEPDSEV") + .HasColumnType("int"); + + b.Property("DISN") + .HasColumnType("int"); + + b.Property("DISNSEV") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("ELAT") + .HasColumnType("int"); + + b.Property("ELATSEV") + .HasColumnType("int"); + + b.Property("HALL") + .HasColumnType("int"); + + b.Property("HALLSEV") + .HasColumnType("int"); + + b.Property("IRR") + .HasColumnType("int"); + + b.Property("IRRSEV") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MOT") + .HasColumnType("int"); + + b.Property("MOTSEV") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NITE") + .HasColumnType("int"); + + b.Property("NITESEV") + .HasColumnType("int"); + + b.Property("NPIQINF") + .HasColumnType("int"); + + b.Property("NPIQINFX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B5s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B6", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("AFRAID") + .HasColumnType("int"); + + b.Property("BETTER") + .HasColumnType("int"); + + b.Property("BORED") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DROPACT") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EMPTY") + .HasColumnType("int"); + + b.Property("ENERGY") + .HasColumnType("int"); + + b.Property("GDS") + .HasColumnType("int"); + + b.Property("HAPPY") + .HasColumnType("int"); + + b.Property("HELPLESS") + .HasColumnType("int"); + + b.Property("HOPELESS") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MEMPROB") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NOGDS") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("SATIS") + .HasColumnType("int"); + + b.Property("SPIRITS") + .HasColumnType("int"); + + b.Property("STAYHOME") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.Property("WONDRFUL") + .HasColumnType("int"); + + b.Property("WRTHLESS") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B6s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B7", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("BILLS") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EVENTS") + .HasColumnType("int"); + + b.Property("GAMES") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MEALPREP") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("PAYATTN") + .HasColumnType("int"); + + b.Property("REMDATES") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("SHOPPING") + .HasColumnType("int"); + + b.Property("STOVE") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("TAXES") + .HasColumnType("int"); + + b.Property("TRAVEL") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B7s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B8", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ALIENLML") + .HasColumnType("int"); + + b.Property("ALIENLMR") + .HasColumnType("int"); + + b.Property("ALSFIND") + .HasColumnType("int"); + + b.Property("APRAXL") + .HasColumnType("int"); + + b.Property("APRAXR") + .HasColumnType("int"); + + b.Property("APRAXSP") + .HasColumnType("int"); + + b.Property("ATAXL") + .HasColumnType("int"); + + b.Property("ATAXR") + .HasColumnType("int"); + + b.Property("AXIALPSP") + .HasColumnType("int"); + + b.Property("BRADY") + .HasColumnType("int"); + + b.Property("CORTDEF") + .HasColumnType("int"); + + b.Property("CORTSENL") + .HasColumnType("int"); + + b.Property("CORTSENR") + .HasColumnType("int"); + + b.Property("CORTVISL") + .HasColumnType("int"); + + b.Property("CORTVISR") + .HasColumnType("int"); + + b.Property("CVDMOTL") + .HasColumnType("int"); + + b.Property("CVDMOTR") + .HasColumnType("int"); + + b.Property("CVDSIGNS") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DYSPSP") + .HasColumnType("int"); + + b.Property("DYSTONL") + .HasColumnType("int"); + + b.Property("DYSTONR") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EYEPSP") + .HasColumnType("int"); + + b.Property("GAITNPH") + .HasColumnType("int"); + + b.Property("GAITPSP") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MYOCLLT") + .HasColumnType("int"); + + b.Property("MYOCLRT") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NORMEXAM") + .HasColumnType("int"); + + b.Property("OTHNEUR") + .HasColumnType("int"); + + b.Property("OTHNEURX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("PARKGAIT") + .HasColumnType("int"); + + b.Property("PARKSIGN") + .HasColumnType("int"); + + b.Property("POSTCORT") + .HasColumnType("int"); + + b.Property("POSTINST") + .HasColumnType("int"); + + b.Property("PSPCBS") + .HasColumnType("int"); + + b.Property("RESTTRL") + .HasColumnType("int"); + + b.Property("RESTTRR") + .HasColumnType("int"); + + b.Property("RIGIDL") + .HasColumnType("int"); + + b.Property("RIGIDR") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("SIVDFIND") + .HasColumnType("int"); + + b.Property("SLOWINGL") + .HasColumnType("int"); + + b.Property("SLOWINGR") + .HasColumnType("int"); + + b.Property("SOMATL") + .HasColumnType("int"); + + b.Property("SOMATR") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B8s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B9", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ALSAGE") + .HasColumnType("int"); + + b.Property("BEAGE") + .HasColumnType("int"); + + b.Property("BEAGIT") + .HasColumnType("int"); + + b.Property("BEAHALL") + .HasColumnType("int"); + + b.Property("BEANX") + .HasColumnType("int"); + + b.Property("BEAPATHY") + .HasColumnType("int"); + + b.Property("BEDEL") + .HasColumnType("int"); + + b.Property("BEDEP") + .HasColumnType("int"); + + b.Property("BEDISIN") + .HasColumnType("int"); + + b.Property("BEFPRED") + .HasColumnType("int"); + + b.Property("BEFPREDX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("BEIRRIT") + .HasColumnType("int"); + + b.Property("BEMODE") + .HasColumnType("int"); + + b.Property("BEMODEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("BEOTHR") + .HasColumnType("int"); + + b.Property("BEOTHRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("BEPERCH") + .HasColumnType("int"); + + b.Property("BEREM") + .HasColumnType("int"); + + b.Property("BEREMAGO") + .HasColumnType("int"); + + b.Property("BEVHAGO") + .HasColumnType("int"); + + b.Property("BEVHALL") + .HasColumnType("int"); + + b.Property("BEVWELL") + .HasColumnType("int"); + + b.Property("COGATTN") + .HasColumnType("int"); + + b.Property("COGFLAGO") + .HasColumnType("int"); + + b.Property("COGFLUC") + .HasColumnType("int"); + + b.Property("COGFPRED") + .HasColumnType("int"); + + b.Property("COGFPREX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("COGJUDG") + .HasColumnType("int"); + + b.Property("COGLANG") + .HasColumnType("int"); + + b.Property("COGMEM") + .HasColumnType("int"); + + b.Property("COGMODE") + .HasColumnType("int"); + + b.Property("COGMODEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("COGORI") + .HasColumnType("int"); + + b.Property("COGOTHR") + .HasColumnType("int"); + + b.Property("COGOTHRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("COGVIS") + .HasColumnType("int"); + + b.Property("COURSE") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DECAGE") + .HasColumnType("int"); + + b.Property("DECCLBE") + .HasColumnType("int"); + + b.Property("DECCLCOG") + .HasColumnType("int"); + + b.Property("DECCLMOT") + .HasColumnType("int"); + + b.Property("DECIN") + .HasColumnType("int"); + + b.Property("DECSUB") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FRSTCHG") + .HasColumnType("int"); + + b.Property("FTLDEVAL") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("LBDEVAL") + .HasColumnType("int"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MOAGE") + .HasColumnType("int"); + + b.Property("MOFALLS") + .HasColumnType("int"); + + b.Property("MOFRST") + .HasColumnType("int"); + + b.Property("MOGAIT") + .HasColumnType("int"); + + b.Property("MOMOALS") + .HasColumnType("int"); + + b.Property("MOMODE") + .HasColumnType("int"); + + b.Property("MOMODEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("MOMOPARK") + .HasColumnType("int"); + + b.Property("MOSLOW") + .HasColumnType("int"); + + b.Property("MOTREM") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("PARKAGE") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_B9s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.C1", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ANIMALS") + .HasColumnType("int"); + + b.Property("BOSTON") + .HasColumnType("int"); + + b.Property("COGSTAT") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DIGIB") + .HasColumnType("int"); + + b.Property("DIGIBLEN") + .HasColumnType("int"); + + b.Property("DIGIF") + .HasColumnType("int"); + + b.Property("DIGIFLEN") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("LOGIDAY") + .HasColumnType("int"); + + b.Property("LOGIMEM") + .HasColumnType("int"); + + b.Property("LOGIMO") + .HasColumnType("int"); + + b.Property("LOGIPREV") + .HasColumnType("int"); + + b.Property("LOGIYR") + .HasColumnType("int"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MEMTIME") + .HasColumnType("int"); + + b.Property("MEMUNITS") + .HasColumnType("int"); + + b.Property("MMSE") + .HasColumnType("int"); + + b.Property("MMSECOMP") + .HasColumnType("int"); + + b.Property("MMSEHEAR") + .HasColumnType("int"); + + b.Property("MMSELAN") + .HasColumnType("int"); + + b.Property("MMSELANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("MMSELOC") + .HasColumnType("int"); + + b.Property("MMSEORDA") + .HasColumnType("int"); + + b.Property("MMSEORLO") + .HasColumnType("int"); + + b.Property("MMSEREAS") + .HasColumnType("int"); + + b.Property("MMSEVIS") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NPSYCLOC") + .HasColumnType("int"); + + b.Property("NPSYLAN") + .HasColumnType("int"); + + b.Property("NPSYLANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("PENTAGON") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("TRAILA") + .HasColumnType("int"); + + b.Property("TRAILALI") + .HasColumnType("int"); + + b.Property("TRAILARR") + .HasColumnType("int"); + + b.Property("TRAILB") + .HasColumnType("int"); + + b.Property("TRAILBLI") + .HasColumnType("int"); + + b.Property("TRAILBRR") + .HasColumnType("int"); + + b.Property("UDSBENRS") + .HasColumnType("int"); + + b.Property("UDSBENTC") + .HasColumnType("int"); + + b.Property("UDSBENTD") + .HasColumnType("int"); + + b.Property("UDSVERFC") + .HasColumnType("int"); + + b.Property("UDSVERFN") + .HasColumnType("int"); + + b.Property("UDSVERLC") + .HasColumnType("int"); + + b.Property("UDSVERLN") + .HasColumnType("int"); + + b.Property("UDSVERLR") + .HasColumnType("int"); + + b.Property("UDSVERNF") + .HasColumnType("int"); + + b.Property("UDSVERTE") + .HasColumnType("int"); + + b.Property("UDSVERTI") + .HasColumnType("int"); + + b.Property("UDSVERTN") + .HasColumnType("int"); + + b.Property("VEG") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_C1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.C2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ANIMALS") + .HasColumnType("int"); + + b.Property("COGSTAT") + .HasColumnType("int"); + + b.Property("CRAFTCUE") + .HasColumnType("int"); + + b.Property("CRAFTDRE") + .HasColumnType("int"); + + b.Property("CRAFTDTI") + .HasColumnType("int"); + + b.Property("CRAFTDVR") + .HasColumnType("int"); + + b.Property("CRAFTURS") + .HasColumnType("int"); + + b.Property("CRAFTVRS") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DIGBACCT") + .HasColumnType("int"); + + b.Property("DIGBACLS") + .HasColumnType("int"); + + b.Property("DIGFORCT") + .HasColumnType("int"); + + b.Property("DIGFORSL") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MINTPCNC") + .HasColumnType("int"); + + b.Property("MINTPCNG") + .HasColumnType("int"); + + b.Property("MINTSCNC") + .HasColumnType("int"); + + b.Property("MINTSCNG") + .HasColumnType("int"); + + b.Property("MINTTOTS") + .HasColumnType("int"); + + b.Property("MINTTOTW") + .HasColumnType("int"); + + b.Property("MOCAABST") + .HasColumnType("int"); + + b.Property("MOCACLOC") + .HasColumnType("int"); + + b.Property("MOCACLOH") + .HasColumnType("int"); + + b.Property("MOCACLON") + .HasColumnType("int"); + + b.Property("MOCACOMP") + .HasColumnType("int"); + + b.Property("MOCACUBE") + .HasColumnType("int"); + + b.Property("MOCADIGI") + .HasColumnType("int"); + + b.Property("MOCAFLUE") + .HasColumnType("int"); + + b.Property("MOCAHEAR") + .HasColumnType("int"); + + b.Property("MOCALAN") + .HasColumnType("int"); + + b.Property("MOCALANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("MOCALETT") + .HasColumnType("int"); + + b.Property("MOCALOC") + .HasColumnType("int"); + + b.Property("MOCANAMI") + .HasColumnType("int"); + + b.Property("MOCAORCT") + .HasColumnType("int"); + + b.Property("MOCAORDT") + .HasColumnType("int"); + + b.Property("MOCAORDY") + .HasColumnType("int"); + + b.Property("MOCAORMO") + .HasColumnType("int"); + + b.Property("MOCAORPL") + .HasColumnType("int"); + + b.Property("MOCAORYR") + .HasColumnType("int"); + + b.Property("MOCAREAS") + .HasColumnType("int"); + + b.Property("MOCARECC") + .HasColumnType("int"); + + b.Property("MOCARECN") + .HasColumnType("int"); + + b.Property("MOCARECR") + .HasColumnType("int"); + + b.Property("MOCAREGI") + .HasColumnType("int"); + + b.Property("MOCAREPE") + .HasColumnType("int"); + + b.Property("MOCASER7") + .HasColumnType("int"); + + b.Property("MOCATOTS") + .HasColumnType("int"); + + b.Property("MOCATRAI") + .HasColumnType("int"); + + b.Property("MOCAVIS") + .HasColumnType("int"); + + b.Property("MODCOMM") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NPSYCLOC") + .HasColumnType("int"); + + b.Property("NPSYLAN") + .HasColumnType("int"); + + b.Property("NPSYLANX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("OTRAILA") + .HasColumnType("int"); + + b.Property("OTRAILB") + .HasColumnType("int"); + + b.Property("OTRLALI") + .HasColumnType("int"); + + b.Property("OTRLARR") + .HasColumnType("int"); + + b.Property("OTRLBLI") + .HasColumnType("int"); + + b.Property("OTRLBRR") + .HasColumnType("int"); + + b.Property("RESPASST") + .HasColumnType("int"); + + b.Property("RESPDISN") + .HasColumnType("int"); + + b.Property("RESPDIST") + .HasColumnType("int"); + + b.Property("RESPEMOT") + .HasColumnType("int"); + + b.Property("RESPFATG") + .HasColumnType("int"); + + b.Property("RESPHEAR") + .HasColumnType("int"); + + b.Property("RESPINTR") + .HasColumnType("int"); + + b.Property("RESPOTH") + .HasColumnType("int"); + + b.Property("RESPOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("RESPVAL") + .HasColumnType("int"); + + b.Property("REY1INT") + .HasColumnType("int"); + + b.Property("REY1REC") + .HasColumnType("int"); + + b.Property("REY2INT") + .HasColumnType("int"); + + b.Property("REY2REC") + .HasColumnType("int"); + + b.Property("REY3INT") + .HasColumnType("int"); + + b.Property("REY3REC") + .HasColumnType("int"); + + b.Property("REY4INT") + .HasColumnType("int"); + + b.Property("REY4REC") + .HasColumnType("int"); + + b.Property("REY5INT") + .HasColumnType("int"); + + b.Property("REY5REC") + .HasColumnType("int"); + + b.Property("REY6INT") + .HasColumnType("int"); + + b.Property("REY6REC") + .HasColumnType("int"); + + b.Property("REYDINT") + .HasColumnType("int"); + + b.Property("REYDREC") + .HasColumnType("int"); + + b.Property("REYFPOS") + .HasColumnType("int"); + + b.Property("REYTCOR") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("TRAILA") + .HasColumnType("int"); + + b.Property("TRAILALI") + .HasColumnType("int"); + + b.Property("TRAILARR") + .HasColumnType("int"); + + b.Property("TRAILB") + .HasColumnType("int"); + + b.Property("TRAILBLI") + .HasColumnType("int"); + + b.Property("TRAILBRR") + .HasColumnType("int"); + + b.Property("UDSBENRS") + .HasColumnType("int"); + + b.Property("UDSBENTC") + .HasColumnType("int"); + + b.Property("UDSBENTD") + .HasColumnType("int"); + + b.Property("UDSVERFC") + .HasColumnType("int"); + + b.Property("UDSVERFN") + .HasColumnType("int"); + + b.Property("UDSVERLC") + .HasColumnType("int"); + + b.Property("UDSVERLN") + .HasColumnType("int"); + + b.Property("UDSVERLR") + .HasColumnType("int"); + + b.Property("UDSVERNF") + .HasColumnType("int"); + + b.Property("UDSVERTE") + .HasColumnType("int"); + + b.Property("UDSVERTI") + .HasColumnType("int"); + + b.Property("UDSVERTN") + .HasColumnType("int"); + + b.Property("VEG") + .HasColumnType("int"); + + b.Property("VNTPCNC") + .HasColumnType("int"); + + b.Property("VNTTOTW") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_C2s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.D1", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("ADMUT") + .HasColumnType("int"); + + b.Property("ALCABUSE") + .HasColumnType("int"); + + b.Property("ALCDEM") + .HasColumnType("int"); + + b.Property("ALCDEMIF") + .HasColumnType("int"); + + b.Property("ALZDIS") + .HasColumnType("int"); + + b.Property("ALZDISIF") + .HasColumnType("int"); + + b.Property("AMNDEM") + .HasColumnType("int"); + + b.Property("AMYLCSF") + .HasColumnType("int"); + + b.Property("AMYLPET") + .HasColumnType("int"); + + b.Property("ANXIET") + .HasColumnType("int"); + + b.Property("ANXIETIF") + .HasColumnType("int"); + + b.Property("BIPOLDIF") + .HasColumnType("int"); + + b.Property("BIPOLDX") + .HasColumnType("int"); + + b.Property("BRNINCTE") + .HasColumnType("int"); + + b.Property("BRNINJ") + .HasColumnType("int"); + + b.Property("BRNINJIF") + .HasColumnType("int"); + + b.Property("COGOTH") + .HasColumnType("int"); + + b.Property("COGOTH2") + .HasColumnType("int"); + + b.Property("COGOTH2F") + .HasColumnType("int"); + + b.Property("COGOTH2X") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("COGOTH3") + .HasColumnType("int"); + + b.Property("COGOTH3F") + .HasColumnType("int"); + + b.Property("COGOTH3X") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("COGOTHIF") + .HasColumnType("int"); + + b.Property("COGOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("CORT") + .HasColumnType("int"); + + b.Property("CORTIF") + .HasColumnType("int"); + + b.Property("CSFTAU") + .HasColumnType("int"); + + b.Property("CVD") + .HasColumnType("int"); + + b.Property("CVDIF") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DATSCAN") + .HasColumnType("int"); + + b.Property("DELIR") + .HasColumnType("int"); + + b.Property("DELIRIF") + .HasColumnType("int"); + + b.Property("DEMENTED") + .HasColumnType("int"); + + b.Property("DEP") + .HasColumnType("int"); + + b.Property("DEPIF") + .HasColumnType("int"); + + b.Property("DEPTREAT") + .HasColumnType("int"); + + b.Property("DOWNS") + .HasColumnType("int"); + + b.Property("DOWNSIF") + .HasColumnType("int"); + + b.Property("DXMETHOD") + .HasColumnType("int"); + + b.Property("DYSILL") + .HasColumnType("int"); + + b.Property("DYSILLIF") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("EPILEP") + .HasColumnType("int"); + + b.Property("EPILEPIF") + .HasColumnType("int"); + + b.Property("ESSTREIF") + .HasColumnType("int"); + + b.Property("ESSTREM") + .HasColumnType("int"); + + b.Property("FDGAD") + .HasColumnType("int"); + + b.Property("FDGFTLD") + .HasColumnType("int"); + + b.Property("FTDSYN") + .HasColumnType("int"); + + b.Property("FTLDMO") + .HasColumnType("int"); + + b.Property("FTLDMOIF") + .HasColumnType("int"); + + b.Property("FTLDMUT") + .HasColumnType("int"); + + b.Property("FTLDNOIF") + .HasColumnType("int"); + + b.Property("FTLDNOS") + .HasColumnType("int"); + + b.Property("FTLDSUBT") + .HasColumnType("int"); + + b.Property("FTLDSUBX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("HIPPATR") + .HasColumnType("int"); + + b.Property("HIV") + .HasColumnType("int"); + + b.Property("HIVIF") + .HasColumnType("int"); + + b.Property("HUNT") + .HasColumnType("int"); + + b.Property("HUNTIF") + .HasColumnType("int"); + + b.Property("HYCEPH") + .HasColumnType("int"); + + b.Property("HYCEPHIF") + .HasColumnType("int"); + + b.Property("IMAGEWMH") + .HasColumnType("int"); + + b.Property("IMAGLAC") + .HasColumnType("int"); + + b.Property("IMAGLINF") + .HasColumnType("int"); + + b.Property("IMAGMACH") + .HasColumnType("int"); + + b.Property("IMAGMICH") + .HasColumnType("int"); + + b.Property("IMAGMWMH") + .HasColumnType("int"); + + b.Property("IMPNOMCI") + .HasColumnType("int"); + + b.Property("IMPSUB") + .HasColumnType("int"); + + b.Property("IMPSUBIF") + .HasColumnType("int"); + + b.Property("INFNETW") + .HasColumnType("int"); + + b.Property("INFWMH") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("LBDIF") + .HasColumnType("int"); + + b.Property("LBDIS") + .HasColumnType("int"); + + b.Property("LBDSYN") + .HasColumnType("int"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MCIAMEM") + .HasColumnType("int"); + + b.Property("MCIAPATT") + .HasColumnType("int"); + + b.Property("MCIAPEX") + .HasColumnType("int"); + + b.Property("MCIAPLAN") + .HasColumnType("int"); + + b.Property("MCIAPLUS") + .HasColumnType("int"); + + b.Property("MCIAPVIS") + .HasColumnType("int"); + + b.Property("MCIN1ATT") + .HasColumnType("int"); + + b.Property("MCIN1EX") + .HasColumnType("int"); + + b.Property("MCIN1LAN") + .HasColumnType("int"); + + b.Property("MCIN1VIS") + .HasColumnType("int"); + + b.Property("MCIN2ATT") + .HasColumnType("int"); + + b.Property("MCIN2EX") + .HasColumnType("int"); + + b.Property("MCIN2LAN") + .HasColumnType("int"); + + b.Property("MCIN2VIS") + .HasColumnType("int"); + + b.Property("MCINON1") + .HasColumnType("int"); + + b.Property("MCINON2") + .HasColumnType("int"); + + b.Property("MEDS") + .HasColumnType("int"); + + b.Property("MEDSIF") + .HasColumnType("int"); + + b.Property("MRFTLD") + .HasColumnType("int"); + + b.Property("MSA") + .HasColumnType("int"); + + b.Property("MSAIF") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NAMNDEM") + .HasColumnType("int"); + + b.Property("NEOP") + .HasColumnType("int"); + + b.Property("NEOPIF") + .HasColumnType("int"); + + b.Property("NEOPSTAT") + .HasColumnType("int"); + + b.Property("NORMCOG") + .HasColumnType("int"); + + b.Property("OTHBIOM") + .HasColumnType("int"); + + b.Property("OTHBIOMX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("OTHCOG") + .HasColumnType("int"); + + b.Property("OTHCOGIF") + .HasColumnType("int"); + + b.Property("OTHCOGX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("OTHMUT") + .HasColumnType("int"); + + b.Property("OTHMUTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("OTHPSY") + .HasColumnType("int"); + + b.Property("OTHPSYIF") + .HasColumnType("int"); + + b.Property("OTHPSYX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("PARK") + .HasColumnType("int"); + + b.Property("PCA") + .HasColumnType("int"); + + b.Property("PPASYN") + .HasColumnType("int"); + + b.Property("PPASYNT") + .HasColumnType("int"); + + b.Property("PREVSTK") + .HasColumnType("int"); + + b.Property("PRION") + .HasColumnType("int"); + + b.Property("PRIONIF") + .HasColumnType("int"); + + b.Property("PSP") + .HasColumnType("int"); + + b.Property("PSPIF") + .HasColumnType("int"); + + b.Property("PTSDDX") + .HasColumnType("int"); + + b.Property("PTSDDXIF") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("SCHIZOIF") + .HasColumnType("int"); + + b.Property("SCHIZOP") + .HasColumnType("int"); + + b.Property("STKIMAG") + .HasColumnType("int"); + + b.Property("STROKDEC") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("TAUPETAD") + .HasColumnType("int"); + + b.Property("TPETFTLD") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_D1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.D2", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("AFIBRILL") + .HasColumnType("int"); + + b.Property("ANGINA") + .HasColumnType("int"); + + b.Property("ANGIOCP") + .HasColumnType("int"); + + b.Property("ANGIOPCI") + .HasColumnType("int"); + + b.Property("ANTIENC") + .HasColumnType("int"); + + b.Property("ANTIENCX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("ARTH") + .HasColumnType("int"); + + b.Property("ARTLOEX") + .HasColumnType("int"); + + b.Property("ARTSPIN") + .HasColumnType("int"); + + b.Property("ARTUNKN") + .HasColumnType("int"); + + b.Property("ARTUPEX") + .HasColumnType("int"); + + b.Property("ARTYPE") + .HasColumnType("int"); + + b.Property("ARTYPEX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("BOWLINC") + .HasColumnType("int"); + + b.Property("CANCER") + .HasColumnType("int"); + + b.Property("CANCSITE") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("CONGHRT") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DIABET") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("HVALVE") + .HasColumnType("int"); + + b.Property("HYPCHOL") + .HasColumnType("int"); + + b.Property("HYPERT") + .HasColumnType("int"); + + b.Property("HYPOSOM") + .HasColumnType("int"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("MYOINF") + .HasColumnType("int"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("OTHCOND") + .HasColumnType("int"); + + b.Property("OTHCONDX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("PACEMAKE") + .HasColumnType("int"); + + b.Property("REMDIS") + .HasColumnType("int"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("SLEEPAP") + .HasColumnType("int"); + + b.Property("SLEEPOTH") + .HasColumnType("int"); + + b.Property("SLEEPOTX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("THYDIS") + .HasColumnType("int"); + + b.Property("URINEINC") + .HasColumnType("int"); + + b.Property("VB12DEF") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_D2s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.DrugCodeLookup", b => + { + b.Property("DrugId") + .HasMaxLength(6) + .HasColumnType("nvarchar(6)"); + + b.Property("BrandName") + .HasMaxLength(500) + .HasColumnType("nvarchar(500)"); + + b.Property("DrugName") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("nvarchar(500)"); + + b.Property("IsOverTheCounter") + .HasColumnType("bit"); + + b.Property("IsPopular") + .HasColumnType("bit"); + + b.HasKey("DrugId"); + + b.ToTable("DrugCodesLookup"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => + { + b.Property("VisitId") + .HasColumnType("int"); + + b.Property("Kind") + .HasMaxLength(2) + .HasColumnType("nvarchar(2)"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.HasKey("VisitId", "Kind"); + + b.ToTable((string)null); + + b.ToView("vw_FormStatuses", (string)null); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.M1", b => + { + b.Property("FormId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FormId")); + + b.Property("ACONSENT") + .HasColumnType("int"); + + b.Property("AUTOPSY") + .HasColumnType("int"); + + b.Property("CHANGEDY") + .HasColumnType("int"); + + b.Property("CHANGEMO") + .HasColumnType("int"); + + b.Property("CHANGEYR") + .HasColumnType("int"); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DEATHDY") + .HasColumnType("int"); + + b.Property("DEATHMO") + .HasColumnType("int"); + + b.Property("DEATHYR") + .HasColumnType("int"); + + b.Property("DECEASED") + .HasColumnType("int"); + + b.Property("DISCDAY") + .HasColumnType("int"); + + b.Property("DISCMO") + .HasColumnType("int"); + + b.Property("DISCONT") + .HasColumnType("int"); + + b.Property("DISCYR") + .HasColumnType("int"); + + b.Property("DROPREAS") + .HasColumnType("int"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("FTLDDISC") + .HasColumnType("int"); + + b.Property("FTLDREAS") + .HasColumnType("int"); + + b.Property("FTLDREAX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("NURSEDY") + .HasColumnType("int"); + + b.Property("NURSEMO") + .HasColumnType("int"); + + b.Property("NURSEYR") + .HasColumnType("int"); + + b.Property("PROTOCOL") + .HasColumnType("int"); + + b.Property("ParticipationId") + .HasColumnType("int"); + + b.Property("RECOGIM") + .HasColumnType("int"); + + b.Property("REJOIN") + .HasColumnType("int"); + + b.Property("RENAVAIL") + .HasColumnType("int"); + + b.Property("RENURSE") + .HasColumnType("int"); + + b.Property("REPHYILL") + .HasColumnType("int"); + + b.Property("REREFUSE") + .HasColumnType("int"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.HasKey("FormId"); + + b.HasIndex("ParticipationId"); + + b.ToTable("tbl_M1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Participation", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("ParticipationId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("LegacyId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Participation"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.T1", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("FormId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsIncluded") + .HasColumnType("bit") + .HasColumnName("SUB"); + + b.Property("Language") + .HasColumnType("int") + .HasColumnName("LANG"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("ReasonCode") + .HasColumnType("int") + .HasColumnName("NOT"); + + b.Property("Status") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("nvarchar(20)"); + + b.Property("TELCOG") + .HasColumnType("int"); + + b.Property("TELCOV") + .HasColumnType("int"); + + b.Property("TELHOME") + .HasColumnType("int"); + + b.Property("TELILL") + .HasColumnType("int"); + + b.Property("TELINPER") + .HasColumnType("int"); + + b.Property("TELMILE") + .HasColumnType("int"); + + b.Property("TELMOD") + .HasColumnType("int"); + + b.Property("TELOTHR") + .HasColumnType("int"); + + b.Property("TELOTHRX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); + + b.Property("TELREFU") + .HasColumnType("int"); + + b.Property("VisitId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("VisitId") + .IsUnique(); + + b.ToTable("tbl_T1s"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Visit", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("VisitId"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); + + b.Property("CreatedAt") + .HasColumnType("datetime2"); + + b.Property("CreatedBy") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeletedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Kind") + .IsRequired() + .HasMaxLength(3) + .HasColumnType("nvarchar(3)"); + + b.Property("ModifiedBy") + .HasColumnType("nvarchar(max)"); + + b.Property("Number") + .HasColumnType("int"); + + b.Property("ParticipationId") + .HasColumnType("int"); + + b.Property("StartDateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("nvarchar(10)"); + + b.HasKey("Id"); + + b.HasIndex("ParticipationId", "Number") + .IsUnique(); + + b.ToTable("tbl_Visits"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A1", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("A1") + .HasForeignKey("UDS.Net.API.Entities.A1", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A2", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("A2") + .HasForeignKey("UDS.Net.API.Entities.A2", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A3", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("A3") + .HasForeignKey("UDS.Net.API.Entities.A3", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID1", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID10", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID11", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID12", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID13", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID14", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID15", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID2", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID3", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID4", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID5", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID6", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID7", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID8", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "KID9", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB1", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB10", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB11", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB12", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB13", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB14", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB15", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB16", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB17", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB18", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB19", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB2", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB20", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB3", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB4", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB5", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB6", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB7", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB8", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.OwnsOne("UDS.Net.API.Entities.A3FamilyMember", "SIB9", b1 => + { + b1.Property("A3Id") + .HasColumnType("int"); + + b1.Property("AGD") + .HasColumnType("int"); + + b1.Property("AGO") + .HasColumnType("int"); + + b1.Property("MOB") + .HasColumnType("int"); + + b1.Property("MOE") + .HasColumnType("int"); + + b1.Property("NEU") + .HasColumnType("int"); + + b1.Property("PDX") + .HasColumnType("int"); + + b1.Property("YOB") + .HasColumnType("int"); + + b1.HasKey("A3Id"); + + b1.ToTable("tbl_A3s"); + + b1.WithOwner() + .HasForeignKey("A3Id"); + }); + + b.Navigation("KID1") + .IsRequired(); + + b.Navigation("KID10") + .IsRequired(); + + b.Navigation("KID11") + .IsRequired(); + + b.Navigation("KID12") + .IsRequired(); + + b.Navigation("KID13") + .IsRequired(); + + b.Navigation("KID14") + .IsRequired(); + + b.Navigation("KID15") + .IsRequired(); + + b.Navigation("KID2") + .IsRequired(); + + b.Navigation("KID3") + .IsRequired(); + + b.Navigation("KID4") + .IsRequired(); + + b.Navigation("KID5") + .IsRequired(); + + b.Navigation("KID6") + .IsRequired(); + + b.Navigation("KID7") + .IsRequired(); + + b.Navigation("KID8") + .IsRequired(); + + b.Navigation("KID9") + .IsRequired(); + + b.Navigation("SIB1") + .IsRequired(); + + b.Navigation("SIB10") + .IsRequired(); + + b.Navigation("SIB11") + .IsRequired(); + + b.Navigation("SIB12") + .IsRequired(); + + b.Navigation("SIB13") + .IsRequired(); + + b.Navigation("SIB14") + .IsRequired(); + + b.Navigation("SIB15") + .IsRequired(); + + b.Navigation("SIB16") + .IsRequired(); + + b.Navigation("SIB17") + .IsRequired(); + + b.Navigation("SIB18") + .IsRequired(); + + b.Navigation("SIB19") + .IsRequired(); + + b.Navigation("SIB2") + .IsRequired(); + + b.Navigation("SIB20") + .IsRequired(); + + b.Navigation("SIB3") + .IsRequired(); + + b.Navigation("SIB4") + .IsRequired(); + + b.Navigation("SIB5") + .IsRequired(); + + b.Navigation("SIB6") + .IsRequired(); + + b.Navigation("SIB7") + .IsRequired(); + + b.Navigation("SIB8") + .IsRequired(); + + b.Navigation("SIB9") + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A4D", b => + { + b.HasOne("UDS.Net.API.Entities.DrugCodeLookup", "DrugCode") + .WithMany() + .HasForeignKey("DRUGID") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithMany("A4Ds") + .HasForeignKey("VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("DrugCode"); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A4G", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("A4G") + .HasForeignKey("UDS.Net.API.Entities.A4G", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.A5", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("A5") + .HasForeignKey("UDS.Net.API.Entities.A5", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B1", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("B1") + .HasForeignKey("UDS.Net.API.Entities.B1", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B4", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("B4") + .HasForeignKey("UDS.Net.API.Entities.B4", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B5", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("B5") + .HasForeignKey("UDS.Net.API.Entities.B5", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B6", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("B6") + .HasForeignKey("UDS.Net.API.Entities.B6", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B7", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("B7") + .HasForeignKey("UDS.Net.API.Entities.B7", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B8", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("B8") + .HasForeignKey("UDS.Net.API.Entities.B8", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.B9", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("B9") + .HasForeignKey("UDS.Net.API.Entities.B9", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.C1", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("C1") + .HasForeignKey("UDS.Net.API.Entities.C1", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.C2", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("C2") + .HasForeignKey("UDS.Net.API.Entities.C2", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.D1", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("D1") + .HasForeignKey("UDS.Net.API.Entities.D1", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.D2", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("D2") + .HasForeignKey("UDS.Net.API.Entities.D2", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.FormStatus", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithMany("FormStatuses") + .HasForeignKey("VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.M1", b => + { + b.HasOne("UDS.Net.API.Entities.Participation", "Participation") + .WithMany("M1s") + .HasForeignKey("ParticipationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Participation"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.T1", b => + { + b.HasOne("UDS.Net.API.Entities.Visit", "Visit") + .WithOne("T1") + .HasForeignKey("UDS.Net.API.Entities.T1", "VisitId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Visit"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Visit", b => + { + b.HasOne("UDS.Net.API.Entities.Participation", "Participation") + .WithMany("Visits") + .HasForeignKey("ParticipationId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Participation"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Participation", b => + { + b.Navigation("M1s"); + + b.Navigation("Visits"); + }); + + modelBuilder.Entity("UDS.Net.API.Entities.Visit", b => + { + b.Navigation("A1") + .IsRequired(); + + b.Navigation("A2") + .IsRequired(); + + b.Navigation("A3") + .IsRequired(); + + b.Navigation("A4Ds"); + + b.Navigation("A4G") + .IsRequired(); + + b.Navigation("A5") + .IsRequired(); + + b.Navigation("B1") + .IsRequired(); + + b.Navigation("B4") + .IsRequired(); + + b.Navigation("B5") + .IsRequired(); + + b.Navigation("B6") + .IsRequired(); + + b.Navigation("B7") + .IsRequired(); + + b.Navigation("B8") + .IsRequired(); + + b.Navigation("B9") + .IsRequired(); + + b.Navigation("C1") + .IsRequired(); + + b.Navigation("C2") + .IsRequired(); + + b.Navigation("D1") + .IsRequired(); + + b.Navigation("D2") + .IsRequired(); + + b.Navigation("FormStatuses"); + + b.Navigation("T1"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/UDS.Net.API/Data/Migrations/20230912204138_change-respothx-type.cs b/src/UDS.Net.API/Data/Migrations/20230912204138_change-respothx-type.cs new file mode 100644 index 0000000..9d93d14 --- /dev/null +++ b/src/UDS.Net.API/Data/Migrations/20230912204138_change-respothx-type.cs @@ -0,0 +1,38 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace UDS.Net.API.Data.Migrations +{ + /// + public partial class changerespothxtype : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "RESPOTHX", + table: "tbl_C2s", + type: "nvarchar(60)", + maxLength: 60, + nullable: true, + oldClrType: typeof(int), + oldType: "int", + oldNullable: true); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "RESPOTHX", + table: "tbl_C2s", + type: "int", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(60)", + oldMaxLength: 60, + oldNullable: true); + } + } +} diff --git a/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs b/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs index b3ed609..df1691d 100644 --- a/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs +++ b/src/UDS.Net.API/Data/Migrations/ApiDbContextModelSnapshot.cs @@ -2140,8 +2140,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("RESPOTH") .HasColumnType("int"); - b.Property("RESPOTHX") - .HasColumnType("int"); + b.Property("RESPOTHX") + .HasMaxLength(60) + .HasColumnType("nvarchar(60)"); b.Property("RESPVAL") .HasColumnType("int"); diff --git a/src/UDS.Net.API/Entities/C2.cs b/src/UDS.Net.API/Entities/C2.cs index 1572165..c421447 100644 --- a/src/UDS.Net.API/Entities/C2.cs +++ b/src/UDS.Net.API/Entities/C2.cs @@ -116,7 +116,8 @@ public class C2 : Form public int? RESPEMOT { get; set; } public int? RESPASST { get; set; } public int? RESPOTH { get; set; } - public int? RESPOTHX { get; set; } + [MaxLength(60)] + public string? RESPOTHX { get; set; } } } diff --git a/src/UDS.Net.API/UDS.Net.API.csproj b/src/UDS.Net.API/UDS.Net.API.csproj index f4d766e..69031ba 100644 --- a/src/UDS.Net.API/UDS.Net.API.csproj +++ b/src/UDS.Net.API/UDS.Net.API.csproj @@ -4,7 +4,7 @@ net6.0 enable enable - 1.5.0 + 1.5.1 ../docker-compose.dcproj c1dd1715-6fa0-4515-bcf2-6a7f6a0c11a5 diff --git a/src/UDS.Net.Dto/C2Dto.cs b/src/UDS.Net.Dto/C2Dto.cs index 15ca8d2..8286f84 100644 --- a/src/UDS.Net.Dto/C2Dto.cs +++ b/src/UDS.Net.Dto/C2Dto.cs @@ -107,7 +107,7 @@ public class C2Dto : FormDto public int? RESPEMOT { get; set; } public int? RESPASST { get; set; } public int? RESPOTH { get; set; } - public int? RESPOTHX { get; set; } + public string RESPOTHX { get; set; } } } diff --git a/src/UDS.Net.Dto/UDS.Net.Dto.csproj b/src/UDS.Net.Dto/UDS.Net.Dto.csproj index 63c7c6a..d3567d1 100644 --- a/src/UDS.Net.Dto/UDS.Net.Dto.csproj +++ b/src/UDS.Net.Dto/UDS.Net.Dto.csproj @@ -4,13 +4,13 @@ netstandard2.1 Library UDS.Net.Dto - 1.5.0 + 1.5.1 Sanders-Brown Center on Aging UDS data transfer objects for use with API UK-SBCoA Dtos for API https://github.com/UK-SBCoA/uniform-data-set-dotnet-api - 1.5.0 + 1.5.1