From 9f32d58b011360d96ae9a79aa53bcf9982327d5f Mon Sep 17 00:00:00 2001 From: Lan <50151341+Lannnnnnnnn@users.noreply.github.com> Date: Mon, 4 May 2020 21:18:09 +0300 Subject: [PATCH] added prestige along with other stuff such as fucking up migrations oh god what have I done god please no --- Kehyeedra3/Commands/Economy.cs | 141 +++++++++++-- .../20200209182548_AddUserEconomy.Designer.cs | 46 ---- .../20200209182548_AddUserEconomy.cs | 33 --- ...20200216185543_updatereminders.Designer.cs | 69 ------ .../20200216185543_updatereminders.cs | 33 --- .../20200220195125_Fishing.Designer.cs | 122 ----------- .../Migrations/20200220195125_Fishing.cs | 43 ---- .../20200222174350_feesh.Designer.cs | 95 --------- Kehyeedra3/Migrations/20200222174350_feesh.cs | 132 ------------ .../20200222195851_UpdateFishing.Designer.cs | 95 --------- .../20200222195851_UpdateFishing.cs | 17 -- .../20200222200755_FixFishing.Designer.cs | 95 --------- .../Migrations/20200222200755_FixFishing.cs | 17 -- ...46_FixFishing2ElectricBoogaloo.Designer.cs | 95 --------- ...00222201346_FixFishing2ElectricBoogaloo.cs | 17 -- .../20200223155743_morefishstuff.Designer.cs | 95 --------- .../20200223155743_morefishstuff.cs | 31 --- .../20200330063400_store.Designer.cs | 145 ------------- Kehyeedra3/Migrations/20200330063400_store.cs | 61 ------ .../20200408192800_RodUpdate.Designer.cs | 195 ----------------- .../Migrations/20200408192800_RodUpdate.cs | 68 ------ .../20200428191620_Bootlefish.Designer.cs | 198 ------------------ .../Migrations/20200428191620_Bootlefish.cs | 23 -- .../Migrations/20200502180209_Beatlefish.cs | 46 ---- ...20200504150903_basedmigration.Designer.cs} | 7 +- .../20200504150903_basedmigration.cs | 189 +++++++++++++++++ .../ApplicationDbContextModelSnapshot.cs | 3 + Kehyeedra3/Services/Models/Fishing.cs | 1 + 28 files changed, 316 insertions(+), 1796 deletions(-) delete mode 100644 Kehyeedra3/Migrations/20200209182548_AddUserEconomy.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200209182548_AddUserEconomy.cs delete mode 100644 Kehyeedra3/Migrations/20200216185543_updatereminders.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200216185543_updatereminders.cs delete mode 100644 Kehyeedra3/Migrations/20200220195125_Fishing.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200220195125_Fishing.cs delete mode 100644 Kehyeedra3/Migrations/20200222174350_feesh.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200222174350_feesh.cs delete mode 100644 Kehyeedra3/Migrations/20200222195851_UpdateFishing.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200222195851_UpdateFishing.cs delete mode 100644 Kehyeedra3/Migrations/20200222200755_FixFishing.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200222200755_FixFishing.cs delete mode 100644 Kehyeedra3/Migrations/20200222201346_FixFishing2ElectricBoogaloo.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200222201346_FixFishing2ElectricBoogaloo.cs delete mode 100644 Kehyeedra3/Migrations/20200223155743_morefishstuff.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200223155743_morefishstuff.cs delete mode 100644 Kehyeedra3/Migrations/20200330063400_store.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200330063400_store.cs delete mode 100644 Kehyeedra3/Migrations/20200408192800_RodUpdate.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200408192800_RodUpdate.cs delete mode 100644 Kehyeedra3/Migrations/20200428191620_Bootlefish.Designer.cs delete mode 100644 Kehyeedra3/Migrations/20200428191620_Bootlefish.cs delete mode 100644 Kehyeedra3/Migrations/20200502180209_Beatlefish.cs rename Kehyeedra3/Migrations/{20200502180209_Beatlefish.Designer.cs => 20200504150903_basedmigration.Designer.cs} (97%) create mode 100644 Kehyeedra3/Migrations/20200504150903_basedmigration.cs diff --git a/Kehyeedra3/Commands/Economy.cs b/Kehyeedra3/Commands/Economy.cs index 537bfec..ed8b9cf 100644 --- a/Kehyeedra3/Commands/Economy.cs +++ b/Kehyeedra3/Commands/Economy.cs @@ -200,6 +200,7 @@ namespace Kehyeedra3.Commands ulong xp; ulong level; ulong lvlXp; + int prestige; int rod; Dictionary inv = new Dictionary(); List fishes = Fishing.GetFishList(); @@ -226,6 +227,7 @@ namespace Kehyeedra3.Commands totalXp = user.TXp; lvlXp = user.Xp; rod = user.RodUsed; + prestige = user.Prestige; await Database.SaveChangesAsync(); } @@ -235,24 +237,26 @@ namespace Kehyeedra3.Commands if (lastfish < time) { int rari = (SRandom.Next(0, 2001)); - int weight = SRandom.Next(Convert.ToInt32(level * 5), 1501); + int weigh = SRandom.Next(10, 1501+prestige*500); + int tierRoll = SRandom.Next(0, 101+prestige*100); ulong rarity; + int weight; - if (level < 100) + if (level < 100 && prestige == 0) { rarity = level * 10 + (ulong)rari; + weight = (int)level * 5 + weigh; } else { rarity = 1000 + (ulong)rari; + weight = 500 + weigh; } Fish fish; if (rarity == 777 || (rarity > 2060 && rarity <= 2070) || rarity == 2777) { - int tierRoll = SRandom.Next(0, 101); - if (rod >= 3 && tierRoll > 60) { List possibleFishes = fishes.Where(f => (int)f.Rarity == (int)FishRarity.T4Legendary).ToList(); @@ -284,8 +288,7 @@ namespace Kehyeedra3.Commands } else if (rarity > 1700) { - int tierRoll = SRandom.Next(0, 101); - rarity = Convert.ToUInt64(SRandom.Next(1750, 2801)); + rarity = Convert.ToUInt64(SRandom.Next(1700, 2801)); if (rod >= 3 && tierRoll > 60) { List possibleFishes = fishes.Where(f => (int)f.Rarity == (int)FishRarity.T4Uncommon).ToList(); @@ -341,7 +344,6 @@ namespace Kehyeedra3.Commands } else { - int tierRoll = SRandom.Next(0, 101); if (rod >= 3 && tierRoll > 60) { List possibleFishes = fishes.Where(f => (int)f.Rarity == (int)FishRarity.T4Common).ToList(); @@ -354,7 +356,7 @@ namespace Kehyeedra3.Commands fish = possibleFishes[SRandom.Next(possibleFishes.Count)]; xp = 8; } - else if (rod >= 1 && tierRoll >= 20) + else if (rod >= 1 && tierRoll > 20) { List possibleFishes = fishes.Where(f => (int)f.Rarity == (int)FishRarity.T2Common).ToList(); fish = possibleFishes[SRandom.Next(possibleFishes.Count)]; @@ -377,18 +379,25 @@ namespace Kehyeedra3.Commands if (weight >= (1000 - Convert.ToInt32(level * 2))) { - weight = SRandom.Next(100, 2001) + Convert.ToInt32(level * 5); + weight = SRandom.Next(100, 2001) + Convert.ToInt32(level * 5 + (Convert.ToUInt64(prestige * 500))); } if (weight >= 1000) { - size = FishSize.Medium; - if (fish.Rarity == FishRarity.Legendary || fish.Rarity == FishRarity.T2Legendary || fish.Rarity == FishRarity.T3Legendary || fish.Rarity == FishRarity.T4Legendary) { - weight = SRandom.Next(2000 + Convert.ToInt32(level * 20), 40001); + weight = SRandom.Next(2000 + Convert.ToInt32(level * 20), 40001+prestige*10000); } + if (weight >= 1500) + { + size = FishSize.Large; + } + else + { + size = FishSize.Medium; + } + double w = Convert.ToDouble(weight); xp = Convert.ToUInt64(Math.Round((xp * w / 1000), 0, MidpointRounding.ToEven)); @@ -405,11 +414,6 @@ namespace Kehyeedra3.Commands size = FishSize.Small; } - if (weight >= 1500) - { - size = FishSize.Large; - } - string lvlUp = ""; using (var Database = new ApplicationDbContextFactory().CreateDbContext()) @@ -503,12 +507,12 @@ namespace Kehyeedra3.Commands } else { - await Context.Channel.SendMessageAsync($"{Context.User.Mention} Your line snaps. Your disappointment is immeasurable, and your day is ruined."); + await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nYour line snaps. Your disappointment is immeasurable, and your day is ruined."); } } else { - await Context.Channel.SendMessageAsync($"{Context.User.Mention} arrrrr-right, ye scurby bastard, I know yer eager t' scour the seven seas but ye needs t' wait till the next minute t' pillage the booty'o'the depths, savvy?"); + await Context.Channel.SendMessageAsync($"{Context.User.Mention}\narrrrr-right, ye scurby bastard, I know yer eager t' scour the seven seas but ye needs t' wait till the next minute t' pillage the booty'o'the depths, savvy?"); } } @@ -1023,6 +1027,10 @@ namespace Kehyeedra3.Commands var user = Database.Users.FirstOrDefault(x => x.Id == users[i].Id); string xp = $"{users[i].TXp}"; string level = $"{users[i].Lvl}"; + if (users[i].Prestige > 0) + { + level += $" + {users[i].Prestige}P"; + } leaderboardMessage += $"\n**#{placing} : {user.Username}** Lvl : **{level}**\n*{xp}xp*"; } await Context.Channel.SendMessageAsync(leaderboardMessage); @@ -1155,23 +1163,110 @@ namespace Kehyeedra3.Commands } } } - if (otherUser == null) { var user = database.Fishing.FirstOrDefault(x => x.Id == Context.User.Id); var muser = database.Users.FirstOrDefault(x => x.Id == Context.User.Id); - await Context.Channel.SendMessageAsync($"{Context.User.Mention}'s stats\nFishing level: **{user.Lvl}**\nMax catch weight: **{(user.Lvl * 5 + 2000d) / 100}kg**\nMin catch weight: **{(user.Lvl*5d + 10d)/100}kg**\n" + + string pres = ""; + double cawe = 0; + if (user.Prestige > 0) + { + pres = $" +{user.Prestige}P"; + cawe = 500; + } + else + { + cawe = user.Lvl * 5d + 10d; + } + await Context.Channel.SendMessageAsync($"{Context.User.Mention}'s stats\nFishing level: **{user.Lvl}{pres}**\nMax catch weight: **{(user.Lvl * 5 + 2000d + user.Prestige*500d) / 100}kg**\nMin catch weight: **{cawe /100}kg**\n" + $"Fishing xp: **{user.TXp}**\nTotal fish: **{scount + mcount + lcount}** *(Large: {lcount} Medium: {mcount} Small: {scount})*\nBalance: **{muser.Money / 10000d}%**"); } else { var user = database.Fishing.FirstOrDefault(x => x.Id == otherUser.Id); var muser = database.Users.FirstOrDefault(x => x.Id == otherUser.Id); - await Context.Channel.SendMessageAsync($"{otherUser.Mention}'s stats\nFishing level: **{user.Lvl}**\nMax catch weight: **{(user.Lvl * 5 + 2000d) / 100}kg**\nMin catch weight: **{(user.Lvl * 5d + 10d) / 100}kg**\n" + + string pres = ""; + double cawe = 0; + if (user.Prestige > 0) + { + pres = $" +{user.Prestige}P"; + cawe = 510; + } + else + { + cawe = user.Lvl * 5d + 10d; + } + await Context.Channel.SendMessageAsync($"{otherUser.Mention}'s stats\nFishing level: **{user.Lvl}{pres}**+P{user.Prestige}\nMax catch weight: **{(user.Lvl * 5 + 2000d + user.Prestige*500d) / 100}kg**\nMin catch weight: **{cawe / 100}kg**\n" + $"Fishing xp: **{user.TXp}**\nTotal fish: **{scount + mcount + lcount}** *(Large: {lcount} Medium: {mcount} Small: {scount}*)\nBalance: **{muser.Money / 10000d}%**"); } - + } + } + [Command("prestige",RunMode = RunMode.Async),Summary("Sacrifice a load of XP for benefits and growth potential.")] + public async Task PrestigeCommand() + { + using (var Database = new ApplicationDbContextFactory().CreateDbContext()) + { + var user = Database.Fishing.FirstOrDefault(x => x.Id == Context.User.Id); + if (user == null) + { + await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nYour first prestige is available at **Lvl 100** in **130503xp**."); + return; + } + else + { + ulong presXp = 50; + if (user.Prestige > 0 || user.TXp >= 130503) + { + for (ulong i = 1; i < 100 + (ulong)user.Prestige*5; i++) + { + if (i <= 100 + (ulong)user.Prestige*5) + { + presXp += Convert.ToUInt64(Math.Round((presXp * 0.05d + 50d), 0, MidpointRounding.ToEven)); + } + }; + if (user.TXp >= presXp) + { + await Context.Channel.SendMessageAsync($"{Context.User.Mention}\n**Tier {user.Prestige+1}** is available! Type **confirm** to buy it for **{presXp}xp**."); + var message = await NextMessageAsync(); + if (message.Content.ToLowerInvariant() == "confirm") + { + user.Prestige++; + user.TXp -= presXp; + user.Xp = 0; + user.Lvl = 0; + ulong lvlXp = 0; + while (user.TXp >= user.Xp) + { + user.Lvl += 1; + lvlXp = 50; + for (ulong i = 0; i < user.Lvl; i++) + { + if (i <= user.Lvl) + { + lvlXp += Convert.ToUInt64(Math.Round((lvlXp * 0.05d + 50d), 0, MidpointRounding.ToEven)); + } + } + user.Xp = lvlXp; + } + await Database.SaveChangesAsync(); + await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nYou've successfully upgraded to **P{user.Prestige}**.\nReadjusting level."); + } + else + { + await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nCome back when you change your mind."); + } + } + else + { + await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nYour next prestige is available at **Lvl {100+user.Prestige*5}** in **{presXp - user.TXp}xp**."); + } + } + else + { + await Context.Channel.SendMessageAsync($"{Context.User.Mention}\nYour first prestige is available at **Lvl 100** in **{130503-user.TXp}xp**."); + } + } } } [Command("xptolevel"),Alias("tolv", "xpto"),Summary("Displays how much xp you need to reach the given level.")] diff --git a/Kehyeedra3/Migrations/20200209182548_AddUserEconomy.Designer.cs b/Kehyeedra3/Migrations/20200209182548_AddUserEconomy.Designer.cs deleted file mode 100644 index 320ab34..0000000 --- a/Kehyeedra3/Migrations/20200209182548_AddUserEconomy.Designer.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200209182548_AddUserEconomy")] - partial class AddUserEconomy - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Money") - .HasColumnType("bigint unsigned"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200209182548_AddUserEconomy.cs b/Kehyeedra3/Migrations/20200209182548_AddUserEconomy.cs deleted file mode 100644 index b994b48..0000000 --- a/Kehyeedra3/Migrations/20200209182548_AddUserEconomy.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class AddUserEconomy : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Users", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - Avatar = table.Column(nullable: true), - Username = table.Column(nullable: true), - Money = table.Column(nullable: false), - LastMine = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Users", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Users"); - } - } -} diff --git a/Kehyeedra3/Migrations/20200216185543_updatereminders.Designer.cs b/Kehyeedra3/Migrations/20200216185543_updatereminders.Designer.cs deleted file mode 100644 index ebf58d4..0000000 --- a/Kehyeedra3/Migrations/20200216185543_updatereminders.Designer.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200216185543_updatereminders")] - partial class updatereminders - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200216185543_updatereminders.cs b/Kehyeedra3/Migrations/20200216185543_updatereminders.cs deleted file mode 100644 index 8f44cd1..0000000 --- a/Kehyeedra3/Migrations/20200216185543_updatereminders.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class updatereminders : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Reminders", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - Created = table.Column(nullable: false), - Send = table.Column(nullable: false), - UserId = table.Column(nullable: false), - Message = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Reminders", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Reminders"); - } - } -} diff --git a/Kehyeedra3/Migrations/20200220195125_Fishing.Designer.cs b/Kehyeedra3/Migrations/20200220195125_Fishing.Designer.cs deleted file mode 100644 index 5d1892d..0000000 --- a/Kehyeedra3/Migrations/20200220195125_Fishing.Designer.cs +++ /dev/null @@ -1,122 +0,0 @@ -// -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200220195125_Fishing")] - partial class Fishing - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Fishing", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("CFish1") - .HasColumnType("bigint unsigned"); - - b.Property("CFish2") - .HasColumnType("bigint unsigned"); - - b.Property("CFish3") - .HasColumnType("bigint unsigned"); - - b.Property("LFish") - .HasColumnType("bigint unsigned"); - - b.Property("LastFish") - .HasColumnType("bigint unsigned"); - - b.Property("Lvl") - .HasColumnType("bigint unsigned"); - - b.Property("RFish1") - .HasColumnType("bigint unsigned"); - - b.Property("RFish2") - .HasColumnType("bigint unsigned"); - - b.Property("RFish3") - .HasColumnType("bigint unsigned"); - - b.Property("TXp") - .HasColumnType("bigint unsigned"); - - b.Property("UFish1") - .HasColumnType("bigint unsigned"); - - b.Property("UFish2") - .HasColumnType("bigint unsigned"); - - b.Property("UFish3") - .HasColumnType("bigint unsigned"); - - b.Property("Xp") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Fishing"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200220195125_Fishing.cs b/Kehyeedra3/Migrations/20200220195125_Fishing.cs deleted file mode 100644 index 91d1889..0000000 --- a/Kehyeedra3/Migrations/20200220195125_Fishing.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class Fishing : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Fishing", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - LastFish = table.Column(nullable: false), - Xp = table.Column(nullable: false), - TXp = table.Column(nullable: false), - Lvl = table.Column(nullable: false), - CFish1 = table.Column(nullable: false), - CFish2 = table.Column(nullable: false), - CFish3 = table.Column(nullable: false), - UFish1 = table.Column(nullable: false), - UFish2 = table.Column(nullable: false), - UFish3 = table.Column(nullable: false), - RFish1 = table.Column(nullable: false), - RFish2 = table.Column(nullable: false), - RFish3 = table.Column(nullable: false), - LFish = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Fishing", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Fishing"); - } - } -} diff --git a/Kehyeedra3/Migrations/20200222174350_feesh.Designer.cs b/Kehyeedra3/Migrations/20200222174350_feesh.Designer.cs deleted file mode 100644 index f44abee..0000000 --- a/Kehyeedra3/Migrations/20200222174350_feesh.Designer.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200222174350_feesh")] - partial class feesh - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Fishing", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Inventory") - .HasColumnType("json"); - - b.Property("LastFish") - .HasColumnType("bigint unsigned"); - - b.Property("Lvl") - .HasColumnType("bigint unsigned"); - - b.Property("TXp") - .HasColumnType("bigint unsigned"); - - b.Property("Xp") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Fishing"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200222174350_feesh.cs b/Kehyeedra3/Migrations/20200222174350_feesh.cs deleted file mode 100644 index 171e365..0000000 --- a/Kehyeedra3/Migrations/20200222174350_feesh.cs +++ /dev/null @@ -1,132 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class feesh : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "CFish1", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "CFish2", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "CFish3", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "LFish", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "RFish1", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "RFish2", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "RFish3", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "UFish1", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "UFish2", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "UFish3", - table: "Fishing"); - - migrationBuilder.AddColumn( - name: "Inventory", - table: "Fishing", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Inventory", - table: "Fishing"); - - migrationBuilder.AddColumn( - name: "CFish1", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - - migrationBuilder.AddColumn( - name: "CFish2", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - - migrationBuilder.AddColumn( - name: "CFish3", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - - migrationBuilder.AddColumn( - name: "LFish", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - - migrationBuilder.AddColumn( - name: "RFish1", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - - migrationBuilder.AddColumn( - name: "RFish2", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - - migrationBuilder.AddColumn( - name: "RFish3", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - - migrationBuilder.AddColumn( - name: "UFish1", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - - migrationBuilder.AddColumn( - name: "UFish2", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - - migrationBuilder.AddColumn( - name: "UFish3", - table: "Fishing", - type: "bigint unsigned", - nullable: false, - defaultValue: 0ul); - } - } -} diff --git a/Kehyeedra3/Migrations/20200222195851_UpdateFishing.Designer.cs b/Kehyeedra3/Migrations/20200222195851_UpdateFishing.Designer.cs deleted file mode 100644 index 90dd894..0000000 --- a/Kehyeedra3/Migrations/20200222195851_UpdateFishing.Designer.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200222195851_UpdateFishing")] - partial class UpdateFishing - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Fishing", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Inventory") - .HasColumnType("json"); - - b.Property("LastFish") - .HasColumnType("bigint unsigned"); - - b.Property("Lvl") - .HasColumnType("bigint unsigned"); - - b.Property("TXp") - .HasColumnType("bigint unsigned"); - - b.Property("Xp") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Fishing"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200222195851_UpdateFishing.cs b/Kehyeedra3/Migrations/20200222195851_UpdateFishing.cs deleted file mode 100644 index 6d0190d..0000000 --- a/Kehyeedra3/Migrations/20200222195851_UpdateFishing.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class UpdateFishing : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/Kehyeedra3/Migrations/20200222200755_FixFishing.Designer.cs b/Kehyeedra3/Migrations/20200222200755_FixFishing.Designer.cs deleted file mode 100644 index 5f23ab2..0000000 --- a/Kehyeedra3/Migrations/20200222200755_FixFishing.Designer.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200222200755_FixFishing")] - partial class FixFishing - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Fishing", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Inventory") - .HasColumnType("json"); - - b.Property("LastFish") - .HasColumnType("bigint unsigned"); - - b.Property("Lvl") - .HasColumnType("bigint unsigned"); - - b.Property("TXp") - .HasColumnType("bigint unsigned"); - - b.Property("Xp") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Fishing"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200222200755_FixFishing.cs b/Kehyeedra3/Migrations/20200222200755_FixFishing.cs deleted file mode 100644 index fad1fd3..0000000 --- a/Kehyeedra3/Migrations/20200222200755_FixFishing.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class FixFishing : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/Kehyeedra3/Migrations/20200222201346_FixFishing2ElectricBoogaloo.Designer.cs b/Kehyeedra3/Migrations/20200222201346_FixFishing2ElectricBoogaloo.Designer.cs deleted file mode 100644 index beab51f..0000000 --- a/Kehyeedra3/Migrations/20200222201346_FixFishing2ElectricBoogaloo.Designer.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200222201346_FixFishing2ElectricBoogaloo")] - partial class FixFishing2ElectricBoogaloo - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Fishing", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Inventory") - .HasColumnType("json"); - - b.Property("LastFish") - .HasColumnType("bigint unsigned"); - - b.Property("Lvl") - .HasColumnType("bigint unsigned"); - - b.Property("TXp") - .HasColumnType("bigint unsigned"); - - b.Property("Xp") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Fishing"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200222201346_FixFishing2ElectricBoogaloo.cs b/Kehyeedra3/Migrations/20200222201346_FixFishing2ElectricBoogaloo.cs deleted file mode 100644 index 406c1b0..0000000 --- a/Kehyeedra3/Migrations/20200222201346_FixFishing2ElectricBoogaloo.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class FixFishing2ElectricBoogaloo : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/Kehyeedra3/Migrations/20200223155743_morefishstuff.Designer.cs b/Kehyeedra3/Migrations/20200223155743_morefishstuff.Designer.cs deleted file mode 100644 index 0f8b093..0000000 --- a/Kehyeedra3/Migrations/20200223155743_morefishstuff.Designer.cs +++ /dev/null @@ -1,95 +0,0 @@ -// -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200223155743_morefishstuff")] - partial class morefishstuff - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Fishing", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Inventory") - .HasColumnType("LONGTEXT"); - - b.Property("LastFish") - .HasColumnType("bigint unsigned"); - - b.Property("Lvl") - .HasColumnType("bigint unsigned"); - - b.Property("TXp") - .HasColumnType("bigint unsigned"); - - b.Property("Xp") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Fishing"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200223155743_morefishstuff.cs b/Kehyeedra3/Migrations/20200223155743_morefishstuff.cs deleted file mode 100644 index f179328..0000000 --- a/Kehyeedra3/Migrations/20200223155743_morefishstuff.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class morefishstuff : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Inventory", - table: "Fishing", - type: "LONGTEXT", - nullable: true, - oldClrType: typeof(string), - oldType: "json", - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Inventory", - table: "Fishing", - type: "json", - nullable: true, - oldClrType: typeof(string), - oldType: "LONGTEXT", - oldNullable: true); - } - } -} diff --git a/Kehyeedra3/Migrations/20200330063400_store.Designer.cs b/Kehyeedra3/Migrations/20200330063400_store.Designer.cs deleted file mode 100644 index 0ae4b25..0000000 --- a/Kehyeedra3/Migrations/20200330063400_store.Designer.cs +++ /dev/null @@ -1,145 +0,0 @@ -// -using System; -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200330063400_store")] - partial class store - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Fishing", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Inventory") - .HasColumnType("LONGTEXT"); - - b.Property("LastFish") - .HasColumnType("bigint unsigned"); - - b.Property("Lvl") - .HasColumnType("bigint unsigned"); - - b.Property("TXp") - .HasColumnType("bigint unsigned"); - - b.Property("Xp") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Fishing"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.StoreFront", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("StoreItemType") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("StoreFronts"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.StoreInventory", b => - { - b.Property("InvId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Amount") - .HasColumnType("int"); - - b.Property("Item") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Price") - .HasColumnType("int"); - - b.Property("StoreFrontId") - .HasColumnType("bigint unsigned"); - - b.HasKey("InvId"); - - b.HasIndex("StoreFrontId"); - - b.ToTable("StoreInventory"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.StoreInventory", b => - { - b.HasOne("Kehyeedra3.Services.Models.StoreFront", null) - .WithMany("Items") - .HasForeignKey("StoreFrontId"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200330063400_store.cs b/Kehyeedra3/Migrations/20200330063400_store.cs deleted file mode 100644 index fe175e4..0000000 --- a/Kehyeedra3/Migrations/20200330063400_store.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class store : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "StoreFronts", - columns: table => new - { - Id = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - UserId = table.Column(nullable: false), - StoreItemType = table.Column(nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_StoreFronts", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "StoreInventory", - columns: table => new - { - InvId = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - Item = table.Column(nullable: true), - Amount = table.Column(nullable: false), - Price = table.Column(nullable: false), - StoreFrontId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_StoreInventory", x => x.InvId); - table.ForeignKey( - name: "FK_StoreInventory_StoreFronts_StoreFrontId", - column: x => x.StoreFrontId, - principalTable: "StoreFronts", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_StoreInventory_StoreFrontId", - table: "StoreInventory", - column: "StoreFrontId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "StoreInventory"); - - migrationBuilder.DropTable( - name: "StoreFronts"); - } - } -} diff --git a/Kehyeedra3/Migrations/20200408192800_RodUpdate.Designer.cs b/Kehyeedra3/Migrations/20200408192800_RodUpdate.Designer.cs deleted file mode 100644 index 20e64e9..0000000 --- a/Kehyeedra3/Migrations/20200408192800_RodUpdate.Designer.cs +++ /dev/null @@ -1,195 +0,0 @@ -// -using System; -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200408192800_RodUpdate")] - partial class RodUpdate - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.2") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Fishing", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Inventory") - .HasColumnType("LONGTEXT"); - - b.Property("LastFish") - .HasColumnType("bigint unsigned"); - - b.Property("Lvl") - .HasColumnType("bigint unsigned"); - - b.Property("RodOwned") - .HasColumnType("tinyint unsigned"); - - b.Property("RodUsed") - .HasColumnType("tinyint unsigned"); - - b.Property("TXp") - .HasColumnType("bigint unsigned"); - - b.Property("Xp") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Fishing"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.ItemOffer", b => - { - b.Property("OfferId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Amount") - .HasColumnType("int"); - - b.Property("BuyerId") - .HasColumnType("bigint unsigned"); - - b.Property("IsPurchaseFromStore") - .HasColumnType("tinyint(1)"); - - b.Property("IsSellOffer") - .HasColumnType("tinyint(1)"); - - b.Property("ItemId") - .HasColumnType("bigint unsigned"); - - b.Property("OfferAmount") - .HasColumnType("int"); - - b.Property("StoreFrontId") - .HasColumnType("bigint unsigned"); - - b.Property("StoreId") - .HasColumnType("bigint unsigned"); - - b.HasKey("OfferId"); - - b.HasIndex("StoreFrontId"); - - b.ToTable("ItemOffer"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.StoreFront", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("StoreItemType") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("StoreFronts"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.StoreInventory", b => - { - b.Property("InvId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Amount") - .HasColumnType("int"); - - b.Property("Item") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Price") - .HasColumnType("int"); - - b.Property("StoreFrontId") - .HasColumnType("bigint unsigned"); - - b.HasKey("InvId"); - - b.HasIndex("StoreFrontId"); - - b.ToTable("StoreInventory"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.ItemOffer", b => - { - b.HasOne("Kehyeedra3.Services.Models.StoreFront", null) - .WithMany("Offers") - .HasForeignKey("StoreFrontId"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.StoreInventory", b => - { - b.HasOne("Kehyeedra3.Services.Models.StoreFront", null) - .WithMany("Items") - .HasForeignKey("StoreFrontId"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200408192800_RodUpdate.cs b/Kehyeedra3/Migrations/20200408192800_RodUpdate.cs deleted file mode 100644 index 431085f..0000000 --- a/Kehyeedra3/Migrations/20200408192800_RodUpdate.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class RodUpdate : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "RodOwned", - table: "Fishing", - nullable: false, - defaultValue: (byte)0); - - migrationBuilder.AddColumn( - name: "RodUsed", - table: "Fishing", - nullable: false, - defaultValue: (byte)0); - - migrationBuilder.CreateTable( - name: "ItemOffer", - columns: table => new - { - OfferId = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - BuyerId = table.Column(nullable: false), - StoreId = table.Column(nullable: false), - ItemId = table.Column(nullable: false), - Amount = table.Column(nullable: false), - OfferAmount = table.Column(nullable: false), - IsPurchaseFromStore = table.Column(nullable: false), - IsSellOffer = table.Column(nullable: false), - StoreFrontId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ItemOffer", x => x.OfferId); - table.ForeignKey( - name: "FK_ItemOffer_StoreFronts_StoreFrontId", - column: x => x.StoreFrontId, - principalTable: "StoreFronts", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_ItemOffer_StoreFrontId", - table: "ItemOffer", - column: "StoreFrontId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "ItemOffer"); - - migrationBuilder.DropColumn( - name: "RodOwned", - table: "Fishing"); - - migrationBuilder.DropColumn( - name: "RodUsed", - table: "Fishing"); - } - } -} diff --git a/Kehyeedra3/Migrations/20200428191620_Bootlefish.Designer.cs b/Kehyeedra3/Migrations/20200428191620_Bootlefish.Designer.cs deleted file mode 100644 index 45c5ff2..0000000 --- a/Kehyeedra3/Migrations/20200428191620_Bootlefish.Designer.cs +++ /dev/null @@ -1,198 +0,0 @@ -// -using System; -using Kehyeedra3; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; - -namespace Kehyeedra3.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200428191620_Bootlefish")] - partial class Bootlefish - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.2") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Fishing", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Inventory") - .HasColumnType("LONGTEXT"); - - b.Property("LastFish") - .HasColumnType("bigint unsigned"); - - b.Property("Lvl") - .HasColumnType("bigint unsigned"); - - b.Property("RodOwned") - .HasColumnType("tinyint unsigned"); - - b.Property("RodUsed") - .HasColumnType("tinyint unsigned"); - - b.Property("TXp") - .HasColumnType("bigint unsigned"); - - b.Property("Xp") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Fishing"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.ItemOffer", b => - { - b.Property("OfferId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Amount") - .HasColumnType("int"); - - b.Property("BuyerId") - .HasColumnType("bigint unsigned"); - - b.Property("IsPurchaseFromStore") - .HasColumnType("tinyint(1)"); - - b.Property("IsSellOffer") - .HasColumnType("tinyint(1)"); - - b.Property("ItemId") - .HasColumnType("bigint unsigned"); - - b.Property("OfferAmount") - .HasColumnType("int"); - - b.Property("StoreFrontId") - .HasColumnType("bigint unsigned"); - - b.Property("StoreId") - .HasColumnType("bigint unsigned"); - - b.HasKey("OfferId"); - - b.HasIndex("StoreFrontId"); - - b.ToTable("ItemOffer"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.Reminder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Created") - .HasColumnType("bigint unsigned"); - - b.Property("Message") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Send") - .HasColumnType("bigint unsigned"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("Reminders"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.StoreFront", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("StoreItemType") - .HasColumnType("int"); - - b.Property("UserId") - .HasColumnType("bigint unsigned"); - - b.HasKey("Id"); - - b.ToTable("StoreFronts"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.StoreInventory", b => - { - b.Property("InvId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Amount") - .HasColumnType("int"); - - b.Property("Item") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("Price") - .HasColumnType("int"); - - b.Property("StoreFrontId") - .HasColumnType("bigint unsigned"); - - b.HasKey("InvId"); - - b.HasIndex("StoreFrontId"); - - b.ToTable("StoreInventory"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint unsigned"); - - b.Property("Avatar") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("GeneralInventory") - .HasColumnType("LONGTEXT"); - - b.Property("LastMine") - .HasColumnType("bigint unsigned"); - - b.Property("Money") - .HasColumnType("bigint"); - - b.Property("Username") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.HasKey("Id"); - - b.ToTable("Users"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.ItemOffer", b => - { - b.HasOne("Kehyeedra3.Services.Models.StoreFront", null) - .WithMany("Offers") - .HasForeignKey("StoreFrontId"); - }); - - modelBuilder.Entity("Kehyeedra3.Services.Models.StoreInventory", b => - { - b.HasOne("Kehyeedra3.Services.Models.StoreFront", null) - .WithMany("Items") - .HasForeignKey("StoreFrontId"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/Kehyeedra3/Migrations/20200428191620_Bootlefish.cs b/Kehyeedra3/Migrations/20200428191620_Bootlefish.cs deleted file mode 100644 index 16392d4..0000000 --- a/Kehyeedra3/Migrations/20200428191620_Bootlefish.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class Bootlefish : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "GeneralInventory", - table: "Users", - type: "LONGTEXT", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "GeneralInventory", - table: "Users"); - } - } -} diff --git a/Kehyeedra3/Migrations/20200502180209_Beatlefish.cs b/Kehyeedra3/Migrations/20200502180209_Beatlefish.cs deleted file mode 100644 index bb58c1f..0000000 --- a/Kehyeedra3/Migrations/20200502180209_Beatlefish.cs +++ /dev/null @@ -1,46 +0,0 @@ -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Kehyeedra3.Migrations -{ - public partial class Beatlefish : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "BattleFishObject", - columns: table => new - { - FishId = table.Column(nullable: false) - .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), - FishType = table.Column(nullable: false), - Xp = table.Column(nullable: false), - NextXp = table.Column(nullable: false), - Lvl = table.Column(nullable: false), - Name = table.Column(nullable: true), - UserId = table.Column(nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_BattleFishObject", x => x.FishId); - table.ForeignKey( - name: "FK_BattleFishObject_Users_UserId", - column: x => x.UserId, - principalTable: "Users", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_BattleFishObject_UserId", - table: "BattleFishObject", - column: "UserId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "BattleFishObject"); - } - } -} diff --git a/Kehyeedra3/Migrations/20200502180209_Beatlefish.Designer.cs b/Kehyeedra3/Migrations/20200504150903_basedmigration.Designer.cs similarity index 97% rename from Kehyeedra3/Migrations/20200502180209_Beatlefish.Designer.cs rename to Kehyeedra3/Migrations/20200504150903_basedmigration.Designer.cs index 972ad6f..f9ca59a 100644 --- a/Kehyeedra3/Migrations/20200502180209_Beatlefish.Designer.cs +++ b/Kehyeedra3/Migrations/20200504150903_basedmigration.Designer.cs @@ -9,8 +9,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Kehyeedra3.Migrations { [DbContext(typeof(ApplicationDbContext))] - [Migration("20200502180209_Beatlefish")] - partial class Beatlefish + [Migration("20200504150903_basedmigration")] + partial class basedmigration { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -34,6 +34,9 @@ namespace Kehyeedra3.Migrations b.Property("Lvl") .HasColumnType("bigint unsigned"); + b.Property("Prestige") + .HasColumnType("int"); + b.Property("RodOwned") .HasColumnType("tinyint unsigned"); diff --git a/Kehyeedra3/Migrations/20200504150903_basedmigration.cs b/Kehyeedra3/Migrations/20200504150903_basedmigration.cs new file mode 100644 index 0000000..c65d843 --- /dev/null +++ b/Kehyeedra3/Migrations/20200504150903_basedmigration.cs @@ -0,0 +1,189 @@ +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Kehyeedra3.Migrations +{ + public partial class basedmigration : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Fishing", + columns: table => new + { + Id = table.Column(nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + LastFish = table.Column(nullable: false), + Xp = table.Column(nullable: false), + TXp = table.Column(nullable: false), + Lvl = table.Column(nullable: false), + RodOwned = table.Column(nullable: false), + RodUsed = table.Column(nullable: false), + Prestige = table.Column(nullable: false), + Inventory = table.Column(type: "LONGTEXT", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Fishing", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Reminders", + columns: table => new + { + Id = table.Column(nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + Created = table.Column(nullable: false), + Send = table.Column(nullable: false), + UserId = table.Column(nullable: false), + Message = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Reminders", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "StoreFronts", + columns: table => new + { + Id = table.Column(nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + UserId = table.Column(nullable: false), + StoreItemType = table.Column(nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_StoreFronts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Users", + columns: table => new + { + Id = table.Column(nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + Avatar = table.Column(nullable: true), + Username = table.Column(nullable: true), + Money = table.Column(nullable: false), + LastMine = table.Column(nullable: false), + GeneralInventory = table.Column(type: "LONGTEXT", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Users", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "ItemOffer", + columns: table => new + { + OfferId = table.Column(nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + BuyerId = table.Column(nullable: false), + StoreId = table.Column(nullable: false), + ItemId = table.Column(nullable: false), + Amount = table.Column(nullable: false), + OfferAmount = table.Column(nullable: false), + IsPurchaseFromStore = table.Column(nullable: false), + IsSellOffer = table.Column(nullable: false), + StoreFrontId = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_ItemOffer", x => x.OfferId); + table.ForeignKey( + name: "FK_ItemOffer_StoreFronts_StoreFrontId", + column: x => x.StoreFrontId, + principalTable: "StoreFronts", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "StoreInventory", + columns: table => new + { + InvId = table.Column(nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + Item = table.Column(nullable: true), + Amount = table.Column(nullable: false), + Price = table.Column(nullable: false), + StoreFrontId = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_StoreInventory", x => x.InvId); + table.ForeignKey( + name: "FK_StoreInventory_StoreFronts_StoreFrontId", + column: x => x.StoreFrontId, + principalTable: "StoreFronts", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateTable( + name: "BattleFishObject", + columns: table => new + { + FishId = table.Column(nullable: false) + .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), + FishType = table.Column(nullable: false), + Xp = table.Column(nullable: false), + NextXp = table.Column(nullable: false), + Lvl = table.Column(nullable: false), + Name = table.Column(nullable: true), + UserId = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_BattleFishObject", x => x.FishId); + table.ForeignKey( + name: "FK_BattleFishObject_Users_UserId", + column: x => x.UserId, + principalTable: "Users", + principalColumn: "Id", + onDelete: ReferentialAction.Restrict); + }); + + migrationBuilder.CreateIndex( + name: "IX_BattleFishObject_UserId", + table: "BattleFishObject", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_ItemOffer_StoreFrontId", + table: "ItemOffer", + column: "StoreFrontId"); + + migrationBuilder.CreateIndex( + name: "IX_StoreInventory_StoreFrontId", + table: "StoreInventory", + column: "StoreFrontId"); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "BattleFishObject"); + + migrationBuilder.DropTable( + name: "Fishing"); + + migrationBuilder.DropTable( + name: "ItemOffer"); + + migrationBuilder.DropTable( + name: "Reminders"); + + migrationBuilder.DropTable( + name: "StoreInventory"); + + migrationBuilder.DropTable( + name: "Users"); + + migrationBuilder.DropTable( + name: "StoreFronts"); + } + } +} diff --git a/Kehyeedra3/Migrations/ApplicationDbContextModelSnapshot.cs b/Kehyeedra3/Migrations/ApplicationDbContextModelSnapshot.cs index 7ba8ef1..fb639bb 100644 --- a/Kehyeedra3/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/Kehyeedra3/Migrations/ApplicationDbContextModelSnapshot.cs @@ -32,6 +32,9 @@ namespace Kehyeedra3.Migrations b.Property("Lvl") .HasColumnType("bigint unsigned"); + b.Property("Prestige") + .HasColumnType("int"); + b.Property("RodOwned") .HasColumnType("tinyint unsigned"); diff --git a/Kehyeedra3/Services/Models/Fishing.cs b/Kehyeedra3/Services/Models/Fishing.cs index c65e8ff..a3f64cc 100644 --- a/Kehyeedra3/Services/Models/Fishing.cs +++ b/Kehyeedra3/Services/Models/Fishing.cs @@ -35,6 +35,7 @@ namespace Kehyeedra3.Services.Models public ulong Lvl { get; set; } = 0; public byte RodOwned { get; set; } = 0; public byte RodUsed { get; set; } = 0; + public int Prestige { get; set; } = 0; [Column(TypeName="LONGTEXT")] public string Inventory { get; set; } = "{}";