diff --git a/WebApi/DbConnectionLibrairie/Migrations/20240307151226_m1.Designer.cs b/WebApi/DbConnectionLibrairie/Migrations/20240307151226_m1.Designer.cs index 525f696..f845a70 100644 --- a/WebApi/DbConnectionLibrairie/Migrations/20240307151226_m1.Designer.cs +++ b/WebApi/DbConnectionLibrairie/Migrations/20240307151226_m1.Designer.cs @@ -22,7 +22,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.AdministratorEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -41,7 +41,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.AnswerEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -49,7 +49,7 @@ namespace DbConnectionLibrairie.Migrations .IsRequired() .HasColumnType("TEXT"); - b.Property("IdQuestion") + b.Property("IdQuestion") .HasColumnType("INTEGER"); b.HasKey("Id"); @@ -61,7 +61,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.ChapterEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -76,18 +76,18 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.LobbyEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); - b.Property("IdCreator") + b.Property("IdCreator") .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); - b.Property("NbPlayers") + b.Property("NbPlayers") .HasColumnType("INTEGER"); b.Property("Password") @@ -103,13 +103,13 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.LobbyEntityPlayerEntity", b => { - b.Property("IdLobby") + b.Property("IdLobby") .HasColumnType("INTEGER"); - b.Property("IdPlayer") + b.Property("IdPlayer") .HasColumnType("INTEGER"); - b.Property("MaxScore") + b.Property("MaxScore") .HasColumnType("INTEGER"); b.HasKey("IdLobby", "IdPlayer"); @@ -121,7 +121,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.PlayerEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -140,13 +140,13 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.PlayerEntityChapterEntity", b => { - b.Property("IdPlayer") + b.Property("IdPlayer") .HasColumnType("INTEGER"); - b.Property("IdChapter") + b.Property("IdChapter") .HasColumnType("INTEGER"); - b.Property("MaxScore") + b.Property("MaxScore") .HasColumnType("INTEGER"); b.HasKey("IdPlayer", "IdChapter"); @@ -158,7 +158,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.QuestionEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -169,13 +169,13 @@ namespace DbConnectionLibrairie.Migrations b.Property("Difficulty") .HasColumnType("INTEGER"); - b.Property("IdAnswerGood") + b.Property("IdAnswerGood") .HasColumnType("INTEGER"); - b.Property("IdChapter") + b.Property("IdChapter") .HasColumnType("INTEGER"); - b.Property("NbFalls") + b.Property("NbFalls") .HasColumnType("INTEGER"); b.HasKey("Id"); diff --git a/WebApi/DbConnectionLibrairie/Migrations/20240307151226_m1.cs b/WebApi/DbConnectionLibrairie/Migrations/20240307151226_m1.cs index 911f582..d519a56 100644 --- a/WebApi/DbConnectionLibrairie/Migrations/20240307151226_m1.cs +++ b/WebApi/DbConnectionLibrairie/Migrations/20240307151226_m1.cs @@ -14,7 +14,7 @@ namespace DbConnectionLibrairie.Migrations name: "Administrators", columns: table => new { - Id = table.Column(type: "INTEGER", nullable: false) + Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Username = table.Column(type: "TEXT", nullable: false), HashedPassword = table.Column(type: "TEXT", nullable: false) @@ -28,7 +28,7 @@ namespace DbConnectionLibrairie.Migrations name: "Chapters", columns: table => new { - Id = table.Column(type: "INTEGER", nullable: false) + Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Name = table.Column(type: "TEXT", nullable: false) }, @@ -41,7 +41,7 @@ namespace DbConnectionLibrairie.Migrations name: "Players", columns: table => new { - Id = table.Column(type: "INTEGER", nullable: false) + Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Nickname = table.Column(type: "TEXT", nullable: false), HashedPassword = table.Column(type: "TEXT", nullable: false) @@ -55,12 +55,12 @@ namespace DbConnectionLibrairie.Migrations name: "Lobbies", columns: table => new { - Id = table.Column(type: "INTEGER", nullable: false) + Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Name = table.Column(type: "TEXT", nullable: false), Password = table.Column(type: "TEXT", nullable: false), - NbPlayers = table.Column(type: "INTEGER", nullable: false), - IdCreator = table.Column(type: "INTEGER", nullable: true) + NbPlayers = table.Column(type: "INTEGER", nullable: false), + IdCreator = table.Column(type: "INTEGER", nullable: true) }, constraints: table => { @@ -76,9 +76,9 @@ namespace DbConnectionLibrairie.Migrations name: "Play", columns: table => new { - IdChapter = table.Column(type: "INTEGER", nullable: false), - IdPlayer = table.Column(type: "INTEGER", nullable: false), - MaxScore = table.Column(type: "INTEGER", nullable: false) + IdChapter = table.Column(type: "INTEGER", nullable: false), + IdPlayer = table.Column(type: "INTEGER", nullable: false), + MaxScore = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { @@ -101,9 +101,9 @@ namespace DbConnectionLibrairie.Migrations name: "Use", columns: table => new { - IdLobby = table.Column(type: "INTEGER", nullable: false), - IdPlayer = table.Column(type: "INTEGER", nullable: false), - MaxScore = table.Column(type: "INTEGER", nullable: false) + IdLobby = table.Column(type: "INTEGER", nullable: false), + IdPlayer = table.Column(type: "INTEGER", nullable: false), + MaxScore = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { @@ -126,10 +126,10 @@ namespace DbConnectionLibrairie.Migrations name: "Answers", columns: table => new { - Id = table.Column(type: "INTEGER", nullable: false) + Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Content = table.Column(type: "TEXT", nullable: false), - IdQuestion = table.Column(type: "INTEGER", nullable: true) + IdQuestion = table.Column(type: "INTEGER", nullable: true) }, constraints: table => { @@ -140,13 +140,13 @@ namespace DbConnectionLibrairie.Migrations name: "Questions", columns: table => new { - Id = table.Column(type: "INTEGER", nullable: false) + Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Content = table.Column(type: "TEXT", nullable: false), Difficulty = table.Column(type: "INTEGER", nullable: false), - NbFalls = table.Column(type: "INTEGER", nullable: false), - IdChapter = table.Column(type: "INTEGER", nullable: true), - IdAnswerGood = table.Column(type: "INTEGER", nullable: true) + NbFalls = table.Column(type: "INTEGER", nullable: false), + IdChapter = table.Column(type: "INTEGER", nullable: true), + IdAnswerGood = table.Column(type: "INTEGER", nullable: true) }, constraints: table => { diff --git a/WebApi/DbConnectionLibrairie/Migrations/MyDbContextModelSnapshot.cs b/WebApi/DbConnectionLibrairie/Migrations/MyDbContextModelSnapshot.cs index af4491f..398693f 100644 --- a/WebApi/DbConnectionLibrairie/Migrations/MyDbContextModelSnapshot.cs +++ b/WebApi/DbConnectionLibrairie/Migrations/MyDbContextModelSnapshot.cs @@ -19,7 +19,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.AdministratorEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -38,7 +38,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.AnswerEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -46,7 +46,7 @@ namespace DbConnectionLibrairie.Migrations .IsRequired() .HasColumnType("TEXT"); - b.Property("IdQuestion") + b.Property("IdQuestion") .HasColumnType("INTEGER"); b.HasKey("Id"); @@ -58,7 +58,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.ChapterEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -73,18 +73,18 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.LobbyEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); - b.Property("IdCreator") + b.Property("IdCreator") .HasColumnType("INTEGER"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); - b.Property("NbPlayers") + b.Property("NbPlayers") .HasColumnType("INTEGER"); b.Property("Password") @@ -100,13 +100,13 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.LobbyEntityPlayerEntity", b => { - b.Property("IdLobby") + b.Property("IdLobby") .HasColumnType("INTEGER"); - b.Property("IdPlayer") + b.Property("IdPlayer") .HasColumnType("INTEGER"); - b.Property("MaxScore") + b.Property("MaxScore") .HasColumnType("INTEGER"); b.HasKey("IdLobby", "IdPlayer"); @@ -118,7 +118,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.PlayerEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -137,13 +137,13 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.PlayerEntityChapterEntity", b => { - b.Property("IdPlayer") + b.Property("IdPlayer") .HasColumnType("INTEGER"); - b.Property("IdChapter") + b.Property("IdChapter") .HasColumnType("INTEGER"); - b.Property("MaxScore") + b.Property("MaxScore") .HasColumnType("INTEGER"); b.HasKey("IdPlayer", "IdChapter"); @@ -155,7 +155,7 @@ namespace DbConnectionLibrairie.Migrations modelBuilder.Entity("Entities.QuestionEntity", b => { - b.Property("Id") + b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); @@ -166,13 +166,13 @@ namespace DbConnectionLibrairie.Migrations b.Property("Difficulty") .HasColumnType("INTEGER"); - b.Property("IdAnswerGood") + b.Property("IdAnswerGood") .HasColumnType("INTEGER"); - b.Property("IdChapter") + b.Property("IdChapter") .HasColumnType("INTEGER"); - b.Property("NbFalls") + b.Property("NbFalls") .HasColumnType("INTEGER"); b.HasKey("Id");