using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DeluxeNET.Migrations { /// public partial class repAdd : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Reputations", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), accountId = table.Column(type: "bigint", nullable: false), IsCheerful = table.Column(type: "tinyint(1)", nullable: false), Noteriety = table.Column(type: "float", nullable: false), SelectedCheer = table.Column(type: "int", nullable: false), CheerCredit = table.Column(type: "int", nullable: false), CheerGeneral = table.Column(type: "int", nullable: false), CheerHelpful = table.Column(type: "int", nullable: false), CheerCreative = table.Column(type: "int", nullable: false), CheerGreatHost = table.Column(type: "int", nullable: false), CheerSportsman = table.Column(type: "int", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Reputations", x => x.Id); }) .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Reputations"); } } }