using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace wtmProject.DataAccess.Migrations { public partial class hmr2024071501 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "WTM_CONTRACT_IMPORT_TEMP", columns: table => new { ID = table.Column(type: "uniqueidentifier", nullable: false), TenantCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ContractCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ContractName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ERPCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ERPName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), NUM = table.Column(type: "int", nullable: false), CustomName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ProjectType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), CustomType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), SignDate = table.Column(type: "datetime2", nullable: true), ContractAmount = table.Column(type: "decimal(18,2)", nullable: true), ProjectManage = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), MarkManage = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), FirstBillingAmount = table.Column(type: "decimal(18,2)", nullable: true), FirstBillingDate = table.Column(type: "datetime2", nullable: true), FirstReceivedAmount = table.Column(type: "decimal(18,2)", nullable: true), FirstReceivedDate = table.Column(type: "datetime2", nullable: true), SecondBillingAmount = table.Column(type: "decimal(18,2)", nullable: true), SecondBillingDate = table.Column(type: "datetime2", nullable: true), SecondReceivedAmount = table.Column(type: "decimal(18,2)", nullable: true), SecondReceivedDate = table.Column(type: "datetime2", nullable: true), ThreeBillingAmount = table.Column(type: "decimal(18,2)", nullable: true), ThreeBillingDate = table.Column(type: "datetime2", nullable: true), ThreeReceivedAmount = table.Column(type: "decimal(18,2)", nullable: true), ThreeReceivedDate = table.Column(type: "datetime2", nullable: true), FourthBillingAmount = table.Column(type: "decimal(18,2)", nullable: true), FourthBillingDate = table.Column(type: "datetime2", nullable: true), FourthReceivedAmount = table.Column(type: "decimal(18,2)", nullable: true), FourthReceivedDate = table.Column(type: "datetime2", nullable: true), FifthBillingAmount = table.Column(type: "decimal(18,2)", nullable: true), FifthBillingDate = table.Column(type: "datetime2", nullable: true), FifthReceivedAmount = table.Column(type: "decimal(18,2)", nullable: true), FifthReceivedDate = table.Column(type: "datetime2", nullable: true), CreateTime = table.Column(type: "datetime2", nullable: true), CreateBy = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), UpdateTime = table.Column(type: "datetime2", nullable: true), UpdateBy = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) }, constraints: table => { table.PrimaryKey("PK_WTM_CONTRACT_IMPORT_TEMP", x => x.ID); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "WTM_CONTRACT_IMPORT_TEMP"); } } }