This commit is contained in:
Exception
2026-05-09 14:13:43 -04:00
parent 8bd09e08c3
commit 46589f2ef3
202 changed files with 11550 additions and 0 deletions
+56
View File
@@ -0,0 +1,56 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ir23.Data;
#nullable disable
namespace ir23.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260325170745_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ir23.Data.PlatformData", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<DateTime>("lastLoginTime")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "lastLoginTime");
b.Property<int>("platform")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platform");
b.Property<string>("platformId")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "platformId");
b.HasKey("Id");
b.ToTable("PlatformDatas");
});
#pragma warning restore 612, 618
}
}
}
@@ -0,0 +1,44 @@
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ir23.Migrations
{
/// <inheritdoc />
public partial class InitialCreate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterDatabase()
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "PlatformDatas",
columns: table => new
{
Id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
platform = table.Column<int>(type: "int", nullable: false),
platformId = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
accountId = table.Column<long>(type: "bigint", nullable: false),
lastLoginTime = table.Column<DateTime>(type: "datetime(6)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PlatformDatas", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PlatformDatas");
}
}
}
+104
View File
@@ -0,0 +1,104 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ir23.Data;
#nullable disable
namespace ir23.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260325170853_accountsAdd")]
partial class accountsAdd
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ir23.Data.PlatformData", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<DateTime>("lastLoginTime")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "lastLoginTime");
b.Property<int>("platform")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platform");
b.Property<string>("platformId")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "platformId");
b.HasKey("Id");
b.ToTable("PlatformDatas");
});
modelBuilder.Entity("ir23.Data.account", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<string>("bannerImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "bannerImage");
b.Property<DateTime>("createdAt")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "createdAt");
b.Property<string>("displayName")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "displayName");
b.Property<bool>("isJunior")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "isJunior");
b.Property<int>("platforms")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platforms");
b.Property<string>("profileImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "profileImage");
b.Property<string>("username")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "username");
b.HasKey("Id");
b.ToTable("Accounts");
});
#pragma warning restore 612, 618
}
}
}
+48
View File
@@ -0,0 +1,48 @@
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ir23.Migrations
{
/// <inheritdoc />
public partial class accountsAdd : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Accounts",
columns: table => new
{
Id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
accountId = table.Column<long>(type: "bigint", nullable: false),
displayName = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
bannerImage = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
createdAt = table.Column<DateTime>(type: "datetime(6)", nullable: false),
isJunior = table.Column<bool>(type: "tinyint(1)", nullable: false),
platforms = table.Column<int>(type: "int", nullable: false),
profileImage = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
username = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_Accounts", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Accounts");
}
}
}
+100
View File
@@ -0,0 +1,100 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ir23.Data;
#nullable disable
namespace ir23.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260326165257_accountsIdFix")]
partial class accountsIdFix
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ir23.Data.PlatformData", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<DateTime>("lastLoginTime")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "lastLoginTime");
b.Property<int>("platform")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platform");
b.Property<string>("platformId")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "platformId");
b.HasKey("Id");
b.ToTable("PlatformDatas");
});
modelBuilder.Entity("ir23.Data.account", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<string>("bannerImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "bannerImage");
b.Property<DateTime>("createdAt")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "createdAt");
b.Property<string>("displayName")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "displayName");
b.Property<bool>("isJunior")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "isJunior");
b.Property<int>("platforms")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platforms");
b.Property<string>("profileImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "profileImage");
b.Property<string>("username")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "username");
b.HasKey("Id");
b.ToTable("Accounts");
});
#pragma warning restore 612, 618
}
}
}
@@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ir23.Migrations
{
/// <inheritdoc />
public partial class accountsIdFix : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "accountId",
table: "Accounts");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<long>(
name: "accountId",
table: "Accounts",
type: "bigint",
nullable: false,
defaultValue: 0L);
}
}
}
+125
View File
@@ -0,0 +1,125 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ir23.Data;
#nullable disable
namespace ir23.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260326190847_refreshTableConfig")]
partial class refreshTableConfig
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ir23.Data.PlatformData", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<DateTime>("lastLoginTime")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "lastLoginTime");
b.Property<int>("platform")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platform");
b.Property<string>("platformId")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "platformId");
b.HasKey("Id");
b.ToTable("PlatformDatas");
});
modelBuilder.Entity("ir23.Data.account", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<string>("bannerImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "bannerImage");
b.Property<DateTime>("createdAt")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "createdAt");
b.Property<bool>("developer")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "developer");
b.Property<string>("displayName")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "displayName");
b.Property<bool>("isJunior")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "isJunior");
b.Property<int>("platforms")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platforms");
b.Property<string>("profileImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "profileImage");
b.Property<string>("username")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "username");
b.HasKey("Id");
b.ToTable("Accounts");
});
modelBuilder.Entity("ir23.Data.refreshtable", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<long>("AccountId")
.HasColumnType("bigint");
b.Property<DateTime>("ExpiryTime")
.HasColumnType("datetime(6)");
b.Property<string>("RefreshToken")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("refreshtables");
});
#pragma warning restore 612, 618
}
}
}
@@ -0,0 +1,51 @@
using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ir23.Migrations
{
/// <inheritdoc />
public partial class refreshTableConfig : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "developer",
table: "Accounts",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
migrationBuilder.CreateTable(
name: "refreshtables",
columns: table => new
{
Id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
RefreshToken = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
ExpiryTime = table.Column<DateTime>(type: "datetime(6)", nullable: false),
AccountId = table.Column<long>(type: "bigint", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_refreshtables", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "refreshtables");
migrationBuilder.DropColumn(
name: "developer",
table: "Accounts");
}
}
}
+161
View File
@@ -0,0 +1,161 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ir23.Data;
#nullable disable
namespace ir23.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260326231457_AvatarDB")]
partial class AvatarDB
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ir23.Data.PlatformData", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<DateTime>("lastLoginTime")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "lastLoginTime");
b.Property<int>("platform")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platform");
b.Property<string>("platformId")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "platformId");
b.HasKey("Id");
b.ToTable("PlatformDatas");
});
modelBuilder.Entity("ir23.Data.account", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<string>("bannerImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "bannerImage");
b.Property<DateTime>("createdAt")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "createdAt");
b.Property<bool>("developer")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "developer");
b.Property<string>("displayName")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "displayName");
b.Property<bool>("isJunior")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "isJunior");
b.Property<int>("platforms")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platforms");
b.Property<string>("profileImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "profileImage");
b.Property<string>("username")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "username");
b.HasKey("Id");
b.ToTable("Accounts");
});
modelBuilder.Entity("ir23.Data.avatar", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<string>("FaceFeatures")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "FaceFeatures");
b.Property<string>("HairColor")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "HairColor");
b.Property<string>("OutfitSelections")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "OutfitSelections");
b.Property<string>("SkinColour")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "SkinColor");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("Avatars");
});
modelBuilder.Entity("ir23.Data.refreshtable", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<long>("AccountId")
.HasColumnType("bigint");
b.Property<DateTime>("ExpiryTime")
.HasColumnType("datetime(6)");
b.Property<string>("RefreshToken")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("refreshtables");
});
#pragma warning restore 612, 618
}
}
}
+44
View File
@@ -0,0 +1,44 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ir23.Migrations
{
/// <inheritdoc />
public partial class AvatarDB : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Avatars",
columns: table => new
{
Id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
accountId = table.Column<long>(type: "bigint", nullable: false),
OutfitSelections = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
FaceFeatures = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
SkinColour = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
HairColor = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_Avatars", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Avatars");
}
}
}
+243
View File
@@ -0,0 +1,243 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ir23.Data;
#nullable disable
namespace ir23.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260326234138_ReputationAddition")]
partial class ReputationAddition
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ir23.Data.PlatformData", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<DateTime>("lastLoginTime")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "lastLoginTime");
b.Property<int>("platform")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platform");
b.Property<string>("platformId")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "platformId");
b.HasKey("Id");
b.ToTable("PlatformDatas");
});
modelBuilder.Entity("ir23.Data.account", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<string>("bannerImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "bannerImage");
b.Property<DateTime>("createdAt")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "createdAt");
b.Property<bool>("developer")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "developer");
b.Property<string>("displayName")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "displayName");
b.Property<bool>("isJunior")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "isJunior");
b.Property<int>("platforms")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platforms");
b.Property<string>("profileImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "profileImage");
b.Property<string>("username")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "username");
b.HasKey("Id");
b.ToTable("Accounts");
});
modelBuilder.Entity("ir23.Data.avatar", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<string>("FaceFeatures")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "FaceFeatures");
b.Property<string>("HairColor")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "HairColor");
b.Property<string>("OutfitSelections")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "OutfitSelections");
b.Property<string>("SkinColour")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "SkinColor");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("Avatars");
});
modelBuilder.Entity("ir23.Data.playersetting", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<string>("Key")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "Key");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "Value");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("PlayerSettings");
});
modelBuilder.Entity("ir23.Data.refreshtable", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<long>("AccountId")
.HasColumnType("bigint");
b.Property<DateTime>("ExpiryTime")
.HasColumnType("datetime(6)");
b.Property<string>("RefreshToken")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("refreshtables");
});
modelBuilder.Entity("ir23.Data.reputation", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<int>("CheerCreative")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerCreative");
b.Property<int>("CheerCredit")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerCredit");
b.Property<int>("CheerGeneral")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerGeneral");
b.Property<int>("CheerGreatHost")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerGreatHost");
b.Property<int>("CheerHelpful")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerHelpful");
b.Property<int>("CheerSportsman")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerSportsman");
b.Property<int>("Noteriety")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "Noteriety");
b.Property<int>("SelectedCheer")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SelectedCheer");
b.Property<int>("SubscribedCount")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SubscribedCount");
b.Property<int>("SubscriberCount")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SubscriberCount");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("Reputations");
});
#pragma warning restore 612, 618
}
}
}
@@ -0,0 +1,67 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ir23.Migrations
{
/// <inheritdoc />
public partial class ReputationAddition : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PlayerSettings",
columns: table => new
{
Id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
accountId = table.Column<long>(type: "bigint", nullable: false),
Key = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Value = table.Column<string>(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<long>(type: "bigint", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
accountId = table.Column<long>(type: "bigint", nullable: false),
Noteriety = table.Column<int>(type: "int", nullable: false),
CheerGeneral = table.Column<int>(type: "int", nullable: false),
CheerHelpful = table.Column<int>(type: "int", nullable: false),
CheerGreatHost = table.Column<int>(type: "int", nullable: false),
CheerSportsman = table.Column<int>(type: "int", nullable: false),
CheerCreative = table.Column<int>(type: "int", nullable: false),
CheerCredit = table.Column<int>(type: "int", nullable: false),
SubscriberCount = table.Column<int>(type: "int", nullable: false),
SubscribedCount = table.Column<int>(type: "int", nullable: false),
SelectedCheer = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Reputations", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PlayerSettings");
migrationBuilder.DropTable(
name: "Reputations");
}
}
}
@@ -0,0 +1,247 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ir23.Data;
#nullable disable
namespace ir23.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260326234817_ReputationCheerfulAddition")]
partial class ReputationCheerfulAddition
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ir23.Data.PlatformData", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<DateTime>("lastLoginTime")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "lastLoginTime");
b.Property<int>("platform")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platform");
b.Property<string>("platformId")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "platformId");
b.HasKey("Id");
b.ToTable("PlatformDatas");
});
modelBuilder.Entity("ir23.Data.account", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<string>("bannerImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "bannerImage");
b.Property<DateTime>("createdAt")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "createdAt");
b.Property<bool>("developer")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "developer");
b.Property<string>("displayName")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "displayName");
b.Property<bool>("isJunior")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "isJunior");
b.Property<int>("platforms")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platforms");
b.Property<string>("profileImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "profileImage");
b.Property<string>("username")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "username");
b.HasKey("Id");
b.ToTable("Accounts");
});
modelBuilder.Entity("ir23.Data.avatar", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<string>("FaceFeatures")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "FaceFeatures");
b.Property<string>("HairColor")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "HairColor");
b.Property<string>("OutfitSelections")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "OutfitSelections");
b.Property<string>("SkinColour")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "SkinColor");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("Avatars");
});
modelBuilder.Entity("ir23.Data.playersetting", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<string>("Key")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "Key");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "Value");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("PlayerSettings");
});
modelBuilder.Entity("ir23.Data.refreshtable", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<long>("AccountId")
.HasColumnType("bigint");
b.Property<DateTime>("ExpiryTime")
.HasColumnType("datetime(6)");
b.Property<string>("RefreshToken")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("refreshtables");
});
modelBuilder.Entity("ir23.Data.reputation", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<int>("CheerCreative")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerCreative");
b.Property<int>("CheerCredit")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerCredit");
b.Property<int>("CheerGeneral")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerGeneral");
b.Property<int>("CheerGreatHost")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerGreatHost");
b.Property<int>("CheerHelpful")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerHelpful");
b.Property<int>("CheerSportsman")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerSportsman");
b.Property<bool>("IsCheerful")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "IsCheerful");
b.Property<int>("Noteriety")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "Noteriety");
b.Property<int>("SelectedCheer")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SelectedCheer");
b.Property<int>("SubscribedCount")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SubscribedCount");
b.Property<int>("SubscriberCount")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SubscriberCount");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("Reputations");
});
#pragma warning restore 612, 618
}
}
}
@@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ir23.Migrations
{
/// <inheritdoc />
public partial class ReputationCheerfulAddition : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsCheerful",
table: "Reputations",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsCheerful",
table: "Reputations");
}
}
}
+271
View File
@@ -0,0 +1,271 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ir23.Data;
#nullable disable
namespace ir23.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260327000558_ProgressionTable")]
partial class ProgressionTable
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ir23.Data.PlatformData", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<DateTime>("lastLoginTime")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "lastLoginTime");
b.Property<int>("platform")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platform");
b.Property<string>("platformId")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "platformId");
b.HasKey("Id");
b.ToTable("PlatformDatas");
});
modelBuilder.Entity("ir23.Data.account", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<string>("bannerImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "bannerImage");
b.Property<DateTime>("createdAt")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "createdAt");
b.Property<bool>("developer")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "developer");
b.Property<string>("displayName")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "displayName");
b.Property<bool>("isJunior")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "isJunior");
b.Property<int>("platforms")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platforms");
b.Property<string>("profileImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "profileImage");
b.Property<string>("username")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "username");
b.HasKey("Id");
b.ToTable("Accounts");
});
modelBuilder.Entity("ir23.Data.avatar", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<string>("FaceFeatures")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "FaceFeatures");
b.Property<string>("HairColor")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "HairColor");
b.Property<string>("OutfitSelections")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "OutfitSelections");
b.Property<string>("SkinColour")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "SkinColor");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("Avatars");
});
modelBuilder.Entity("ir23.Data.playersetting", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<string>("Key")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "Key");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "Value");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("PlayerSettings");
});
modelBuilder.Entity("ir23.Data.progression", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<int>("Level")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "Level");
b.Property<long>("PlayerId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "PlayerId");
b.Property<int>("XP")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "XP");
b.HasKey("Id");
b.ToTable("Progressions");
});
modelBuilder.Entity("ir23.Data.refreshtable", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<long>("AccountId")
.HasColumnType("bigint");
b.Property<DateTime>("ExpiryTime")
.HasColumnType("datetime(6)");
b.Property<string>("RefreshToken")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("refreshtables");
});
modelBuilder.Entity("ir23.Data.reputation", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<int>("CheerCreative")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerCreative");
b.Property<int>("CheerCredit")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerCredit");
b.Property<int>("CheerGeneral")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerGeneral");
b.Property<int>("CheerGreatHost")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerGreatHost");
b.Property<int>("CheerHelpful")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerHelpful");
b.Property<int>("CheerSportsman")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerSportsman");
b.Property<bool>("IsCheerful")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "IsCheerful");
b.Property<int>("Noteriety")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "Noteriety");
b.Property<int>("SelectedCheer")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SelectedCheer");
b.Property<int>("SubscribedCount")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SubscribedCount");
b.Property<int>("SubscriberCount")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SubscriberCount");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("Reputations");
});
#pragma warning restore 612, 618
}
}
}
@@ -0,0 +1,38 @@
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ir23.Migrations
{
/// <inheritdoc />
public partial class ProgressionTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Progressions",
columns: table => new
{
Id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
PlayerId = table.Column<long>(type: "bigint", nullable: false),
Level = table.Column<int>(type: "int", nullable: false),
XP = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Progressions", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Progressions");
}
}
}
+268
View File
@@ -0,0 +1,268 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using ir23.Data;
#nullable disable
namespace ir23.Migrations
{
[DbContext(typeof(AppDbContext))]
partial class AppDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.0")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ir23.Data.PlatformData", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<DateTime>("lastLoginTime")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "lastLoginTime");
b.Property<int>("platform")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platform");
b.Property<string>("platformId")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "platformId");
b.HasKey("Id");
b.ToTable("PlatformDatas");
});
modelBuilder.Entity("ir23.Data.account", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.Property<string>("bannerImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "bannerImage");
b.Property<DateTime>("createdAt")
.HasColumnType("datetime(6)")
.HasAnnotation("Relational:JsonPropertyName", "createdAt");
b.Property<bool>("developer")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "developer");
b.Property<string>("displayName")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "displayName");
b.Property<bool>("isJunior")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "isJunior");
b.Property<int>("platforms")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "platforms");
b.Property<string>("profileImage")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "profileImage");
b.Property<string>("username")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "username");
b.HasKey("Id");
b.ToTable("Accounts");
});
modelBuilder.Entity("ir23.Data.avatar", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<string>("FaceFeatures")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "FaceFeatures");
b.Property<string>("HairColor")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "HairColor");
b.Property<string>("OutfitSelections")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "OutfitSelections");
b.Property<string>("SkinColour")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "SkinColor");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("Avatars");
});
modelBuilder.Entity("ir23.Data.playersetting", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<string>("Key")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "Key");
b.Property<string>("Value")
.IsRequired()
.HasColumnType("longtext")
.HasAnnotation("Relational:JsonPropertyName", "Value");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("PlayerSettings");
});
modelBuilder.Entity("ir23.Data.progression", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<int>("Level")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "Level");
b.Property<long>("PlayerId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "PlayerId");
b.Property<int>("XP")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "XP");
b.HasKey("Id");
b.ToTable("Progressions");
});
modelBuilder.Entity("ir23.Data.refreshtable", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
b.Property<long>("AccountId")
.HasColumnType("bigint");
b.Property<DateTime>("ExpiryTime")
.HasColumnType("datetime(6)");
b.Property<string>("RefreshToken")
.IsRequired()
.HasColumnType("longtext");
b.HasKey("Id");
b.ToTable("refreshtables");
});
modelBuilder.Entity("ir23.Data.reputation", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "Id");
b.Property<int>("CheerCreative")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerCreative");
b.Property<int>("CheerCredit")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerCredit");
b.Property<int>("CheerGeneral")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerGeneral");
b.Property<int>("CheerGreatHost")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerGreatHost");
b.Property<int>("CheerHelpful")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerHelpful");
b.Property<int>("CheerSportsman")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "CheerSportsman");
b.Property<bool>("IsCheerful")
.HasColumnType("tinyint(1)")
.HasAnnotation("Relational:JsonPropertyName", "IsCheerful");
b.Property<int>("Noteriety")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "Noteriety");
b.Property<int>("SelectedCheer")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SelectedCheer");
b.Property<int>("SubscribedCount")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SubscribedCount");
b.Property<int>("SubscriberCount")
.HasColumnType("int")
.HasAnnotation("Relational:JsonPropertyName", "SubscriberCount");
b.Property<long>("accountId")
.HasColumnType("bigint")
.HasAnnotation("Relational:JsonPropertyName", "accountId");
b.HasKey("Id");
b.ToTable("Reputations");
});
#pragma warning restore 612, 618
}
}
}