@ -2,9 +2,9 @@
using System ;
using System ;
using Microsoft.EntityFrameworkCore ;
using Microsoft.EntityFrameworkCore ;
using Microsoft.EntityFrameworkCore.Infrastructure ;
using Microsoft.EntityFrameworkCore.Infrastructure ;
using Microsoft.EntityFrameworkCore.Metadata ;
using Microsoft.EntityFrameworkCore.Migrations ;
using Microsoft.EntityFrameworkCore.Migrations ;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion ;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion ;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata ;
using StubbedContextLib ;
using StubbedContextLib ;
#nullable disable
#nullable disable
@ -12,8 +12,8 @@ using StubbedContextLib;
namespace StubbedContextLib.Migrations
namespace StubbedContextLib.Migrations
{
{
[DbContext(typeof(StubWTFContext))]
[DbContext(typeof(StubWTFContext))]
[Migration("2025040 2134601_pm_apiV2 ")]
[Migration("2025040 5155130_migrLangUser ")]
partial class pm_apiV2
partial class migrLangUser
{
{
/// <inheritdoc />
/// <inheritdoc />
protected override void BuildTargetModel ( ModelBuilder modelBuilder )
protected override void BuildTargetModel ( ModelBuilder modelBuilder )
@ -21,20 +21,20 @@ namespace StubbedContextLib.Migrations
#pragma warning disable 612, 618
#pragma warning disable 612, 618
modelBuilder
modelBuilder
. HasAnnotation ( "ProductVersion" , "9.0.3" )
. HasAnnotation ( "ProductVersion" , "9.0.3" )
. HasAnnotation ( "Relational:MaxIdentifierLength" , 128 ) ;
. HasAnnotation ( "Relational:MaxIdentifierLength" , 63 ) ;
SqlServer ModelBuilderExtensions. UseIdentity Columns( modelBuilder ) ;
Npgsql ModelBuilderExtensions. UseIdentity ByDefault Columns( modelBuilder ) ;
modelBuilder . Entity ( "Entity.Admin" , b = >
modelBuilder . Entity ( "Entity.Admin" , b = >
{
{
b . Property < int > ( "IdUsers" )
b . Property < int > ( "IdUsers" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
SqlServer PropertyBuilderExtensions. UseIdentity Column( b . Property < int > ( "IdUsers" ) ) ;
Npgsql PropertyBuilderExtensions. UseIdentity ByDefault Column( b . Property < int > ( "IdUsers" ) ) ;
b . Property < int > ( "UserId" )
b . Property < int > ( "UserId" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . HasKey ( "IdUsers" ) ;
b . HasKey ( "IdUsers" ) ;
@ -47,17 +47,17 @@ namespace StubbedContextLib.Migrations
{
{
b . Property < int > ( "Id" )
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
SqlServer PropertyBuilderExtensions. UseIdentity Column( b . Property < int > ( "Id" ) ) ;
Npgsql PropertyBuilderExtensions. UseIdentity ByDefault Column( b . Property < int > ( "Id" ) ) ;
b . Property < int > ( "IdImage" )
b . Property < int > ( "IdImage" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < string > ( "Name" )
b . Property < string > ( "Name" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasMaxLength ( 50 )
. HasColumnType ( " nvarchar (50)") ;
. HasColumnType ( " character varying (50)") ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -132,24 +132,24 @@ namespace StubbedContextLib.Migrations
{
{
b . Property < int > ( "Id" )
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
SqlServer PropertyBuilderExtensions. UseIdentity Column( b . Property < int > ( "Id" ) ) ;
Npgsql PropertyBuilderExtensions. UseIdentity ByDefault Column( b . Property < int > ( "Id" ) ) ;
b . Property < string > ( "Comment" )
b . Property < string > ( "Comment" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasMaxLength ( 100 )
. HasColumnType ( " nvarchar (100)") ;
. HasColumnType ( " character varying (100)") ;
b . Property < DateTime > ( "DateCommentary" )
b . Property < DateTime > ( "DateCommentary" )
. HasColumnType ( "date" )
. HasColumnType ( "date" )
. HasColumnName ( "DateCommentary" ) ;
. HasColumnName ( "DateCommentary" ) ;
b . Property < int > ( "IdQuote" )
b . Property < int > ( "IdQuote" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < int > ( "IdUser" )
b . Property < int > ( "IdUser" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -181,10 +181,10 @@ namespace StubbedContextLib.Migrations
modelBuilder . Entity ( "Entity.Favorite" , b = >
modelBuilder . Entity ( "Entity.Favorite" , b = >
{
{
b . Property < int > ( "IdQuote" )
b . Property < int > ( "IdQuote" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < int > ( "IdUsers" )
b . Property < int > ( "IdUsers" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . HasKey ( "IdQuote" , "IdUsers" ) ;
b . HasKey ( "IdQuote" , "IdUsers" ) ;
@ -244,13 +244,13 @@ namespace StubbedContextLib.Migrations
{
{
b . Property < int > ( "Id" )
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
SqlServer PropertyBuilderExtensions. UseIdentity Column( b . Property < int > ( "Id" ) ) ;
Npgsql PropertyBuilderExtensions. UseIdentity ByDefault Column( b . Property < int > ( "Id" ) ) ;
b . Property < string > ( "ImgPath" )
b . Property < string > ( "ImgPath" )
. IsRequired ( )
. IsRequired ( )
. HasColumnType ( " nvarchar(max) ") ;
. HasColumnType ( " text ") ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -313,42 +313,42 @@ namespace StubbedContextLib.Migrations
{
{
b . Property < int > ( "Id" )
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
SqlServer PropertyBuilderExtensions. UseIdentity Column( b . Property < int > ( "Id" ) ) ;
Npgsql PropertyBuilderExtensions. UseIdentity ByDefault Column( b . Property < int > ( "Id" ) ) ;
b . Property < string > ( "AnswerA" )
b . Property < string > ( "AnswerA" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasMaxLength ( 50 )
. HasColumnType ( " nvarchar (50)") ;
. HasColumnType ( " character varying (50)") ;
b . Property < string > ( "AnswerB" )
b . Property < string > ( "AnswerB" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasMaxLength ( 50 )
. HasColumnType ( " nvarchar (50)") ;
. HasColumnType ( " character varying (50)") ;
b . Property < string > ( "AnswerC" )
b . Property < string > ( "AnswerC" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasMaxLength ( 50 )
. HasColumnType ( " nvarchar (50)") ;
. HasColumnType ( " character varying (50)") ;
b . Property < string > ( "AnswerD" )
b . Property < string > ( "AnswerD" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasMaxLength ( 50 )
. HasColumnType ( " nvarchar (50)") ;
. HasColumnType ( " character varying (50)") ;
b . Property < string > ( "CorrectAnswer" )
b . Property < string > ( "CorrectAnswer" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 1 )
. HasMaxLength ( 1 )
. HasColumnType ( " nvarchar (1)") ;
. HasColumnType ( " character varying (1)") ;
b . Property < bool > ( "IsValid" )
b . Property < bool > ( "IsValid" )
. HasColumnType ( "b it ") ;
. HasColumnType ( "b oolean ") ;
b . Property < string > ( "Text" )
b . Property < string > ( "Text" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasMaxLength ( 200 )
. HasColumnType ( " nvarchar (200)") ;
. HasColumnType ( " character varying (200)") ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -471,20 +471,20 @@ namespace StubbedContextLib.Migrations
{
{
b . Property < int > ( "Id" )
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
SqlServer PropertyBuilderExtensions. UseIdentity Column( b . Property < int > ( "Id" ) ) ;
Npgsql PropertyBuilderExtensions. UseIdentity ByDefault Column( b . Property < int > ( "Id" ) ) ;
b . Property < int > ( "IdImage" )
b . Property < int > ( "IdImage" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < int > ( "NbQuestion" )
b . Property < int > ( "NbQuestion" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < string > ( "Title" )
b . Property < string > ( "Title" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasMaxLength ( 50 )
. HasColumnType ( " nvarchar (50)") ;
. HasColumnType ( " character varying (50)") ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -512,10 +512,10 @@ namespace StubbedContextLib.Migrations
modelBuilder . Entity ( "Entity.QuizQuestion" , b = >
modelBuilder . Entity ( "Entity.QuizQuestion" , b = >
{
{
b . Property < int > ( "IdQuestion" )
b . Property < int > ( "IdQuestion" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < int > ( "IdQuiz" )
b . Property < int > ( "IdQuiz" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . HasKey ( "IdQuestion" , "IdQuiz" ) ;
b . HasKey ( "IdQuestion" , "IdQuiz" ) ;
@ -580,32 +580,32 @@ namespace StubbedContextLib.Migrations
{
{
b . Property < int > ( "Id" )
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
SqlServer PropertyBuilderExtensions. UseIdentity Column( b . Property < int > ( "Id" ) ) ;
Npgsql PropertyBuilderExtensions. UseIdentity ByDefault Column( b . Property < int > ( "Id" ) ) ;
b . Property < string > ( "Content" )
b . Property < string > ( "Content" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasMaxLength ( 100 )
. HasColumnType ( " nvarchar (100)") ;
. HasColumnType ( " character varying (100)") ;
b . Property < int > ( "IdCharacter" )
b . Property < int > ( "IdCharacter" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < int > ( "IdSource" )
b . Property < int > ( "IdSource" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < int? > ( "IdUsersPropose" )
b . Property < int? > ( "IdUsersPropose" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < bool > ( "IsValid" )
b . Property < bool > ( "IsValid" )
. HasColumnType ( "b it ") ;
. HasColumnType ( "b oolean ") ;
b . Property < int > ( "Langage" )
b . Property < int > ( "Langage" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < int > ( "Likes" )
b . Property < int > ( "Likes" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -734,20 +734,20 @@ namespace StubbedContextLib.Migrations
{
{
b . Property < int > ( "Id" )
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
SqlServer PropertyBuilderExtensions. UseIdentity Column( b . Property < int > ( "Id" ) ) ;
Npgsql PropertyBuilderExtensions. UseIdentity ByDefault Column( b . Property < int > ( "Id" ) ) ;
b . Property < string > ( "Title" )
b . Property < string > ( "Title" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 100 )
. HasMaxLength ( 100 )
. HasColumnType ( " nvarchar (100)") ;
. HasColumnType ( " character varying (100)") ;
b . Property < int > ( "TypeSrc" )
b . Property < int > ( "TypeSrc" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . Property < int > ( "Year" )
b . Property < int > ( "Year" )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -795,9 +795,9 @@ namespace StubbedContextLib.Migrations
{
{
b . Property < int > ( "Id" )
b . Property < int > ( "Id" )
. ValueGeneratedOnAdd ( )
. ValueGeneratedOnAdd ( )
. HasColumnType ( "int ") ;
. HasColumnType ( "int eger ") ;
SqlServer PropertyBuilderExtensions. UseIdentity Column( b . Property < int > ( "Id" ) ) ;
Npgsql PropertyBuilderExtensions. UseIdentity ByDefault Column( b . Property < int > ( "Id" ) ) ;
b . Property < DateTime > ( "Created" )
b . Property < DateTime > ( "Created" )
. HasColumnType ( "date" )
. HasColumnType ( "date" )
@ -806,20 +806,23 @@ namespace StubbedContextLib.Migrations
b . Property < string > ( "Email" )
b . Property < string > ( "Email" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasMaxLength ( 50 )
. HasColumnType ( " nvarchar (50)") ;
. HasColumnType ( " character varying (50)") ;
b . Property < int > ( "IdImage" )
b . Property < int > ( "IdImage" )
. HasColumnType ( "int" ) ;
. HasColumnType ( "integer" ) ;
b . Property < int > ( "Lang" )
. HasColumnType ( "integer" ) ;
b . Property < string > ( "Password" )
b . Property < string > ( "Password" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 200 )
. HasMaxLength ( 200 )
. HasColumnType ( " nvarchar (200)") ;
. HasColumnType ( " character varying (200)") ;
b . Property < string > ( "UserName" )
b . Property < string > ( "UserName" )
. IsRequired ( )
. IsRequired ( )
. HasMaxLength ( 50 )
. HasMaxLength ( 50 )
. HasColumnType ( " nvarchar (50)") ;
. HasColumnType ( " character varying (50)") ;
b . HasKey ( "Id" ) ;
b . HasKey ( "Id" ) ;
@ -834,6 +837,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2025 , 5 , 12 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2025 , 5 , 12 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "jhonDhoe@gmail.com" ,
Email = "jhonDhoe@gmail.com" ,
IdImage = 1 ,
IdImage = 1 ,
Lang = 0 ,
Password = "1234" ,
Password = "1234" ,
UserName = "Jhon-Dhoe"
UserName = "Jhon-Dhoe"
} ,
} ,
@ -843,6 +847,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2025 , 3 , 19 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2025 , 3 , 19 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "lucy_rose@outlook.com" ,
Email = "lucy_rose@outlook.com" ,
IdImage = 2 ,
IdImage = 2 ,
Lang = 0 ,
Password = "abcd" ,
Password = "abcd" ,
UserName = "Lucy-Rose"
UserName = "Lucy-Rose"
} ,
} ,
@ -852,6 +857,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2024 , 11 , 2 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2024 , 11 , 2 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "mark.taylor@yahoo.com" ,
Email = "mark.taylor@yahoo.com" ,
IdImage = 3 ,
IdImage = 3 ,
Lang = 0 ,
Password = "5678" ,
Password = "5678" ,
UserName = "Mark-Taylor"
UserName = "Mark-Taylor"
} ,
} ,
@ -861,6 +867,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2025 , 2 , 28 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2025 , 2 , 28 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "sophie.martin@gmail.com" ,
Email = "sophie.martin@gmail.com" ,
IdImage = 4 ,
IdImage = 4 ,
Lang = 0 ,
Password = "4321" ,
Password = "4321" ,
UserName = "Sophie-Martin"
UserName = "Sophie-Martin"
} ,
} ,
@ -870,6 +877,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2025 , 1 , 15 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2025 , 1 , 15 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "nathan_doe@aol.com" ,
Email = "nathan_doe@aol.com" ,
IdImage = 5 ,
IdImage = 5 ,
Lang = 0 ,
Password = "8765" ,
Password = "8765" ,
UserName = "Nathan-Doe"
UserName = "Nathan-Doe"
} ,
} ,
@ -879,6 +887,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2025 , 4 , 7 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2025 , 4 , 7 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "ella.brown@icloud.com" ,
Email = "ella.brown@icloud.com" ,
IdImage = 6 ,
IdImage = 6 ,
Lang = 0 ,
Password = "2468" ,
Password = "2468" ,
UserName = "Ella-Brown"
UserName = "Ella-Brown"
} ,
} ,
@ -888,6 +897,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2024 , 12 , 25 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2024 , 12 , 25 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "oliver_smith@gmail.com" ,
Email = "oliver_smith@gmail.com" ,
IdImage = 7 ,
IdImage = 7 ,
Lang = 0 ,
Password = "1357" ,
Password = "1357" ,
UserName = "Oliver-Smith"
UserName = "Oliver-Smith"
} ,
} ,
@ -897,6 +907,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2025 , 3 , 5 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2025 , 3 , 5 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "mia.jones@outlook.com" ,
Email = "mia.jones@outlook.com" ,
IdImage = 8 ,
IdImage = 8 ,
Lang = 0 ,
Password = "1122" ,
Password = "1122" ,
UserName = "Mia-Jones"
UserName = "Mia-Jones"
} ,
} ,
@ -906,6 +917,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2025 , 2 , 22 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2025 , 2 , 22 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "kevin_williams@aol.com" ,
Email = "kevin_williams@aol.com" ,
IdImage = 9 ,
IdImage = 9 ,
Lang = 0 ,
Password = "2233" ,
Password = "2233" ,
UserName = "Kevin-Williams"
UserName = "Kevin-Williams"
} ,
} ,
@ -915,6 +927,7 @@ namespace StubbedContextLib.Migrations
Created = new DateTime ( 2025 , 1 , 3 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Created = new DateTime ( 2025 , 1 , 3 , 0 , 0 , 0 , 0 , DateTimeKind . Unspecified ) ,
Email = "olivia.white@yahoo.com" ,
Email = "olivia.white@yahoo.com" ,
IdImage = 10 ,
IdImage = 10 ,
Lang = 0 ,
Password = "3344" ,
Password = "3344" ,
UserName = "Olivia-White"
UserName = "Olivia-White"
} ) ;
} ) ;