using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ir23.Migrations
{
///
public partial class ReputationAddition : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PlayerSettings",
columns: table => new
{
Id = table.Column(type: "bigint", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
accountId = table.Column(type: "bigint", nullable: false),
Key = table.Column(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Value = table.Column(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_PlayerSettings", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
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),
Noteriety = table.Column(type: "int", nullable: false),
CheerGeneral = table.Column(type: "int", nullable: false),
CheerHelpful = table.Column(type: "int", nullable: false),
CheerGreatHost = table.Column(type: "int", nullable: false),
CheerSportsman = table.Column(type: "int", nullable: false),
CheerCreative = table.Column(type: "int", nullable: false),
CheerCredit = table.Column(type: "int", nullable: false),
SubscriberCount = table.Column(type: "int", nullable: false),
SubscribedCount = table.Column(type: "int", nullable: false),
SelectedCheer = 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: "PlayerSettings");
migrationBuilder.DropTable(
name: "Reputations");
}
}
}