F2 avanzada
This commit is contained in:
@@ -236,6 +236,44 @@ namespace vita_asistente.Migrations
|
||||
.HasDatabaseName("UserNameIndex");
|
||||
|
||||
b.ToTable("AspNetUsers", (string)null);
|
||||
|
||||
b.UseTptMappingStrategy();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("vita_asistente.Data.Models.Paciente", b =>
|
||||
{
|
||||
b.HasBaseType("vita_asistente.Models.ApplicationUser");
|
||||
|
||||
b.Property<string>("AlergiasDescripcion")
|
||||
.IsRequired()
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("varchar(500)");
|
||||
|
||||
b.Property<DateTime>("FechaRegistro")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("NombreContactoEmergencia")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("varchar(100)");
|
||||
|
||||
b.Property<string>("TelefonoContactoEmergencia")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)");
|
||||
|
||||
b.Property<bool>("TieneAlergiasMedicamentosas")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("TipoSangre")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)");
|
||||
|
||||
b.ToTable("Pacientes", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||
@@ -288,6 +326,15 @@ namespace vita_asistente.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("vita_asistente.Data.Models.Paciente", b =>
|
||||
{
|
||||
b.HasOne("vita_asistente.Models.ApplicationUser", null)
|
||||
.WithOne()
|
||||
.HasForeignKey("vita_asistente.Data.Models.Paciente", "Id")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user