forked from SoDOff-Project/sodoff
1317 lines
42 KiB
C#
1317 lines
42 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using sodoff.Model;
|
|
|
|
#nullable disable
|
|
|
|
namespace sodoff.Migrations
|
|
{
|
|
[DbContext(typeof(DBContext))]
|
|
partial class DBContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.20")
|
|
.HasAnnotation("Proxies:ChangeTracking", false)
|
|
.HasAnnotation("Proxies:CheckEquality", false)
|
|
.HasAnnotation("Proxies:LazyLoading", true);
|
|
|
|
modelBuilder.Entity("GroupViking", b =>
|
|
{
|
|
b.Property<int>("GroupsId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingsId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("GroupsId", "VikingsId");
|
|
|
|
b.HasIndex("VikingsId");
|
|
|
|
b.ToTable("GroupViking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.AchievementPoints", b =>
|
|
{
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Value")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("VikingId", "Type");
|
|
|
|
b.ToTable("AchievementPoints");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.AchievementTaskState", b =>
|
|
{
|
|
b.Property<int>("TaskId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Points")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("TaskId", "VikingId");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("AchievementTaskState");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Buddy", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("BuddyStatus1")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("BuddyStatus2")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("BuddyVikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsBestFriend1")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsBestFriend2")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("BuddyVikingId");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("Buddies");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Dragon", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("EntityId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("PetXP")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RaisedPetData")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("Dragons");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.GameData", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("DatePlayed")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Difficulty")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("GameId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("GameLevel")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsMultiplayer")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Loss")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Win")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("GameData");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.GameDataPair", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("GameDataId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Value")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("GameDataId");
|
|
|
|
b.ToTable("GameDataPairs");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Group", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ApiKey")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Color")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("GroupID")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Logo")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Groups");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Image", b =>
|
|
{
|
|
b.Property<string>("ImageType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ImageSlot")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ImageData")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TemplateName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("ImageType", "ImageSlot", "VikingId");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("Images");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.InventoryItem", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AttributesSerialized")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("ItemId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("StatsSerialized")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("InventoryItems");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.MMORole", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Role")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("MMORoles");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Message", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("ConversationID")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Data")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsNew")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsPrivate")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime?>("LastUpdatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("MemberMessage")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("MessageLevel")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("MessageType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("MessageTypeID")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("NonMemberMessage")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("ParentMessageId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("QueueID")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("ToVikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ParentMessageId");
|
|
|
|
b.HasIndex("ToVikingId");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("Messages");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.MissionState", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("MissionId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("MissionStatus")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool?>("UserAccepted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("MissionStates");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Neighborhood", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("Slot0")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("Slot1")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("Slot2")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("Slot3")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("Slot4")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("Neighborhoods");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Pair", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Key")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("MasterId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("MasterId");
|
|
|
|
b.ToTable("Pairs");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.PairData", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("DragonId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("PairId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid?>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("DragonId");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("PairData");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Party", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AssetBundle")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("ExpirationDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Location")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LocationIconAsset")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool?>("PrivateParty")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("Parties");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.ProfileAnswer", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("AnswerID")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("QuestionID")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("ProfileAnswers");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Rating", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("RankId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Value")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RankId");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("Ratings");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.RatingRank", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("CategoryID")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("Rank")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("RatedEntityID")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RatedUserID")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<float>("RatingAverage")
|
|
.HasColumnType("REAL");
|
|
|
|
b.Property<DateTime>("UpdateDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("RatingRanks");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Room", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoomId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("Rooms");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.RoomItem", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("RoomId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("RoomItemData")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoomId");
|
|
|
|
b.ToTable("RoomItems");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.SavedData", b =>
|
|
{
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<uint>("SaveId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("SerializedData")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("VikingId", "SaveId");
|
|
|
|
b.ToTable("SavedData");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.SceneData", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("SceneName")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("XmlData")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("SceneData");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Session", b =>
|
|
{
|
|
b.Property<Guid>("ApiToken")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid?>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("ApiToken");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("Sessions");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.TaskStatus", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("MissionId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("Completed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Payload")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id", "VikingId", "MissionId");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("TaskStatuses");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.User", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.UserBadgeCompleteData", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("BadgeId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("UserBadgesCompleted");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.UserBan", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("ExpiresOn")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("UserBanType")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("VikingId");
|
|
|
|
b.ToTable("Bans");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.UserMissionData", b =>
|
|
{
|
|
b.Property<int>("VikingId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("WorldId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("MissionId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("IsCompleted")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("StepId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int>("TaskId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.HasKey("VikingId", "WorldId", "MissionId");
|
|
|
|
b.ToTable("UserMissionData");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Viking", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("AvatarSerialized")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("BirthDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime?>("CreationDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<uint?>("GameVersion")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<int?>("Gender")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("SelectedDragonId")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("Uid")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SelectedDragonId")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("Uid");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("Vikings");
|
|
});
|
|
|
|
modelBuilder.Entity("GroupViking", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Group", null)
|
|
.WithMany()
|
|
.HasForeignKey("GroupsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("sodoff.Model.Viking", null)
|
|
.WithMany()
|
|
.HasForeignKey("VikingsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.AchievementPoints", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("AchievementPoints")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.AchievementTaskState", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("AchievementTaskStates")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Buddy", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "BuddyViking")
|
|
.WithMany("BuddyList")
|
|
.HasForeignKey("BuddyVikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("BuddiesMade")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("BuddyViking");
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Dragon", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("Dragons")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.GameData", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("GameData")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.GameDataPair", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.GameData", "GameData")
|
|
.WithMany("GameDataPairs")
|
|
.HasForeignKey("GameDataId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("GameData");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Image", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("Images")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.InventoryItem", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("InventoryItems")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.MMORole", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("MMORoles")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Message", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Message", "ParentMessage")
|
|
.WithMany("Replies")
|
|
.HasForeignKey("ParentMessageId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("sodoff.Model.Viking", "ToViking")
|
|
.WithMany("MessageBoard")
|
|
.HasForeignKey("ToVikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("MessagesMade")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("ParentMessage");
|
|
|
|
b.Navigation("ToViking");
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.MissionState", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("MissionStates")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Neighborhood", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithOne("Neighborhood")
|
|
.HasForeignKey("sodoff.Model.Neighborhood", "VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Pair", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.PairData", "PairData")
|
|
.WithMany("Pairs")
|
|
.HasForeignKey("MasterId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("PairData");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.PairData", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Dragon", "Dragon")
|
|
.WithMany("PairData")
|
|
.HasForeignKey("DragonId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("sodoff.Model.User", "User")
|
|
.WithMany("PairData")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("PairData")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.Navigation("Dragon");
|
|
|
|
b.Navigation("User");
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Party", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("Parties")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.ProfileAnswer", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("ProfileAnswers")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Rating", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.RatingRank", "Rank")
|
|
.WithMany("Ratings")
|
|
.HasForeignKey("RankId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("Ratings")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Rank");
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Room", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("Rooms")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.RoomItem", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Room", "Room")
|
|
.WithMany("Items")
|
|
.HasForeignKey("RoomId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Room");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.SavedData", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("SavedData")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.SceneData", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("SceneData")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Session", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.User", "User")
|
|
.WithMany("Sessions")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("Sessions")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
|
|
b.Navigation("User");
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.TaskStatus", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("TaskStatuses")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.UserBadgeCompleteData", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("UserBadgesCompleted")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.UserBan", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("UserBans")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.UserMissionData", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Viking", "Viking")
|
|
.WithMany("UserMissions")
|
|
.HasForeignKey("VikingId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Viking");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Viking", b =>
|
|
{
|
|
b.HasOne("sodoff.Model.Dragon", "SelectedDragon")
|
|
.WithOne()
|
|
.HasForeignKey("sodoff.Model.Viking", "SelectedDragonId");
|
|
|
|
b.HasOne("sodoff.Model.User", "User")
|
|
.WithMany("Vikings")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("SelectedDragon");
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Dragon", b =>
|
|
{
|
|
b.Navigation("PairData");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.GameData", b =>
|
|
{
|
|
b.Navigation("GameDataPairs");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Message", b =>
|
|
{
|
|
b.Navigation("Replies");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.PairData", b =>
|
|
{
|
|
b.Navigation("Pairs");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.RatingRank", b =>
|
|
{
|
|
b.Navigation("Ratings");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Room", b =>
|
|
{
|
|
b.Navigation("Items");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.User", b =>
|
|
{
|
|
b.Navigation("PairData");
|
|
|
|
b.Navigation("Sessions");
|
|
|
|
b.Navigation("Vikings");
|
|
});
|
|
|
|
modelBuilder.Entity("sodoff.Model.Viking", b =>
|
|
{
|
|
b.Navigation("AchievementPoints");
|
|
|
|
b.Navigation("AchievementTaskStates");
|
|
|
|
b.Navigation("BuddiesMade");
|
|
|
|
b.Navigation("BuddyList");
|
|
|
|
b.Navigation("Dragons");
|
|
|
|
b.Navigation("GameData");
|
|
|
|
b.Navigation("Images");
|
|
|
|
b.Navigation("InventoryItems");
|
|
|
|
b.Navigation("MMORoles");
|
|
|
|
b.Navigation("MessageBoard");
|
|
|
|
b.Navigation("MessagesMade");
|
|
|
|
b.Navigation("MissionStates");
|
|
|
|
b.Navigation("Neighborhood");
|
|
|
|
b.Navigation("PairData");
|
|
|
|
b.Navigation("Parties");
|
|
|
|
b.Navigation("ProfileAnswers");
|
|
|
|
b.Navigation("Ratings");
|
|
|
|
b.Navigation("Rooms");
|
|
|
|
b.Navigation("SavedData");
|
|
|
|
b.Navigation("SceneData");
|
|
|
|
b.Navigation("Sessions");
|
|
|
|
b.Navigation("TaskStatuses");
|
|
|
|
b.Navigation("UserBadgesCompleted");
|
|
|
|
b.Navigation("UserBans");
|
|
|
|
b.Navigation("UserMissions");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|