//
using System;
using Kehyeedra3;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Kehyeedra3.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(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("Prestige")
.HasColumnType("int");
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.User+BattleFishObject", b =>
{
b.Property("FishId")
.ValueGeneratedOnAdd()
.HasColumnType("bigint unsigned");
b.Property("FishType")
.HasColumnType("tinyint unsigned");
b.Property("Lvl")
.HasColumnType("int");
b.Property("Name")
.HasColumnType("longtext CHARACTER SET utf8mb4");
b.Property("NextXp")
.HasColumnType("bigint unsigned");
b.Property("UserId")
.HasColumnType("bigint unsigned");
b.Property("Xp")
.HasColumnType("bigint unsigned");
b.HasKey("FishId");
b.HasIndex("UserId");
b.ToTable("BattleFishObject");
});
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");
});
modelBuilder.Entity("Kehyeedra3.Services.Models.User+BattleFishObject", b =>
{
b.HasOne("Kehyeedra3.Services.Models.User", null)
.WithMany("BattleFish")
.HasForeignKey("UserId");
});
#pragma warning restore 612, 618
}
}
}