using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Dfs.WayneChina.SpsDataCourier.Migrations { public partial class AddBaseBlackCard : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "BaseBlackCard", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), Gid = table.Column(nullable: false), CardNo = table.Column(nullable: true), DateTime = table.Column(nullable: false), AccountGid = table.Column(nullable: false), AccountId = table.Column(nullable: true), CardType = table.Column(nullable: false), DiscountNo = table.Column(nullable: false), Reason = table.Column(nullable: true), UploadFlag = table.Column(nullable: false), OperationType = table.Column(nullable: false), VersionNo = table.Column(nullable: false), LastUpdate = table.Column(nullable: false), CommitFlag = table.Column(nullable: false), SyncFlag = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_BaseBlackCard", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "BaseBlackCard"); } } }