// <auto-generated /> using System; using DamageAssesment.Api.Attachments.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.Attachments.Migrations { [DbContext(typeof(AttachmentsDbContext))] [Migration("20230817212256_InitialAttachment")] partial class InitialAttachment { /// <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.Attachments.Db.Attachment", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id")); b.Property<int?>("AnswerId") .HasColumnType("int"); b.Property<string>("FileName") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property<bool>("IsDeleted") .HasColumnType("bit"); b.Property<int>("ResponseId") .HasColumnType("int"); b.Property<string>("URI") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Attachments"); }); #pragma warning restore 612, 618 } } }