using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SCHALE.Common.Migrations { /// public partial class Echelons : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Echelons", columns: table => new { ServerId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), AccountServerId = table.Column(type: "bigint", nullable: false), EchelonType = table.Column(type: "int", nullable: false), EchelonNumber = table.Column(type: "bigint", nullable: false), ExtensionType = table.Column(type: "int", nullable: false), LeaderServerId = table.Column(type: "bigint", nullable: false), MainSlotServerIds = table.Column(type: "nvarchar(max)", nullable: false), SupportSlotServerIds = table.Column(type: "nvarchar(max)", nullable: false), TSSInteractionServerId = table.Column(type: "bigint", nullable: false), UsingFlag = table.Column(type: "int", nullable: false), SkillCardMulliganCharacterIds = table.Column(type: "nvarchar(max)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Echelons", x => x.ServerId); table.ForeignKey( name: "FK_Echelons_Accounts_AccountServerId", column: x => x.AccountServerId, principalTable: "Accounts", principalColumn: "ServerId", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateIndex( name: "IX_Echelons_AccountServerId", table: "Echelons", column: "AccountServerId"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Echelons"); } } }