| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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<ulong>(nullable: false)
- .Annotation("Sqlite:Autoincrement", true),
- Gid = table.Column<ulong>(nullable: false),
- CardNo = table.Column<string>(nullable: true),
- DateTime = table.Column<DateTime>(nullable: false),
- AccountGid = table.Column<ulong>(nullable: false),
- AccountId = table.Column<string>(nullable: true),
- CardType = table.Column<byte>(nullable: false),
- DiscountNo = table.Column<ushort>(nullable: false),
- Reason = table.Column<string>(nullable: true),
- UploadFlag = table.Column<byte>(nullable: false),
- OperationType = table.Column<byte>(nullable: false),
- VersionNo = table.Column<long>(nullable: false),
- LastUpdate = table.Column<DateTime>(nullable: false),
- CommitFlag = table.Column<byte>(nullable: false),
- SyncFlag = table.Column<byte>(nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_BaseBlackCard", x => x.Id);
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "BaseBlackCard");
- }
- }
- }
|