80 lines
2.4 KiB
C#
80 lines
2.4 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using TaxPayer.Infrastructure.Persistence;
|
|
|
|
#nullable disable
|
|
|
|
namespace Back.Migrations
|
|
{
|
|
[DbContext(typeof(SqlDbContext))]
|
|
partial class SqlDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.15")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
|
|
modelBuilder.Entity("Back.Data.Models.Promotion", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("Satus")
|
|
.HasColumnType("bit");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("Promotions");
|
|
});
|
|
|
|
modelBuilder.Entity("Back.Data.Models.PromotionDetails", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
|
|
|
b.Property<decimal>("APrice")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("CreditAmount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PermissionID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("PromotionID")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("PermissionID");
|
|
|
|
b.HasIndex("PromotionID");
|
|
|
|
b.ToTable("PromotionDetails");
|
|
});
|
|
|
|
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|