// using System; using DamageAssesment.Api.Answers.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.Answers.Migrations { [DbContext(typeof(AnswerDbContext))] [Migration("20230816214724_InitialCreate")] partial class InitialCreate { /// 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.Answers.Db.Answer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id")); b.Property("AnswerText") .IsRequired() .HasMaxLength(250) .HasColumnType("nvarchar(250)"); b.Property("Comment") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("QuestionId") .HasColumnType("int"); b.Property("SurveyResponseId") .HasColumnType("int"); b.HasKey("Id"); b.ToTable("Answers"); }); #pragma warning restore 612, 618 } } }