using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DeluxeNET.Migrations { /// public partial class avatarAddition : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Avatars", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), accountId = table.Column(type: "bigint", nullable: false), OutfitSelections = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), FaceFeatures = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), SkinColor = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), HairColor = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { table.PrimaryKey("PK_Avatars", x => x.Id); }) .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Avatars"); } } }