学 赵
1 year ago
3 changed files with 5402 additions and 0 deletions
File diff suppressed because it is too large
@ -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"); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue