Add Migrations to Repo
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,5 +2,5 @@
|
|||||||
bin
|
bin
|
||||||
Debug
|
Debug
|
||||||
/WatchLog/Data/WatchLog.db
|
/WatchLog/Data/WatchLog.db
|
||||||
Migrations
|
#Migrations
|
||||||
obj
|
obj
|
||||||
|
|||||||
982
CouchLog/Migrations/20251024223003_InitialCreate.Designer.cs
generated
Normal file
982
CouchLog/Migrations/20251024223003_InitialCreate.Designer.cs
generated
Normal file
@@ -0,0 +1,982 @@
|
|||||||
|
// <auto-generated />
|
||||||
|
using System;
|
||||||
|
using CouchLog.Data;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace CouchLog.Migrations
|
||||||
|
{
|
||||||
|
[DbContext(typeof(ApplicationDbContext))]
|
||||||
|
[Migration("20251024223003_InitialCreate")]
|
||||||
|
partial class InitialCreate
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
#pragma warning disable 612, 618
|
||||||
|
modelBuilder.HasAnnotation("ProductVersion", "9.0.9");
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.ApplicationUser", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("AccessFailedCount")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ConcurrencyStamp")
|
||||||
|
.IsConcurrencyToken()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Email")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("EmailConfirmed")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("LockoutEnabled")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedEmail")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedUserName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PasswordHash")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PhoneNumber")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("PhoneNumberConfirmed")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("SecurityStamp")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("TwoFactorEnabled")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedEmail")
|
||||||
|
.HasDatabaseName("EmailIndex");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedUserName")
|
||||||
|
.IsUnique()
|
||||||
|
.HasDatabaseName("UserNameIndex");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUsers", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Genre", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Genres");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("CreatorId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PicturePath")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Title")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("TypeId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CreatorId");
|
||||||
|
|
||||||
|
b.HasIndex("TypeId");
|
||||||
|
|
||||||
|
b.ToTable("GlobalEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("CreatorId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CreatorId");
|
||||||
|
|
||||||
|
b.ToTable("Labels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableGlobalGenre", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnOrder(0);
|
||||||
|
|
||||||
|
b.Property<int>("GenreId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnOrder(1);
|
||||||
|
|
||||||
|
b.HasKey("GlobalEntityId", "GenreId");
|
||||||
|
|
||||||
|
b.HasIndex("GenreId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableGlobalGenre");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("PrivateEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("LabelId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("PrivateEntityId", "LabelId");
|
||||||
|
|
||||||
|
b.HasIndex("LabelId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTablePrivateLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateStreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("PrivateEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("StreamingPlatformId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("SharedListEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("PrivateEntityId", "StreamingPlatformId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("StreamingPlatformId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTablePrivateStreamingPlatform");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("SharedListLabelId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("SharedListLabelId", "SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListEntityId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableSharedLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedUser", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("SharedListId", "UserId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableSharedUser");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.MediaType", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("MediaType");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Episode")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("Favorite")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Rating")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("Season")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("UserWatchStatusId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("GlobalEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.HasIndex("UserWatchStatusId");
|
||||||
|
|
||||||
|
b.ToTable("PrivateEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedList", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(150)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("SharedLists");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Episode")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("Favorite")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Season")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("SharedWatchStatusId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("GlobalEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedWatchStatusId");
|
||||||
|
|
||||||
|
b.ToTable("SharedListEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.ToTable("SharedListLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ColorCode")
|
||||||
|
.HasMaxLength(7)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(255)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.ToTable("SharedWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.StreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PicturePath")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("StreamingPlatforms");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.UserWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ColorCode")
|
||||||
|
.HasMaxLength(7)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(255)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("UserWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ConcurrencyStamp")
|
||||||
|
.IsConcurrencyToken()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedName")
|
||||||
|
.IsUnique()
|
||||||
|
.HasDatabaseName("RoleNameIndex");
|
||||||
|
|
||||||
|
b.ToTable("AspNetRoles", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimType")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimValue")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("RoleId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("RoleId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetRoleClaims", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimType")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimValue")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserClaims", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("LoginProvider")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ProviderKey")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ProviderDisplayName")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("LoginProvider", "ProviderKey");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserLogins", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("RoleId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("UserId", "RoleId");
|
||||||
|
|
||||||
|
b.HasIndex("RoleId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserRoles", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("LoginProvider")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Value")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("UserId", "LoginProvider", "Name");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserTokens", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("CreatedGlobalEntities")
|
||||||
|
.HasForeignKey("CreatorId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.MediaType", "MediaType")
|
||||||
|
.WithMany("GlobalEntities")
|
||||||
|
.HasForeignKey("TypeId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("MediaType");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("CreatedLabels")
|
||||||
|
.HasForeignKey("CreatorId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableGlobalGenre", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.Genre", "Genre")
|
||||||
|
.WithMany("LinkTableGlobalGenres")
|
||||||
|
.HasForeignKey("GenreId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("LinkTableGlobalGenres")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Genre");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.Label", "Label")
|
||||||
|
.WithMany("LinkTablePrivateLabels")
|
||||||
|
.HasForeignKey("LabelId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.PrivateEntity", "PrivateEntity")
|
||||||
|
.WithMany("PrivateEntityLabels")
|
||||||
|
.HasForeignKey("PrivateEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Label");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntity");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateStreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.PrivateEntity", "PrivateEntity")
|
||||||
|
.WithMany("PrivateStreamingPlatforms")
|
||||||
|
.HasForeignKey("PrivateEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedListEntity", null)
|
||||||
|
.WithMany("LinkTablePrivateStreamingPlatforms")
|
||||||
|
.HasForeignKey("SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.StreamingPlatform", "StreamingPlatform")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("StreamingPlatformId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntity");
|
||||||
|
|
||||||
|
b.Navigation("StreamingPlatform");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedListEntity", "SharedListEntity")
|
||||||
|
.WithMany("LinkTableSharedLabels")
|
||||||
|
.HasForeignKey("SharedListEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedListLabel", "SharedListLabel")
|
||||||
|
.WithMany("LinkTableSharedLabels")
|
||||||
|
.HasForeignKey("SharedListLabelId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedListEntity");
|
||||||
|
|
||||||
|
b.Navigation("SharedListLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedUser", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListUsers")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("LinkTableSharedUsers")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("PrivateEntities")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("PrivateEntities")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.UserWatchStatus", "UserWatchStatus")
|
||||||
|
.WithMany("PrivateEntities")
|
||||||
|
.HasForeignKey("UserWatchStatusId");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
|
||||||
|
b.Navigation("UserWatchStatus");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedWatchStatus", "SharedWatchStatus")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("SharedWatchStatusId");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
|
||||||
|
b.Navigation("SharedWatchStatus");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListLabels")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedWatchStatuses")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.UserWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("UserWatchStatuses")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("RoleId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("RoleId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.ApplicationUser", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("CreatedGlobalEntities");
|
||||||
|
|
||||||
|
b.Navigation("CreatedLabels");
|
||||||
|
|
||||||
|
b.Navigation("LinkTableSharedUsers");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntities");
|
||||||
|
|
||||||
|
b.Navigation("UserWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Genre", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableGlobalGenres");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableGlobalGenres");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntities");
|
||||||
|
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTablePrivateLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.MediaType", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("GlobalEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("PrivateEntityLabels");
|
||||||
|
|
||||||
|
b.Navigation("PrivateStreamingPlatforms");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedList", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
|
||||||
|
b.Navigation("SharedListLabels");
|
||||||
|
|
||||||
|
b.Navigation("SharedListUsers");
|
||||||
|
|
||||||
|
b.Navigation("SharedWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTablePrivateStreamingPlatforms");
|
||||||
|
|
||||||
|
b.Navigation("LinkTableSharedLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableSharedLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.UserWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("PrivateEntities");
|
||||||
|
});
|
||||||
|
#pragma warning restore 612, 618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
744
CouchLog/Migrations/20251024223003_InitialCreate.cs
Normal file
744
CouchLog/Migrations/20251024223003_InitialCreate.cs
Normal file
@@ -0,0 +1,744 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace CouchLog.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class InitialCreate : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "AspNetRoles",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
Name = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||||
|
NormalizedName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||||
|
ConcurrencyStamp = table.Column<string>(type: "TEXT", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_AspNetRoles", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "AspNetUsers",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
UserName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||||
|
NormalizedUserName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||||
|
Email = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||||
|
NormalizedEmail = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||||
|
EmailConfirmed = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||||
|
PasswordHash = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
|
SecurityStamp = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
|
ConcurrencyStamp = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
|
PhoneNumber = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
|
PhoneNumberConfirmed = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||||
|
TwoFactorEnabled = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||||
|
LockoutEnd = table.Column<DateTimeOffset>(type: "TEXT", nullable: true),
|
||||||
|
LockoutEnabled = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||||
|
AccessFailedCount = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_AspNetUsers", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Genres",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Name = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Genres", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "MediaType",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Name = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_MediaType", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "SharedLists",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Name = table.Column<string>(type: "TEXT", maxLength: 150, nullable: false),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_SharedLists", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "StreamingPlatforms",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Name = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
|
||||||
|
PicturePath = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_StreamingPlatforms", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "AspNetRoleClaims",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
RoleId = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
ClaimType = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
|
ClaimValue = table.Column<string>(type: "TEXT", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_AspNetRoleClaims", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_AspNetRoleClaims_AspNetRoles_RoleId",
|
||||||
|
column: x => x.RoleId,
|
||||||
|
principalTable: "AspNetRoles",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "AspNetUserClaims",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
UserId = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
ClaimType = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
|
ClaimValue = table.Column<string>(type: "TEXT", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_AspNetUserClaims", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_AspNetUserClaims_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "AspNetUserLogins",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
LoginProvider = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
ProviderKey = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
ProviderDisplayName = table.Column<string>(type: "TEXT", nullable: true),
|
||||||
|
UserId = table.Column<string>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_AspNetUserLogins", x => new { x.LoginProvider, x.ProviderKey });
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_AspNetUserLogins_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "AspNetUserRoles",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
UserId = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
RoleId = table.Column<string>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_AspNetUserRoles", x => new { x.UserId, x.RoleId });
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_AspNetUserRoles_AspNetRoles_RoleId",
|
||||||
|
column: x => x.RoleId,
|
||||||
|
principalTable: "AspNetRoles",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_AspNetUserRoles_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "AspNetUserTokens",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
UserId = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
LoginProvider = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
Name = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
Value = table.Column<string>(type: "TEXT", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_AspNetUserTokens", x => new { x.UserId, x.LoginProvider, x.Name });
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_AspNetUserTokens_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Labels",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Name = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true),
|
||||||
|
CreatorId = table.Column<string>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Labels", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Labels_AspNetUsers_CreatorId",
|
||||||
|
column: x => x.CreatorId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "UserWatchStatuses",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Name = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false),
|
||||||
|
Description = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true),
|
||||||
|
ColorCode = table.Column<string>(type: "TEXT", maxLength: 7, nullable: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true),
|
||||||
|
UserId = table.Column<string>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_UserWatchStatuses", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_UserWatchStatuses_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "GlobalEntities",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Title = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
|
||||||
|
PicturePath = table.Column<string>(type: "TEXT", maxLength: 500, nullable: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true),
|
||||||
|
TypeId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
CreatorId = table.Column<string>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_GlobalEntities", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_GlobalEntities_AspNetUsers_CreatorId",
|
||||||
|
column: x => x.CreatorId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_GlobalEntities_MediaType_TypeId",
|
||||||
|
column: x => x.TypeId,
|
||||||
|
principalTable: "MediaType",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "LinkTableSharedUser",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
SharedListId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
UserId = table.Column<string>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_LinkTableSharedUser", x => new { x.SharedListId, x.UserId });
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTableSharedUser_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTableSharedUser_SharedLists_SharedListId",
|
||||||
|
column: x => x.SharedListId,
|
||||||
|
principalTable: "SharedLists",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "SharedListLabels",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Name = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true),
|
||||||
|
SharedListId = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_SharedListLabels", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_SharedListLabels_SharedLists_SharedListId",
|
||||||
|
column: x => x.SharedListId,
|
||||||
|
principalTable: "SharedLists",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "SharedWatchStatuses",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Name = table.Column<string>(type: "TEXT", maxLength: 50, nullable: false),
|
||||||
|
Description = table.Column<string>(type: "TEXT", maxLength: 255, nullable: true),
|
||||||
|
ColorCode = table.Column<string>(type: "TEXT", maxLength: 7, nullable: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true),
|
||||||
|
SharedListId = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_SharedWatchStatuses", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_SharedWatchStatuses_SharedLists_SharedListId",
|
||||||
|
column: x => x.SharedListId,
|
||||||
|
principalTable: "SharedLists",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "LinkTableGlobalGenre",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
GlobalEntityId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
GenreId = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_LinkTableGlobalGenre", x => new { x.GlobalEntityId, x.GenreId });
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTableGlobalGenre_Genres_GenreId",
|
||||||
|
column: x => x.GenreId,
|
||||||
|
principalTable: "Genres",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTableGlobalGenre_GlobalEntities_GlobalEntityId",
|
||||||
|
column: x => x.GlobalEntityId,
|
||||||
|
principalTable: "GlobalEntities",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "PrivateEntities",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Favorite = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||||
|
Description = table.Column<string>(type: "TEXT", maxLength: 1000, nullable: true),
|
||||||
|
Season = table.Column<int>(type: "INTEGER", nullable: true),
|
||||||
|
Episode = table.Column<int>(type: "INTEGER", nullable: true),
|
||||||
|
Rating = table.Column<int>(type: "INTEGER", nullable: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true),
|
||||||
|
UserId = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
GlobalEntityId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
UserWatchStatusId = table.Column<int>(type: "INTEGER", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_PrivateEntities", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_PrivateEntities_AspNetUsers_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_PrivateEntities_GlobalEntities_GlobalEntityId",
|
||||||
|
column: x => x.GlobalEntityId,
|
||||||
|
principalTable: "GlobalEntities",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_PrivateEntities_UserWatchStatuses_UserWatchStatusId",
|
||||||
|
column: x => x.UserWatchStatusId,
|
||||||
|
principalTable: "UserWatchStatuses",
|
||||||
|
principalColumn: "Id");
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "SharedListEntities",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
.Annotation("Sqlite:Autoincrement", true),
|
||||||
|
Favorite = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||||
|
Description = table.Column<string>(type: "TEXT", maxLength: 1000, nullable: true),
|
||||||
|
Season = table.Column<int>(type: "INTEGER", nullable: true),
|
||||||
|
Episode = table.Column<int>(type: "INTEGER", nullable: true),
|
||||||
|
CreationTime = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
LastChange = table.Column<DateTime>(type: "TEXT", nullable: true),
|
||||||
|
SharedListId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
GlobalEntityId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
SharedWatchStatusId = table.Column<int>(type: "INTEGER", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_SharedListEntities", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_SharedListEntities_GlobalEntities_GlobalEntityId",
|
||||||
|
column: x => x.GlobalEntityId,
|
||||||
|
principalTable: "GlobalEntities",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_SharedListEntities_SharedLists_SharedListId",
|
||||||
|
column: x => x.SharedListId,
|
||||||
|
principalTable: "SharedLists",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_SharedListEntities_SharedWatchStatuses_SharedWatchStatusId",
|
||||||
|
column: x => x.SharedWatchStatusId,
|
||||||
|
principalTable: "SharedWatchStatuses",
|
||||||
|
principalColumn: "Id");
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "LinkTablePrivateLabel",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
PrivateEntityId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
LabelId = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_LinkTablePrivateLabel", x => new { x.PrivateEntityId, x.LabelId });
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTablePrivateLabel_Labels_LabelId",
|
||||||
|
column: x => x.LabelId,
|
||||||
|
principalTable: "Labels",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTablePrivateLabel_PrivateEntities_PrivateEntityId",
|
||||||
|
column: x => x.PrivateEntityId,
|
||||||
|
principalTable: "PrivateEntities",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "LinkTablePrivateStreamingPlatform",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
PrivateEntityId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
StreamingPlatformId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
SharedListEntityId = table.Column<int>(type: "INTEGER", nullable: true)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_LinkTablePrivateStreamingPlatform", x => new { x.PrivateEntityId, x.StreamingPlatformId });
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTablePrivateStreamingPlatform_PrivateEntities_PrivateEntityId",
|
||||||
|
column: x => x.PrivateEntityId,
|
||||||
|
principalTable: "PrivateEntities",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTablePrivateStreamingPlatform_SharedListEntities_SharedListEntityId",
|
||||||
|
column: x => x.SharedListEntityId,
|
||||||
|
principalTable: "SharedListEntities",
|
||||||
|
principalColumn: "Id");
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTablePrivateStreamingPlatform_StreamingPlatforms_StreamingPlatformId",
|
||||||
|
column: x => x.StreamingPlatformId,
|
||||||
|
principalTable: "StreamingPlatforms",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "LinkTableSharedLabel",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
SharedListLabelId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
SharedListEntityId = table.Column<int>(type: "INTEGER", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_LinkTableSharedLabel", x => new { x.SharedListLabelId, x.SharedListEntityId });
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTableSharedLabel_SharedListEntities_SharedListEntityId",
|
||||||
|
column: x => x.SharedListEntityId,
|
||||||
|
principalTable: "SharedListEntities",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_LinkTableSharedLabel_SharedListLabels_SharedListLabelId",
|
||||||
|
column: x => x.SharedListLabelId,
|
||||||
|
principalTable: "SharedListLabels",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_AspNetRoleClaims_RoleId",
|
||||||
|
table: "AspNetRoleClaims",
|
||||||
|
column: "RoleId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "RoleNameIndex",
|
||||||
|
table: "AspNetRoles",
|
||||||
|
column: "NormalizedName",
|
||||||
|
unique: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_AspNetUserClaims_UserId",
|
||||||
|
table: "AspNetUserClaims",
|
||||||
|
column: "UserId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_AspNetUserLogins_UserId",
|
||||||
|
table: "AspNetUserLogins",
|
||||||
|
column: "UserId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_AspNetUserRoles_RoleId",
|
||||||
|
table: "AspNetUserRoles",
|
||||||
|
column: "RoleId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "EmailIndex",
|
||||||
|
table: "AspNetUsers",
|
||||||
|
column: "NormalizedEmail");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "UserNameIndex",
|
||||||
|
table: "AspNetUsers",
|
||||||
|
column: "NormalizedUserName",
|
||||||
|
unique: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_GlobalEntities_CreatorId",
|
||||||
|
table: "GlobalEntities",
|
||||||
|
column: "CreatorId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_GlobalEntities_TypeId",
|
||||||
|
table: "GlobalEntities",
|
||||||
|
column: "TypeId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Labels_CreatorId",
|
||||||
|
table: "Labels",
|
||||||
|
column: "CreatorId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_LinkTableGlobalGenre_GenreId",
|
||||||
|
table: "LinkTableGlobalGenre",
|
||||||
|
column: "GenreId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_LinkTablePrivateLabel_LabelId",
|
||||||
|
table: "LinkTablePrivateLabel",
|
||||||
|
column: "LabelId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_LinkTablePrivateStreamingPlatform_SharedListEntityId",
|
||||||
|
table: "LinkTablePrivateStreamingPlatform",
|
||||||
|
column: "SharedListEntityId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_LinkTablePrivateStreamingPlatform_StreamingPlatformId",
|
||||||
|
table: "LinkTablePrivateStreamingPlatform",
|
||||||
|
column: "StreamingPlatformId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_LinkTableSharedLabel_SharedListEntityId",
|
||||||
|
table: "LinkTableSharedLabel",
|
||||||
|
column: "SharedListEntityId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_LinkTableSharedUser_UserId",
|
||||||
|
table: "LinkTableSharedUser",
|
||||||
|
column: "UserId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_PrivateEntities_GlobalEntityId",
|
||||||
|
table: "PrivateEntities",
|
||||||
|
column: "GlobalEntityId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_PrivateEntities_UserId",
|
||||||
|
table: "PrivateEntities",
|
||||||
|
column: "UserId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_PrivateEntities_UserWatchStatusId",
|
||||||
|
table: "PrivateEntities",
|
||||||
|
column: "UserWatchStatusId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_SharedListEntities_GlobalEntityId",
|
||||||
|
table: "SharedListEntities",
|
||||||
|
column: "GlobalEntityId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_SharedListEntities_SharedListId",
|
||||||
|
table: "SharedListEntities",
|
||||||
|
column: "SharedListId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_SharedListEntities_SharedWatchStatusId",
|
||||||
|
table: "SharedListEntities",
|
||||||
|
column: "SharedWatchStatusId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_SharedListLabels_SharedListId",
|
||||||
|
table: "SharedListLabels",
|
||||||
|
column: "SharedListId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_SharedWatchStatuses_SharedListId",
|
||||||
|
table: "SharedWatchStatuses",
|
||||||
|
column: "SharedListId");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_UserWatchStatuses_UserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
column: "UserId");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "AspNetRoleClaims");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "AspNetUserClaims");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "AspNetUserLogins");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "AspNetUserRoles");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "AspNetUserTokens");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "LinkTableGlobalGenre");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "LinkTablePrivateLabel");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "LinkTablePrivateStreamingPlatform");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "LinkTableSharedLabel");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "LinkTableSharedUser");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "AspNetRoles");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Genres");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Labels");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "PrivateEntities");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "StreamingPlatforms");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "SharedListEntities");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "SharedListLabels");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "UserWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "GlobalEntities");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "SharedWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "AspNetUsers");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "MediaType");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "SharedLists");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
972
CouchLog/Migrations/20251201221542_HardcodeUserWatchStatus.Designer.cs
generated
Normal file
972
CouchLog/Migrations/20251201221542_HardcodeUserWatchStatus.Designer.cs
generated
Normal file
@@ -0,0 +1,972 @@
|
|||||||
|
// <auto-generated />
|
||||||
|
using System;
|
||||||
|
using CouchLog.Data;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace CouchLog.Migrations
|
||||||
|
{
|
||||||
|
[DbContext(typeof(ApplicationDbContext))]
|
||||||
|
[Migration("20251201221542_HardcodeUserWatchStatus")]
|
||||||
|
partial class HardcodeUserWatchStatus
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
#pragma warning disable 612, 618
|
||||||
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.0");
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.ApplicationUser", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("AccessFailedCount")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ConcurrencyStamp")
|
||||||
|
.IsConcurrencyToken()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Email")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("EmailConfirmed")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("LockoutEnabled")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedEmail")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedUserName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PasswordHash")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PhoneNumber")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("PhoneNumberConfirmed")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("SecurityStamp")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("TwoFactorEnabled")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedEmail")
|
||||||
|
.HasDatabaseName("EmailIndex");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedUserName")
|
||||||
|
.IsUnique()
|
||||||
|
.HasDatabaseName("UserNameIndex");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUsers", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Genre", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Genres");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("CreatorId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PicturePath")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Title")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("TypeId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CreatorId");
|
||||||
|
|
||||||
|
b.HasIndex("TypeId");
|
||||||
|
|
||||||
|
b.ToTable("GlobalEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("CreatorId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CreatorId");
|
||||||
|
|
||||||
|
b.ToTable("Labels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableGlobalGenre", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnOrder(0);
|
||||||
|
|
||||||
|
b.Property<int>("GenreId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnOrder(1);
|
||||||
|
|
||||||
|
b.HasKey("GlobalEntityId", "GenreId");
|
||||||
|
|
||||||
|
b.HasIndex("GenreId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableGlobalGenre");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("PrivateEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("LabelId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("PrivateEntityId", "LabelId");
|
||||||
|
|
||||||
|
b.HasIndex("LabelId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTablePrivateLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateStreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("PrivateEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("StreamingPlatformId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("SharedListEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("PrivateEntityId", "StreamingPlatformId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("StreamingPlatformId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTablePrivateStreamingPlatform");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("SharedListLabelId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("SharedListLabelId", "SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListEntityId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableSharedLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedUser", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("SharedListId", "UserId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableSharedUser");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.MediaType", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("MediaType");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Episode")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("Favorite")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Rating")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("Season")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("UserWatchStatusId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("GlobalEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.HasIndex("UserWatchStatusId");
|
||||||
|
|
||||||
|
b.ToTable("PrivateEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedList", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(150)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("SharedLists");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Episode")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("Favorite")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Season")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("SharedWatchStatusId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("GlobalEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedWatchStatusId");
|
||||||
|
|
||||||
|
b.ToTable("SharedListEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.ToTable("SharedListLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ColorCode")
|
||||||
|
.HasMaxLength(7)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(255)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.ToTable("SharedWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.StreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PicturePath")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("StreamingPlatforms");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.UserWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ApplicationUserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ColorCode")
|
||||||
|
.HasMaxLength(7)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(255)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("ApplicationUserId");
|
||||||
|
|
||||||
|
b.ToTable("UserWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ConcurrencyStamp")
|
||||||
|
.IsConcurrencyToken()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedName")
|
||||||
|
.IsUnique()
|
||||||
|
.HasDatabaseName("RoleNameIndex");
|
||||||
|
|
||||||
|
b.ToTable("AspNetRoles", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimType")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimValue")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("RoleId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("RoleId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetRoleClaims", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimType")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimValue")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserClaims", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("LoginProvider")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ProviderKey")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ProviderDisplayName")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("LoginProvider", "ProviderKey");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserLogins", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("RoleId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("UserId", "RoleId");
|
||||||
|
|
||||||
|
b.HasIndex("RoleId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserRoles", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("LoginProvider")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Value")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("UserId", "LoginProvider", "Name");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserTokens", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("CreatedGlobalEntities")
|
||||||
|
.HasForeignKey("CreatorId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.MediaType", "MediaType")
|
||||||
|
.WithMany("GlobalEntities")
|
||||||
|
.HasForeignKey("TypeId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("MediaType");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("CreatedLabels")
|
||||||
|
.HasForeignKey("CreatorId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableGlobalGenre", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.Genre", "Genre")
|
||||||
|
.WithMany("LinkTableGlobalGenres")
|
||||||
|
.HasForeignKey("GenreId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("LinkTableGlobalGenres")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Genre");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.Label", "Label")
|
||||||
|
.WithMany("LinkTablePrivateLabels")
|
||||||
|
.HasForeignKey("LabelId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.PrivateEntity", "PrivateEntity")
|
||||||
|
.WithMany("PrivateEntityLabels")
|
||||||
|
.HasForeignKey("PrivateEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Label");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntity");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateStreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.PrivateEntity", "PrivateEntity")
|
||||||
|
.WithMany("PrivateStreamingPlatforms")
|
||||||
|
.HasForeignKey("PrivateEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedListEntity", null)
|
||||||
|
.WithMany("LinkTablePrivateStreamingPlatforms")
|
||||||
|
.HasForeignKey("SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.StreamingPlatform", "StreamingPlatform")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("StreamingPlatformId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntity");
|
||||||
|
|
||||||
|
b.Navigation("StreamingPlatform");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedListEntity", "SharedListEntity")
|
||||||
|
.WithMany("LinkTableSharedLabels")
|
||||||
|
.HasForeignKey("SharedListEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedListLabel", "SharedListLabel")
|
||||||
|
.WithMany("LinkTableSharedLabels")
|
||||||
|
.HasForeignKey("SharedListLabelId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedListEntity");
|
||||||
|
|
||||||
|
b.Navigation("SharedListLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedUser", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListUsers")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("LinkTableSharedUsers")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("PrivateEntities")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("PrivateEntities")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.UserWatchStatus", "UserWatchStatus")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserWatchStatusId");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
|
||||||
|
b.Navigation("UserWatchStatus");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedWatchStatus", "SharedWatchStatus")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("SharedWatchStatusId");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
|
||||||
|
b.Navigation("SharedWatchStatus");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListLabels")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedWatchStatuses")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.UserWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany("UserWatchStatuses")
|
||||||
|
.HasForeignKey("ApplicationUserId");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("RoleId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("RoleId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.ApplicationUser", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("CreatedGlobalEntities");
|
||||||
|
|
||||||
|
b.Navigation("CreatedLabels");
|
||||||
|
|
||||||
|
b.Navigation("LinkTableSharedUsers");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntities");
|
||||||
|
|
||||||
|
b.Navigation("UserWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Genre", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableGlobalGenres");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableGlobalGenres");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntities");
|
||||||
|
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTablePrivateLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.MediaType", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("GlobalEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("PrivateEntityLabels");
|
||||||
|
|
||||||
|
b.Navigation("PrivateStreamingPlatforms");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedList", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
|
||||||
|
b.Navigation("SharedListLabels");
|
||||||
|
|
||||||
|
b.Navigation("SharedListUsers");
|
||||||
|
|
||||||
|
b.Navigation("SharedWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTablePrivateStreamingPlatforms");
|
||||||
|
|
||||||
|
b.Navigation("LinkTableSharedLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableSharedLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
});
|
||||||
|
#pragma warning restore 612, 618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace CouchLog.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class HardcodeUserWatchStatus : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_UserWatchStatuses_AspNetUsers_UserId",
|
||||||
|
table: "UserWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_UserWatchStatuses_UserId",
|
||||||
|
table: "UserWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "UserId",
|
||||||
|
table: "UserWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
type: "TEXT",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_UserWatchStatuses_ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
column: "ApplicationUserId");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_UserWatchStatuses_AspNetUsers_ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
column: "ApplicationUserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_UserWatchStatuses_AspNetUsers_ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_UserWatchStatuses_ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "UserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
type: "TEXT",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: "");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_UserWatchStatuses_UserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
column: "UserId");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_UserWatchStatuses_AspNetUsers_UserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
column: "UserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
958
CouchLog/Migrations/20251201222218_RemoveUserFromStatus.Designer.cs
generated
Normal file
958
CouchLog/Migrations/20251201222218_RemoveUserFromStatus.Designer.cs
generated
Normal file
@@ -0,0 +1,958 @@
|
|||||||
|
// <auto-generated />
|
||||||
|
using System;
|
||||||
|
using CouchLog.Data;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace CouchLog.Migrations
|
||||||
|
{
|
||||||
|
[DbContext(typeof(ApplicationDbContext))]
|
||||||
|
[Migration("20251201222218_RemoveUserFromStatus")]
|
||||||
|
partial class RemoveUserFromStatus
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
#pragma warning disable 612, 618
|
||||||
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.0");
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.ApplicationUser", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("AccessFailedCount")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ConcurrencyStamp")
|
||||||
|
.IsConcurrencyToken()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Email")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("EmailConfirmed")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("LockoutEnabled")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedEmail")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedUserName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PasswordHash")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PhoneNumber")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("PhoneNumberConfirmed")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("SecurityStamp")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("TwoFactorEnabled")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedEmail")
|
||||||
|
.HasDatabaseName("EmailIndex");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedUserName")
|
||||||
|
.IsUnique()
|
||||||
|
.HasDatabaseName("UserNameIndex");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUsers", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Genre", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Genres");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("CreatorId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PicturePath")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Title")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("TypeId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CreatorId");
|
||||||
|
|
||||||
|
b.HasIndex("TypeId");
|
||||||
|
|
||||||
|
b.ToTable("GlobalEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("CreatorId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CreatorId");
|
||||||
|
|
||||||
|
b.ToTable("Labels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableGlobalGenre", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnOrder(0);
|
||||||
|
|
||||||
|
b.Property<int>("GenreId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnOrder(1);
|
||||||
|
|
||||||
|
b.HasKey("GlobalEntityId", "GenreId");
|
||||||
|
|
||||||
|
b.HasIndex("GenreId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableGlobalGenre");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("PrivateEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("LabelId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("PrivateEntityId", "LabelId");
|
||||||
|
|
||||||
|
b.HasIndex("LabelId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTablePrivateLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateStreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("PrivateEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("StreamingPlatformId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("SharedListEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("PrivateEntityId", "StreamingPlatformId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("StreamingPlatformId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTablePrivateStreamingPlatform");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("SharedListLabelId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("SharedListLabelId", "SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListEntityId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableSharedLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedUser", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("SharedListId", "UserId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableSharedUser");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.MediaType", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("MediaType");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Episode")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("Favorite")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Rating")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("Season")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("UserWatchStatusId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("GlobalEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.HasIndex("UserWatchStatusId");
|
||||||
|
|
||||||
|
b.ToTable("PrivateEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedList", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(150)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("SharedLists");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Episode")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("Favorite")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Season")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("SharedWatchStatusId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("GlobalEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedWatchStatusId");
|
||||||
|
|
||||||
|
b.ToTable("SharedListEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.ToTable("SharedListLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ColorCode")
|
||||||
|
.HasMaxLength(7)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(255)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.ToTable("SharedWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.StreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PicturePath")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("StreamingPlatforms");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.UserWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ColorCode")
|
||||||
|
.HasMaxLength(7)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(255)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("UserWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ConcurrencyStamp")
|
||||||
|
.IsConcurrencyToken()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedName")
|
||||||
|
.IsUnique()
|
||||||
|
.HasDatabaseName("RoleNameIndex");
|
||||||
|
|
||||||
|
b.ToTable("AspNetRoles", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimType")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimValue")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("RoleId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("RoleId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetRoleClaims", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimType")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimValue")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserClaims", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("LoginProvider")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ProviderKey")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ProviderDisplayName")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("LoginProvider", "ProviderKey");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserLogins", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("RoleId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("UserId", "RoleId");
|
||||||
|
|
||||||
|
b.HasIndex("RoleId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserRoles", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("LoginProvider")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Value")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("UserId", "LoginProvider", "Name");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserTokens", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("CreatedGlobalEntities")
|
||||||
|
.HasForeignKey("CreatorId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.MediaType", "MediaType")
|
||||||
|
.WithMany("GlobalEntities")
|
||||||
|
.HasForeignKey("TypeId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("MediaType");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("CreatedLabels")
|
||||||
|
.HasForeignKey("CreatorId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableGlobalGenre", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.Genre", "Genre")
|
||||||
|
.WithMany("LinkTableGlobalGenres")
|
||||||
|
.HasForeignKey("GenreId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("LinkTableGlobalGenres")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Genre");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.Label", "Label")
|
||||||
|
.WithMany("LinkTablePrivateLabels")
|
||||||
|
.HasForeignKey("LabelId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.PrivateEntity", "PrivateEntity")
|
||||||
|
.WithMany("PrivateEntityLabels")
|
||||||
|
.HasForeignKey("PrivateEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Label");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntity");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateStreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.PrivateEntity", "PrivateEntity")
|
||||||
|
.WithMany("PrivateStreamingPlatforms")
|
||||||
|
.HasForeignKey("PrivateEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedListEntity", null)
|
||||||
|
.WithMany("LinkTablePrivateStreamingPlatforms")
|
||||||
|
.HasForeignKey("SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.StreamingPlatform", "StreamingPlatform")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("StreamingPlatformId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntity");
|
||||||
|
|
||||||
|
b.Navigation("StreamingPlatform");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedListEntity", "SharedListEntity")
|
||||||
|
.WithMany("LinkTableSharedLabels")
|
||||||
|
.HasForeignKey("SharedListEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedListLabel", "SharedListLabel")
|
||||||
|
.WithMany("LinkTableSharedLabels")
|
||||||
|
.HasForeignKey("SharedListLabelId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedListEntity");
|
||||||
|
|
||||||
|
b.Navigation("SharedListLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedUser", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListUsers")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("LinkTableSharedUsers")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("PrivateEntities")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("PrivateEntities")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.UserWatchStatus", "UserWatchStatus")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserWatchStatusId");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
|
||||||
|
b.Navigation("UserWatchStatus");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedWatchStatus", "SharedWatchStatus")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("SharedWatchStatusId");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
|
||||||
|
b.Navigation("SharedWatchStatus");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListLabels")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedWatchStatuses")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("RoleId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("RoleId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.ApplicationUser", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("CreatedGlobalEntities");
|
||||||
|
|
||||||
|
b.Navigation("CreatedLabels");
|
||||||
|
|
||||||
|
b.Navigation("LinkTableSharedUsers");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Genre", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableGlobalGenres");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableGlobalGenres");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntities");
|
||||||
|
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTablePrivateLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.MediaType", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("GlobalEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("PrivateEntityLabels");
|
||||||
|
|
||||||
|
b.Navigation("PrivateStreamingPlatforms");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedList", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
|
||||||
|
b.Navigation("SharedListLabels");
|
||||||
|
|
||||||
|
b.Navigation("SharedListUsers");
|
||||||
|
|
||||||
|
b.Navigation("SharedWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTablePrivateStreamingPlatforms");
|
||||||
|
|
||||||
|
b.Navigation("LinkTableSharedLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableSharedLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
});
|
||||||
|
#pragma warning restore 612, 618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
48
CouchLog/Migrations/20251201222218_RemoveUserFromStatus.cs
Normal file
48
CouchLog/Migrations/20251201222218_RemoveUserFromStatus.cs
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace CouchLog.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class RemoveUserFromStatus : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_UserWatchStatuses_AspNetUsers_ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_UserWatchStatuses_ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
type: "TEXT",
|
||||||
|
nullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_UserWatchStatuses_ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
column: "ApplicationUserId");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_UserWatchStatuses_AspNetUsers_ApplicationUserId",
|
||||||
|
table: "UserWatchStatuses",
|
||||||
|
column: "ApplicationUserId",
|
||||||
|
principalTable: "AspNetUsers",
|
||||||
|
principalColumn: "Id");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
955
CouchLog/Migrations/ApplicationDbContextModelSnapshot.cs
Normal file
955
CouchLog/Migrations/ApplicationDbContextModelSnapshot.cs
Normal file
@@ -0,0 +1,955 @@
|
|||||||
|
// <auto-generated />
|
||||||
|
using System;
|
||||||
|
using CouchLog.Data;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace CouchLog.Migrations
|
||||||
|
{
|
||||||
|
[DbContext(typeof(ApplicationDbContext))]
|
||||||
|
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
||||||
|
{
|
||||||
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
#pragma warning disable 612, 618
|
||||||
|
modelBuilder.HasAnnotation("ProductVersion", "10.0.0");
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.ApplicationUser", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("AccessFailedCount")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ConcurrencyStamp")
|
||||||
|
.IsConcurrencyToken()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Email")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("EmailConfirmed")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("LockoutEnabled")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedEmail")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedUserName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PasswordHash")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PhoneNumber")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("PhoneNumberConfirmed")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("SecurityStamp")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("TwoFactorEnabled")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedEmail")
|
||||||
|
.HasDatabaseName("EmailIndex");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedUserName")
|
||||||
|
.IsUnique()
|
||||||
|
.HasDatabaseName("UserNameIndex");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUsers", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Genre", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Genres");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("CreatorId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PicturePath")
|
||||||
|
.HasMaxLength(500)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Title")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("TypeId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CreatorId");
|
||||||
|
|
||||||
|
b.HasIndex("TypeId");
|
||||||
|
|
||||||
|
b.ToTable("GlobalEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("CreatorId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("CreatorId");
|
||||||
|
|
||||||
|
b.ToTable("Labels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableGlobalGenre", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnOrder(0);
|
||||||
|
|
||||||
|
b.Property<int>("GenreId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnOrder(1);
|
||||||
|
|
||||||
|
b.HasKey("GlobalEntityId", "GenreId");
|
||||||
|
|
||||||
|
b.HasIndex("GenreId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableGlobalGenre");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("PrivateEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("LabelId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("PrivateEntityId", "LabelId");
|
||||||
|
|
||||||
|
b.HasIndex("LabelId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTablePrivateLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateStreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("PrivateEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("StreamingPlatformId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("SharedListEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("PrivateEntityId", "StreamingPlatformId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("StreamingPlatformId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTablePrivateStreamingPlatform");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("SharedListLabelId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("SharedListLabelId", "SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListEntityId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableSharedLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedUser", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("SharedListId", "UserId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("LinkTableSharedUser");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.MediaType", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("MediaType");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Episode")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("Favorite")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Rating")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("Season")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("UserWatchStatusId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("GlobalEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.HasIndex("UserWatchStatusId");
|
||||||
|
|
||||||
|
b.ToTable("PrivateEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedList", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(150)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("SharedLists");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(1000)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Episode")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<bool>("Favorite")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("GlobalEntityId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int?>("Season")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<int?>("SharedWatchStatusId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("GlobalEntityId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.HasIndex("SharedWatchStatusId");
|
||||||
|
|
||||||
|
b.ToTable("SharedListEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.ToTable("SharedListLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ColorCode")
|
||||||
|
.HasMaxLength(7)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(255)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<int>("SharedListId")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("SharedListId");
|
||||||
|
|
||||||
|
b.ToTable("SharedWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.StreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(100)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("PicturePath")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("StreamingPlatforms");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.UserWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ColorCode")
|
||||||
|
.HasMaxLength(7)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreationTime")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Description")
|
||||||
|
.HasMaxLength(255)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("LastChange")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(50)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("UserWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("Id")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ConcurrencyStamp")
|
||||||
|
.IsConcurrencyToken()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("NormalizedName")
|
||||||
|
.HasMaxLength(256)
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("NormalizedName")
|
||||||
|
.IsUnique()
|
||||||
|
.HasDatabaseName("RoleNameIndex");
|
||||||
|
|
||||||
|
b.ToTable("AspNetRoles", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimType")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimValue")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("RoleId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("RoleId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetRoleClaims", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimType")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ClaimValue")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserClaims", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("LoginProvider")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ProviderKey")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("ProviderDisplayName")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("LoginProvider", "ProviderKey");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserLogins", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("RoleId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("UserId", "RoleId");
|
||||||
|
|
||||||
|
b.HasIndex("RoleId");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserRoles", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
|
{
|
||||||
|
b.Property<string>("UserId")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("LoginProvider")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<string>("Value")
|
||||||
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.HasKey("UserId", "LoginProvider", "Name");
|
||||||
|
|
||||||
|
b.ToTable("AspNetUserTokens", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("CreatedGlobalEntities")
|
||||||
|
.HasForeignKey("CreatorId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.MediaType", "MediaType")
|
||||||
|
.WithMany("GlobalEntities")
|
||||||
|
.HasForeignKey("TypeId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("MediaType");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("CreatedLabels")
|
||||||
|
.HasForeignKey("CreatorId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableGlobalGenre", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.Genre", "Genre")
|
||||||
|
.WithMany("LinkTableGlobalGenres")
|
||||||
|
.HasForeignKey("GenreId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("LinkTableGlobalGenres")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Genre");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.Label", "Label")
|
||||||
|
.WithMany("LinkTablePrivateLabels")
|
||||||
|
.HasForeignKey("LabelId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.PrivateEntity", "PrivateEntity")
|
||||||
|
.WithMany("PrivateEntityLabels")
|
||||||
|
.HasForeignKey("PrivateEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Label");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntity");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTablePrivateStreamingPlatform", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.PrivateEntity", "PrivateEntity")
|
||||||
|
.WithMany("PrivateStreamingPlatforms")
|
||||||
|
.HasForeignKey("PrivateEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedListEntity", null)
|
||||||
|
.WithMany("LinkTablePrivateStreamingPlatforms")
|
||||||
|
.HasForeignKey("SharedListEntityId");
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.StreamingPlatform", "StreamingPlatform")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("StreamingPlatformId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntity");
|
||||||
|
|
||||||
|
b.Navigation("StreamingPlatform");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedListEntity", "SharedListEntity")
|
||||||
|
.WithMany("LinkTableSharedLabels")
|
||||||
|
.HasForeignKey("SharedListEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedListLabel", "SharedListLabel")
|
||||||
|
.WithMany("LinkTableSharedLabels")
|
||||||
|
.HasForeignKey("SharedListLabelId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedListEntity");
|
||||||
|
|
||||||
|
b.Navigation("SharedListLabel");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.LinkTableSharedUser", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListUsers")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("LinkTableSharedUsers")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("PrivateEntities")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", "User")
|
||||||
|
.WithMany("PrivateEntities")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.UserWatchStatus", "UserWatchStatus")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserWatchStatusId");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
|
||||||
|
b.Navigation("UserWatchStatus");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.GlobalEntity", "GlobalEntity")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("GlobalEntityId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.SharedWatchStatus", "SharedWatchStatus")
|
||||||
|
.WithMany("SharedListEntities")
|
||||||
|
.HasForeignKey("SharedWatchStatusId");
|
||||||
|
|
||||||
|
b.Navigation("GlobalEntity");
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
|
||||||
|
b.Navigation("SharedWatchStatus");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedListLabels")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.SharedList", "SharedList")
|
||||||
|
.WithMany("SharedWatchStatuses")
|
||||||
|
.HasForeignKey("SharedListId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("SharedList");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("RoleId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("RoleId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("CouchLog.Data.ApplicationUser", null)
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.ApplicationUser", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("CreatedGlobalEntities");
|
||||||
|
|
||||||
|
b.Navigation("CreatedLabels");
|
||||||
|
|
||||||
|
b.Navigation("LinkTableSharedUsers");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Genre", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableGlobalGenres");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.GlobalEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableGlobalGenres");
|
||||||
|
|
||||||
|
b.Navigation("PrivateEntities");
|
||||||
|
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.Label", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTablePrivateLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.MediaType", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("GlobalEntities");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.PrivateEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("PrivateEntityLabels");
|
||||||
|
|
||||||
|
b.Navigation("PrivateStreamingPlatforms");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedList", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
|
||||||
|
b.Navigation("SharedListLabels");
|
||||||
|
|
||||||
|
b.Navigation("SharedListUsers");
|
||||||
|
|
||||||
|
b.Navigation("SharedWatchStatuses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListEntity", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTablePrivateStreamingPlatforms");
|
||||||
|
|
||||||
|
b.Navigation("LinkTableSharedLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedListLabel", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("LinkTableSharedLabels");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("CouchLog.Data.SharedWatchStatus", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("SharedListEntities");
|
||||||
|
});
|
||||||
|
#pragma warning restore 612, 618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user