using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ir23.Migrations { /// public partial class accountsAdd : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Accounts", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), accountId = table.Column(type: "bigint", nullable: false), displayName = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), bannerImage = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), createdAt = table.Column(type: "datetime(6)", nullable: false), isJunior = table.Column(type: "tinyint(1)", nullable: false), platforms = table.Column(type: "int", nullable: false), profileImage = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), username = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { table.PrimaryKey("PK_Accounts", x => x.Id); }) .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Accounts"); } } }