@ -14,8 +14,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
{
{
#pragma warning disable 612, 618
#pragma warning disable 612, 618
modelBuilder
modelBuilder
. HasAnnotation ( " ProductVersion", "3.1.1" )
. HasAnnotation ( " Relational:MaxIdentifierLength", 64 )
. HasAnnotation ( " Relational:MaxIdentifierLength", 64 ) ;
. HasAnnotation ( " ProductVersion", "5.0.1" ) ;
modelBuilder . Entity ( "Microsoft.AspNetCore.Identity.IdentityRole" , b = >
modelBuilder . Entity ( "Microsoft.AspNetCore.Identity.IdentityRole" , b = >
{
{
@ -27,18 +27,18 @@ namespace Ombi.Store.Migrations.OmbiMySql
. HasColumnType ( "longtext" ) ;
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. Has ColumnType( "varchar(256)" )
. Has MaxLength( 256 )
. Has MaxLength( 256 ) ;
. Has ColumnType( "varchar(256)" ) ;
b . Property < string > ( "NormalizedName" )
b . Property < string > ( "NormalizedName" )
. Has ColumnType( "varchar(256)" )
. Has MaxLength( 256 )
. Has MaxLength( 256 ) ;
. Has ColumnType( "varchar(256)" ) ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "NormalizedName" )
b . HasIndex ( "NormalizedName" )
. IsUnique ( )
. IsUnique ( )
. Has Name( "RoleNameIndex" ) ;
. Has Database Name( "RoleNameIndex" ) ;
b . ToTable ( "AspNetRoles" ) ;
b . ToTable ( "AspNetRoles" ) ;
} ) ;
} ) ;
@ -257,8 +257,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
. HasColumnType ( "longtext" ) ;
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "Email" )
b . Property < string > ( "Email" )
. Has ColumnType( "varchar(256)" )
. Has MaxLength( 256 )
. Has MaxLength( 256 ) ;
. Has ColumnType( "varchar(256)" ) ;
b . Property < bool > ( "EmailConfirmed" )
b . Property < bool > ( "EmailConfirmed" )
. HasColumnType ( "tinyint(1)" ) ;
. HasColumnType ( "tinyint(1)" ) ;
@ -285,12 +285,12 @@ namespace Ombi.Store.Migrations.OmbiMySql
. HasColumnType ( "int" ) ;
. HasColumnType ( "int" ) ;
b . Property < string > ( "NormalizedEmail" )
b . Property < string > ( "NormalizedEmail" )
. Has ColumnType( "varchar(256)" )
. Has MaxLength( 256 )
. Has MaxLength( 256 ) ;
. Has ColumnType( "varchar(256)" ) ;
b . Property < string > ( "NormalizedUserName" )
b . Property < string > ( "NormalizedUserName" )
. Has ColumnType( "varchar(256)" )
. Has MaxLength( 256 )
. Has MaxLength( 256 ) ;
. Has ColumnType( "varchar(256)" ) ;
b . Property < string > ( "PasswordHash" )
b . Property < string > ( "PasswordHash" )
. HasColumnType ( "longtext" ) ;
. HasColumnType ( "longtext" ) ;
@ -307,6 +307,9 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . Property < string > ( "SecurityStamp" )
b . Property < string > ( "SecurityStamp" )
. HasColumnType ( "longtext" ) ;
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "StreamingCountry" )
. HasColumnType ( "longtext" ) ;
b . Property < bool > ( "TwoFactorEnabled" )
b . Property < bool > ( "TwoFactorEnabled" )
. HasColumnType ( "tinyint(1)" ) ;
. HasColumnType ( "tinyint(1)" ) ;
@ -314,8 +317,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
. HasColumnType ( "longtext" ) ;
. HasColumnType ( "longtext" ) ;
b . Property < string > ( "UserName" )
b . Property < string > ( "UserName" )
. Has ColumnType( "varchar(256)" )
. Has MaxLength( 256 )
. Has MaxLength( 256 ) ;
. Has ColumnType( "varchar(256)" ) ;
b . Property < int > ( "UserType" )
b . Property < int > ( "UserType" )
. HasColumnType ( "int" ) ;
. HasColumnType ( "int" ) ;
@ -323,11 +326,11 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
b . HasIndex ( "NormalizedEmail" )
b . HasIndex ( "NormalizedEmail" )
. Has Name( "EmailIndex" ) ;
. Has Database Name( "EmailIndex" ) ;
b . HasIndex ( "NormalizedUserName" )
b . HasIndex ( "NormalizedUserName" )
. IsUnique ( )
. IsUnique ( )
. Has Name( "UserNameIndex" ) ;
. Has Database Name( "UserNameIndex" ) ;
b . ToTable ( "AspNetUsers" ) ;
b . ToTable ( "AspNetUsers" ) ;
} ) ;
} ) ;
@ -1017,6 +1020,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "UserId" ) ;
. HasForeignKey ( "UserId" ) ;
b . Navigation ( "User" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.NotificationUserId" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.NotificationUserId" , b = >
@ -1024,6 +1029,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
. WithMany ( "NotificationUserIds" )
. WithMany ( "NotificationUserIds" )
. HasForeignKey ( "UserId" ) ;
. HasForeignKey ( "UserId" ) ;
b . Navigation ( "User" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.RequestSubscription" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.RequestSubscription" , b = >
@ -1031,6 +1038,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "UserId" ) ;
. HasForeignKey ( "UserId" ) ;
b . Navigation ( "User" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.AlbumRequest" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.AlbumRequest" , b = >
@ -1038,6 +1047,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "RequestedUser" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "RequestedUser" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "RequestedUserId" ) ;
. HasForeignKey ( "RequestedUserId" ) ;
b . Navigation ( "RequestedUser" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.ChildRequests" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.ChildRequests" , b = >
@ -1051,6 +1062,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "RequestedUser" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "RequestedUser" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "RequestedUserId" ) ;
. HasForeignKey ( "RequestedUserId" ) ;
b . Navigation ( "ParentRequest" ) ;
b . Navigation ( "RequestedUser" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.IssueComments" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.IssueComments" , b = >
@ -1062,6 +1077,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "UserId" ) ;
. HasForeignKey ( "UserId" ) ;
b . Navigation ( "Issues" ) ;
b . Navigation ( "User" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.Issues" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.Issues" , b = >
@ -1083,6 +1102,10 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "UserReported" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "UserReported" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "UserReportedId" ) ;
. HasForeignKey ( "UserReportedId" ) ;
b . Navigation ( "IssueCategory" ) ;
b . Navigation ( "UserReported" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.MovieRequests" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.MovieRequests" , b = >
@ -1090,6 +1113,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "RequestedUser" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "RequestedUser" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "RequestedUserId" ) ;
. HasForeignKey ( "RequestedUserId" ) ;
b . Navigation ( "RequestedUser" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.RequestLog" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.RequestLog" , b = >
@ -1097,6 +1122,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "UserId" ) ;
. HasForeignKey ( "UserId" ) ;
b . Navigation ( "User" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Tokens" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.Tokens" , b = >
@ -1104,6 +1131,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "UserId" ) ;
. HasForeignKey ( "UserId" ) ;
b . Navigation ( "User" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.UserNotificationPreferences" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.UserNotificationPreferences" , b = >
@ -1111,6 +1140,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
. WithMany ( "UserNotificationPreferences" )
. WithMany ( "UserNotificationPreferences" )
. HasForeignKey ( "UserId" ) ;
. HasForeignKey ( "UserId" ) ;
b . Navigation ( "User" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.UserQualityProfiles" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.UserQualityProfiles" , b = >
@ -1118,6 +1149,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "UserId" ) ;
. HasForeignKey ( "UserId" ) ;
b . Navigation ( "User" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Votes" , b = >
modelBuilder . Entity ( "Ombi.Store.Entities.Votes" , b = >
@ -1125,6 +1158,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
b . HasOne ( "Ombi.Store.Entities.OmbiUser" , "User" )
. WithMany ( )
. WithMany ( )
. HasForeignKey ( "UserId" ) ;
. HasForeignKey ( "UserId" ) ;
b . Navigation ( "User" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Repository.Requests.EpisodeRequests" , b = >
modelBuilder . Entity ( "Ombi.Store.Repository.Requests.EpisodeRequests" , b = >
@ -1134,6 +1169,8 @@ namespace Ombi.Store.Migrations.OmbiMySql
. HasForeignKey ( "SeasonId" )
. HasForeignKey ( "SeasonId" )
. OnDelete ( DeleteBehavior . Cascade )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
. IsRequired ( ) ;
b . Navigation ( "Season" ) ;
} ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Repository.Requests.SeasonRequests" , b = >
modelBuilder . Entity ( "Ombi.Store.Repository.Requests.SeasonRequests" , b = >
@ -1143,6 +1180,42 @@ namespace Ombi.Store.Migrations.OmbiMySql
. HasForeignKey ( "ChildRequestId" )
. HasForeignKey ( "ChildRequestId" )
. OnDelete ( DeleteBehavior . Cascade )
. OnDelete ( DeleteBehavior . Cascade )
. IsRequired ( ) ;
. IsRequired ( ) ;
b . Navigation ( "ChildRequest" ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.OmbiUser" , b = >
{
b . Navigation ( "NotificationUserIds" ) ;
b . Navigation ( "UserNotificationPreferences" ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.ChildRequests" , b = >
{
b . Navigation ( "Issues" ) ;
b . Navigation ( "SeasonRequests" ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.Issues" , b = >
{
b . Navigation ( "Comments" ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.MovieRequests" , b = >
{
b . Navigation ( "Issues" ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Entities.Requests.TvRequests" , b = >
{
b . Navigation ( "ChildRequests" ) ;
} ) ;
modelBuilder . Entity ( "Ombi.Store.Repository.Requests.SeasonRequests" , b = >
{
b . Navigation ( "Episodes" ) ;
} ) ;
} ) ;
#pragma warning restore 612, 618
#pragma warning restore 612, 618
}
}