DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.DocuLinks/Migrations/DocumentDbContextModelSnapshot.cs

160 lines
5.3 KiB
C#
Raw Permalink Normal View History

2023-08-31 18:00:51 -05:00
// <auto-generated />
using System;
2023-09-22 10:52:17 -05:00
using DamageAssesment.Api.DocuLinks.Db;
2023-08-31 18:00:51 -05:00
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
2023-09-22 10:52:17 -05:00
namespace DamageAssesment.Api.DocuLinks.Migrations
2023-08-31 18:00:51 -05:00
{
2023-09-22 10:52:17 -05:00
[DbContext(typeof(DoculinkDbContext))]
2023-08-31 18:00:51 -05:00
partial class DocumentDbContextModelSnapshot : 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);
2023-09-26 11:40:55 -05:00
modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.Doculink", b =>
2023-08-31 18:00:51 -05:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
2023-09-26 11:40:55 -05:00
b.Property<int>("CustomOrder")
.HasColumnType("int");
2023-08-31 18:00:51 -05:00
b.Property<bool>("IsActive")
.HasColumnType("bit");
2023-09-26 11:40:55 -05:00
b.Property<bool>("IsDeleted")
.HasColumnType("bit");
2023-08-31 18:00:51 -05:00
b.Property<DateTime>("dateCreated")
.HasColumnType("datetime2");
b.Property<DateTime>("dateUpdated")
.HasColumnType("datetime2");
b.Property<int>("linkTypeId")
.HasColumnType("int");
2023-09-26 11:40:55 -05:00
b.HasKey("Id");
b.ToTable("Documents");
});
modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.DoculinkAttachments", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("CustomOrder")
.HasColumnType("int");
b.Property<int>("DocumentId")
.HasColumnType("int");
b.Property<bool>("IsAttachments")
.HasColumnType("bit");
b.Property<string>("Path")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("docName")
2023-08-31 18:00:51 -05:00
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
2023-09-26 11:40:55 -05:00
b.ToTable("DoclinksAttachments");
2023-08-31 18:00:51 -05:00
});
2023-09-26 11:40:55 -05:00
modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.DoculinkTranslation", b =>
2023-08-31 18:00:51 -05:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<int>("DocumentId")
.HasColumnType("int");
b.Property<string>("Language")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("description")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("title")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("DocumentsTranslations");
});
2023-09-22 10:52:17 -05:00
modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.LinkType", b =>
2023-08-31 18:00:51 -05:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
2023-09-26 11:40:55 -05:00
b.Property<int>("CustomOrder")
.HasColumnType("int");
2023-08-31 18:00:51 -05:00
b.Property<bool>("IsActive")
.HasColumnType("bit");
2023-09-26 11:40:55 -05:00
b.HasKey("Id");
b.ToTable("LinkTypes");
});
modelBuilder.Entity("DamageAssesment.Api.DocuLinks.Db.LinksTranslation", 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>("LinkTypeId")
.HasColumnType("int");
2023-08-31 18:00:51 -05:00
b.Property<string>("TypeText")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
2023-09-26 11:40:55 -05:00
b.ToTable("LinksTranslations");
2023-08-31 18:00:51 -05:00
});
#pragma warning restore 612, 618
}
}
}