diff --git a/backend/Levels/Migrations/20231019005639_InitialCreate.Designer.cs b/backend/Levels/Migrations/20231019012350_InitialCreate.Designer.cs similarity index 97% rename from backend/Levels/Migrations/20231019005639_InitialCreate.Designer.cs rename to backend/Levels/Migrations/20231019012350_InitialCreate.Designer.cs index e02c84570..045e0f65d 100644 --- a/backend/Levels/Migrations/20231019005639_InitialCreate.Designer.cs +++ b/backend/Levels/Migrations/20231019012350_InitialCreate.Designer.cs @@ -10,7 +10,7 @@ namespace Levels.Migrations { [DbContext(typeof(LevelsDatabase))] - [Migration("20231019005639_InitialCreate")] + [Migration("20231019012350_InitialCreate")] partial class InitialCreate { /// @@ -101,9 +101,6 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Property("TextXp") .HasColumnType("bigint"); - b.Property("Token") - .HasColumnType("longtext"); - b.Property("VoiceXp") .HasColumnType("bigint"); diff --git a/backend/Levels/Migrations/20231019005639_InitialCreate.cs b/backend/Levels/Migrations/20231019012350_InitialCreate.cs similarity index 97% rename from backend/Levels/Migrations/20231019005639_InitialCreate.cs rename to backend/Levels/Migrations/20231019012350_InitialCreate.cs index fd34b8ee6..643e7e089 100644 --- a/backend/Levels/Migrations/20231019005639_InitialCreate.cs +++ b/backend/Levels/Migrations/20231019012350_InitialCreate.cs @@ -62,8 +62,6 @@ protected override void Up(MigrationBuilder migrationBuilder) { UserId = table.Column(type: "bigint unsigned", nullable: false), GuildId = table.Column(type: "bigint unsigned", nullable: false), - Token = table.Column(type: "longtext", nullable: true) - .Annotation("MySql:CharSet", "utf8mb4"), TextXp = table.Column(type: "bigint", nullable: false), VoiceXp = table.Column(type: "bigint", nullable: false) }, diff --git a/backend/Levels/Migrations/LevelsDatabaseModelSnapshot.cs b/backend/Levels/Migrations/LevelsDatabaseModelSnapshot.cs index 0d1753a7d..05027740f 100644 --- a/backend/Levels/Migrations/LevelsDatabaseModelSnapshot.cs +++ b/backend/Levels/Migrations/LevelsDatabaseModelSnapshot.cs @@ -98,9 +98,6 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("TextXp") .HasColumnType("bigint"); - b.Property("Token") - .HasColumnType("longtext"); - b.Property("VoiceXp") .HasColumnType("bigint"); diff --git a/backend/Levels/Models/CalculatedGuildUserLevel.cs b/backend/Levels/Models/CalculatedGuildUserLevel.cs index 4d81cb2b5..0c435c0fb 100644 --- a/backend/Levels/Models/CalculatedGuildUserLevel.cs +++ b/backend/Levels/Models/CalculatedGuildUserLevel.cs @@ -11,7 +11,6 @@ public class CalculatedGuildUserLevel : GuildUserLevel public CalculatedGuildUserLevel(GuildUserLevel guildUserLevel, GuildLevelConfig config = null) { - Token = guildUserLevel.Token; UserId = guildUserLevel.UserId; GuildId = guildUserLevel.GuildId; TextXp = guildUserLevel.TextXp; diff --git a/backend/Levels/Models/GuildUserLevel.cs b/backend/Levels/Models/GuildUserLevel.cs index f905a31c5..9fcc10c92 100644 --- a/backend/Levels/Models/GuildUserLevel.cs +++ b/backend/Levels/Models/GuildUserLevel.cs @@ -6,14 +6,13 @@ namespace Levels.Models; [PrimaryKey(nameof(GuildId), nameof(UserId))] public class GuildUserLevel { - public string Token { get; set; } public ulong UserId { get; set; } public ulong GuildId { get; set; } public long TextXp { get; set; } public long VoiceXp { get; set; } public long TotalXp => TextXp + VoiceXp; - protected GuildUserLevel() => Token = ""; + protected GuildUserLevel() { } public GuildUserLevel(IGuildUser guildUser, long textXp = 0, long voiceXp = 0) {