using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace NadekoBot.Migrations { /// public partial class betstats : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "UserBetStats", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), UserId = table.Column(type: "INTEGER", nullable: false), Game = table.Column(type: "INTEGER", nullable: false), WinCount = table.Column(type: "INTEGER", nullable: false), LoseCount = table.Column(type: "INTEGER", nullable: false), TotalBet = table.Column(type: "TEXT", nullable: false), PaidOut = table.Column(type: "TEXT", nullable: false), MaxWin = table.Column(type: "INTEGER", nullable: false), MaxBet = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_UserBetStats", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_UserBetStats_UserId_Game", table: "UserBetStats", columns: new[] { "UserId", "Game" }, unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "UserBetStats"); } } }