using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace steam.Migrations { /// public partial class InitialCreate : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "SteamUserCredentials", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), TeamId = table.Column(type: "TEXT", nullable: false), UserId = table.Column(type: "TEXT", nullable: false), AccountName = table.Column(type: "TEXT", nullable: false), RefreshToken = table.Column(type: "TEXT", nullable: false), CreatedAt = table.Column(type: "TEXT", nullable: false), UpdatedAt = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_SteamUserCredentials", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_SteamUserCredentials_TeamId_UserId", table: "SteamUserCredentials", columns: new[] { "TeamId", "UserId" }, unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "SteamUserCredentials"); } } }