//
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
}
}
}