DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Surveys/Migrations/SurveysDbContextModelSnapshot.cs

78 lines
2.5 KiB
C#
Raw Normal View History

2023-08-18 16:14:41 -05:00
// <auto-generated />
using System;
using DamageAssesment.Api.Surveys.Db;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
2023-09-27 16:18:48 -05:00
namespace DamageAssesment.Api.Surveys.Migrations
2023-08-18 16:14:41 -05:00
{
[DbContext(typeof(SurveysDbContext))]
partial class SurveysDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(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"));
2023-09-27 16:18:48 -05:00
b.Property<DateTime>("CreatedDate")
.HasColumnType("datetime2");
b.Property<DateTime>("EndDate")
2023-08-18 16:14:41 -05:00
.HasColumnType("datetime2");
b.Property<bool>("IsEnabled")
.HasColumnType("bit");
2023-09-27 16:18:48 -05:00
b.Property<DateTime>("StartDate")
2023-08-18 16:14:41 -05:00
.HasColumnType("datetime2");
2023-09-27 16:18:48 -05:00
b.HasKey("Id");
b.ToTable("Surveys");
});
modelBuilder.Entity("DamageAssesment.Api.Surveys.Db.SurveyTranslation", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Language")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<int>("SurveyId")
.HasColumnType("int");
2023-08-18 16:14:41 -05:00
b.Property<string>("Title")
.IsRequired()
2023-09-27 16:18:48 -05:00
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
2023-08-18 16:14:41 -05:00
b.HasKey("Id");
2023-09-27 16:18:48 -05:00
b.ToTable("SurveysTranslation");
2023-08-18 16:14:41 -05:00
});
#pragma warning restore 612, 618
}
}
}