using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Blahblah.FlowerStory.Server.Migrations { /// public partial class AddTokens : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "tokens", columns: table => new { tid = table.Column(type: "TEXT", nullable: false), uid = table.Column(type: "INTEGER", nullable: false), logondate = table.Column(type: "INTEGER", nullable: false), activedate = table.Column(type: "INTEGER", nullable: false), expiredate = table.Column(type: "INTEGER", nullable: false), expiresecs = table.Column(type: "INTEGER", nullable: false), verifycode = table.Column(type: "TEXT", nullable: true), clientapp = table.Column(type: "TEXT", nullable: true), deviceid = table.Column(type: "TEXT", nullable: true), clientagent = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_tokens", x => x.tid); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "tokens"); } } }