using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace BTCPayServer.Migrations { public partial class Tokens : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PairedSINData", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), Facade = table.Column(type: "TEXT", nullable: true), Label = table.Column(type: "TEXT", nullable: true), Name = table.Column(type: "TEXT", nullable: true), PairingTime = table.Column(nullable: false), SIN = table.Column(type: "TEXT", nullable: true), StoreDataId = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_PairedSINData", x => x.Id); }); migrationBuilder.CreateTable( name: "PairingCodes", columns: table => new { Id = table.Column(type: "TEXT", nullable: false), DateCreated = table.Column(nullable: false), Expiration = table.Column(nullable: false), Facade = table.Column(type: "TEXT", nullable: true), Label = table.Column(type: "TEXT", nullable: true), Name = table.Column(type: "TEXT", nullable: true), SIN = table.Column(type: "TEXT", nullable: true), StoreDataId = table.Column(type: "TEXT", nullable: true), TokenValue = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_PairingCodes", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_PairedSINData_SIN", table: "PairedSINData", column: "SIN"); migrationBuilder.CreateIndex( name: "IX_PairedSINData_StoreDataId", table: "PairedSINData", column: "StoreDataId"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PairedSINData"); migrationBuilder.DropTable( name: "PairingCodes"); } } }