Browse Source

更新生成调整单数据库

master
学 赵 1 year ago
parent
commit
63c1852705
  1. 4993
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.Designer.cs
  2. 130
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.cs
  3. 279
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

4993
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.Designer.cs

File diff suppressed because it is too large

130
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230726021913_202307260001.cs

@ -0,0 +1,130 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202307260001 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "BusinessType",
table: "Set_BBAC_CAN_SA",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.CreateTable(
name: "Set_BBAC_ADJ_DETAIL",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
BusinessType = table.Column<int>(type: "int", nullable: false),
IsReturn = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ContractDocID = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
OldInvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
InvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Version = table.Column<int>(type: "int", nullable: false),
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
SettleDate = table.Column<DateTime>(type: "datetime2", nullable: false),
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
LU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
KeyCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
GroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Set_BBAC_ADJ_DETAIL", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Set_HBPO_ADJ_DETAIL",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
BusinessType = table.Column<int>(type: "int", nullable: false),
OldInvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
InvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Version = table.Column<int>(type: "int", nullable: false),
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
SettleDate = table.Column<DateTime>(type: "datetime2", nullable: false),
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
LU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
KeyCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
GroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Set_HBPO_ADJ_DETAIL", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Set_PUB_ADJ_DETAIL",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Extend1 = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
BusinessType = table.Column<int>(type: "int", nullable: false),
OldInvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
InvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Version = table.Column<int>(type: "int", nullable: false),
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
SettleDate = table.Column<DateTime>(type: "datetime2", nullable: false),
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
LU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
KeyCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
GroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Set_PUB_ADJ_DETAIL", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Set_BBAC_ADJ_DETAIL");
migrationBuilder.DropTable(
name: "Set_HBPO_ADJ_DETAIL");
migrationBuilder.DropTable(
name: "Set_PUB_ADJ_DETAIL");
migrationBuilder.DropColumn(
name: "BusinessType",
table: "Set_BBAC_CAN_SA");
}
}
}

279
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

@ -21,6 +21,102 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasAnnotation("ProductVersion", "5.0.17")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_ADJ_DETAIL", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("BusinessType")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)")
.HasColumnName("ConcurrencyStamp");
b.Property<string>("ContractDocID")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("GroupNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("InvBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("InvGroupNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("IsReturn")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("KeyCode")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("LU")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("OldInvBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PN")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Qty")
.HasColumnType("decimal(18,2)");
b.Property<string>("SettleBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime>("SettleDate")
.HasColumnType("datetime2");
b.Property<string>("Site")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("Version")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("Set_BBAC_ADJ_DETAIL");
});
modelBuilder.Entity("SettleAccount.Domain.BQ.BBAC_CAN_SA", b =>
{
b.Property<Guid>("Id")
@ -31,6 +127,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("BusinessType")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(50)
@ -927,6 +1026,94 @@ namespace Win.Sfs.SettleAccount.Migrations
b.ToTable("Set_BBAC_SE_SA_REPORT");
});
modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_ADJ_DETAIL", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("BusinessType")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("GroupNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("InvBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("InvGroupNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("KeyCode")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("LU")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("OldInvBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PN")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Qty")
.HasColumnType("decimal(18,2)");
b.Property<string>("SettleBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime>("SettleDate")
.HasColumnType("datetime2");
b.Property<string>("Site")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("Version")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("Set_HBPO_ADJ_DETAIL");
});
modelBuilder.Entity("SettleAccount.Domain.BQ.HBPO_CAN_SA", b =>
{
b.Property<Guid>("Id")
@ -2276,6 +2463,98 @@ namespace Win.Sfs.SettleAccount.Migrations
b.ToTable("Set_JIT_SE_SA_REPORT");
});
modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_ADJ_DETAIL", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("BusinessType")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property<string>("Extend1")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property<string>("GroupNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("InvBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("InvGroupNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("KeyCode")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("LU")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property<string>("OldInvBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("PN")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<decimal>("Price")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("Qty")
.HasColumnType("decimal(18,2)");
b.Property<string>("SettleBillNum")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<DateTime>("SettleDate")
.HasColumnType("datetime2");
b.Property<string>("Site")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("Version")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("Set_PUB_ADJ_DETAIL");
});
modelBuilder.Entity("SettleAccount.Domain.BQ.PUB_CAN_SA", b =>
{
b.Property<Guid>("Id")

Loading…
Cancel
Save