using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SharpbinV3.Server.Migrations { /// public partial class UserTotps : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "UserTotps", columns: table => new { UserUUID = table.Column(type: "TEXT", nullable: false), EncryptedSecret = table.Column(type: "BLOB", nullable: false), CreatedAt = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_UserTotps", x => x.UserUUID); table.ForeignKey( name: "FK_UserTotps_Users_UserUUID", column: x => x.UserUUID, principalTable: "Users", principalColumn: "UUID", onDelete: ReferentialAction.Cascade); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "UserTotps"); } } }