56 lines
1.9 KiB
C#
56 lines
1.9 KiB
C#
|
// <auto-generated />
|
|||
|
using DamageAssesment.Api.SurveyResponses.Db;
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace DamageAssesment.Api.SurveyResponses.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(SurveyResponseDbContext))]
|
|||
|
[Migration("20230817221348_InitialSurveyResponse")]
|
|||
|
partial class InitialSurveyResponse
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
{
|
|||
|
#pragma warning disable 612, 618
|
|||
|
modelBuilder
|
|||
|
.HasAnnotation("ProductVersion", "7.0.9")
|
|||
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|||
|
|
|||
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|||
|
|
|||
|
modelBuilder.Entity("DamageAssesment.Api.SurveyResponses.Db.SurveyResponse", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|||
|
|
|||
|
b.Property<string>("EmployeeId")
|
|||
|
.IsRequired()
|
|||
|
.HasMaxLength(6)
|
|||
|
.HasColumnType("nvarchar(6)");
|
|||
|
|
|||
|
b.Property<string>("LocationId")
|
|||
|
.IsRequired()
|
|||
|
.HasMaxLength(4)
|
|||
|
.HasColumnType("nvarchar(4)");
|
|||
|
|
|||
|
b.Property<int>("SurveyId")
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("SurveyResponses");
|
|||
|
});
|
|||
|
#pragma warning restore 612, 618
|
|||
|
}
|
|||
|
}
|
|||
|
}
|