169 lines
5.6 KiB
C#
169 lines
5.6 KiB
C#
|
// <auto-generated />
|
|||
|
using System;
|
|||
|
using LawFirmDatabaseImplement;
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace LawFirmDatabaseImplement.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(LawFirmDatabase))]
|
|||
|
partial class LawFirmDatabaseModelSnapshot : ModelSnapshot
|
|||
|
{
|
|||
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
|
{
|
|||
|
#pragma warning disable 612, 618
|
|||
|
modelBuilder
|
|||
|
.HasAnnotation("ProductVersion", "7.0.3")
|
|||
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|||
|
|
|||
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|||
|
|
|||
|
modelBuilder.Entity("LawFirmDatabaseImplement.Models.Blank", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|||
|
|
|||
|
b.Property<string>("BlankName")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|||
|
b.Property<double>("Price")
|
|||
|
.HasColumnType("float");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Blanks");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("LawFirmDatabaseImplement.Models.Document", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|||
|
|
|||
|
b.Property<string>("DocumentName")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("nvarchar(max)");
|
|||
|
|
|||
|
b.Property<double>("Price")
|
|||
|
.HasColumnType("float");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Documents");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("LawFirmDatabaseImplement.Models.DocumentBlank", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|||
|
|
|||
|
b.Property<int>("BlankId")
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
b.Property<int>("Count")
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
b.Property<int>("DocumentId")
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("BlankId");
|
|||
|
|
|||
|
b.HasIndex("DocumentId");
|
|||
|
|
|||
|
b.ToTable("DocumentBlanks");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("LawFirmDatabaseImplement.Models.Order", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|||
|
|
|||
|
b.Property<int>("Count")
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
b.Property<DateTime>("DateCreate")
|
|||
|
.HasColumnType("datetime2");
|
|||
|
|
|||
|
b.Property<DateTime?>("DateImplement")
|
|||
|
.HasColumnType("datetime2");
|
|||
|
|
|||
|
b.Property<int>("DocumentId")
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
b.Property<int>("Status")
|
|||
|
.HasColumnType("int");
|
|||
|
|
|||
|
b.Property<double>("Sum")
|
|||
|
.HasColumnType("float");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.HasIndex("DocumentId");
|
|||
|
|
|||
|
b.ToTable("Orders");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("LawFirmDatabaseImplement.Models.DocumentBlank", b =>
|
|||
|
{
|
|||
|
b.HasOne("LawFirmDatabaseImplement.Models.Blank", "Blank")
|
|||
|
.WithMany("DocumentBlanks")
|
|||
|
.HasForeignKey("BlankId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
.IsRequired();
|
|||
|
|
|||
|
b.HasOne("LawFirmDatabaseImplement.Models.Document", "Document")
|
|||
|
.WithMany("Blanks")
|
|||
|
.HasForeignKey("DocumentId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
.IsRequired();
|
|||
|
|
|||
|
b.Navigation("Blank");
|
|||
|
|
|||
|
b.Navigation("Document");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("LawFirmDatabaseImplement.Models.Order", b =>
|
|||
|
{
|
|||
|
b.HasOne("LawFirmDatabaseImplement.Models.Document", "Document")
|
|||
|
.WithMany("Orders")
|
|||
|
.HasForeignKey("DocumentId")
|
|||
|
.OnDelete(DeleteBehavior.Cascade)
|
|||
|
.IsRequired();
|
|||
|
|
|||
|
b.Navigation("Document");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("LawFirmDatabaseImplement.Models.Blank", b =>
|
|||
|
{
|
|||
|
b.Navigation("DocumentBlanks");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("LawFirmDatabaseImplement.Models.Document", b =>
|
|||
|
{
|
|||
|
b.Navigation("Blanks");
|
|||
|
|
|||
|
b.Navigation("Orders");
|
|||
|
});
|
|||
|
#pragma warning restore 612, 618
|
|||
|
}
|
|||
|
}
|
|||
|
}
|