using Microsoft.EntityFrameworkCore.Migrations; using System; namespace NadekoBot.Migrations { public partial class stakes : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Stakes", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), Amount = table.Column(nullable: false), DateAdded = table.Column(nullable: true), Source = table.Column(nullable: true), UserId = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_Stakes", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Stakes"); } } }