using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Win.Sfs.SettleAccount.Migrations { public partial class _202109020001 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Set_InvoiceVersion", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uniqueidentifier", nullable: true), DeletionTime = table.Column(type: "datetime2", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: false), Enabled = table.Column(type: "bit", nullable: false), Remark = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Set_InvoiceVersion", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Set_InvoiceVersion"); } } }