58 lines
1.8 KiB
C#
58 lines
1.8 KiB
C#
|
// <auto-generated />
|
|||
|
using System;
|
|||
|
using DamageAssesment.Api.Surveys.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.Survey.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(SurveysDbContext))]
|
|||
|
[Migration("20230817220614_InitialSurvey")]
|
|||
|
partial class InitialSurvey
|
|||
|
{
|
|||
|
/// <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.Surveys.Db.Survey", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|||
|
|
|||
|
b.Property<DateTime?>("EndDate")
|
|||
|
.HasColumnType("datetime2");
|
|||
|
|
|||
|
b.Property<bool>("IsEnabled")
|
|||
|
.HasColumnType("bit");
|
|||
|
|
|||
|
b.Property<DateTime?>("StartDate")
|
|||
|
.HasColumnType("datetime2");
|
|||
|
|
|||
|
b.Property<string>("Title")
|
|||
|
.IsRequired()
|
|||
|
.HasMaxLength(100)
|
|||
|
.HasColumnType("nvarchar(100)");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Surveys");
|
|||
|
});
|
|||
|
#pragma warning restore 612, 618
|
|||
|
}
|
|||
|
}
|
|||
|
}
|