|
|
|
@ -14,7 +14,7 @@ namespace DbConnectionLibrairie.Migrations
|
|
|
|
|
name: "Administrators",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<uint>(type: "INTEGER", nullable: false)
|
|
|
|
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
Username = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
HashedPassword = table.Column<string>(type: "TEXT", nullable: false)
|
|
|
|
@ -28,7 +28,7 @@ namespace DbConnectionLibrairie.Migrations
|
|
|
|
|
name: "Chapters",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<uint>(type: "INTEGER", nullable: false)
|
|
|
|
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
Name = table.Column<string>(type: "TEXT", nullable: false)
|
|
|
|
|
},
|
|
|
|
@ -41,7 +41,7 @@ namespace DbConnectionLibrairie.Migrations
|
|
|
|
|
name: "Players",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<uint>(type: "INTEGER", nullable: false)
|
|
|
|
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
Nickname = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
HashedPassword = table.Column<string>(type: "TEXT", nullable: false)
|
|
|
|
@ -55,12 +55,12 @@ namespace DbConnectionLibrairie.Migrations
|
|
|
|
|
name: "Lobbies",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<uint>(type: "INTEGER", nullable: false)
|
|
|
|
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
Name = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
Password = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
NbPlayers = table.Column<uint>(type: "INTEGER", nullable: false),
|
|
|
|
|
IdCreator = table.Column<uint>(type: "INTEGER", nullable: true)
|
|
|
|
|
NbPlayers = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
|
IdCreator = table.Column<int>(type: "INTEGER", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
@ -76,9 +76,9 @@ namespace DbConnectionLibrairie.Migrations
|
|
|
|
|
name: "Play",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
IdChapter = table.Column<uint>(type: "INTEGER", nullable: false),
|
|
|
|
|
IdPlayer = table.Column<uint>(type: "INTEGER", nullable: false),
|
|
|
|
|
MaxScore = table.Column<uint>(type: "INTEGER", nullable: false)
|
|
|
|
|
IdChapter = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
|
IdPlayer = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
|
MaxScore = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
@ -101,9 +101,9 @@ namespace DbConnectionLibrairie.Migrations
|
|
|
|
|
name: "Use",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
IdLobby = table.Column<uint>(type: "INTEGER", nullable: false),
|
|
|
|
|
IdPlayer = table.Column<uint>(type: "INTEGER", nullable: false),
|
|
|
|
|
MaxScore = table.Column<uint>(type: "INTEGER", nullable: false)
|
|
|
|
|
IdLobby = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
|
IdPlayer = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
|
MaxScore = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
@ -126,10 +126,10 @@ namespace DbConnectionLibrairie.Migrations
|
|
|
|
|
name: "Answers",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<uint>(type: "INTEGER", nullable: false)
|
|
|
|
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
Content = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
IdQuestion = table.Column<uint>(type: "INTEGER", nullable: true)
|
|
|
|
|
IdQuestion = table.Column<int>(type: "INTEGER", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
@ -140,13 +140,13 @@ namespace DbConnectionLibrairie.Migrations
|
|
|
|
|
name: "Questions",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<uint>(type: "INTEGER", nullable: false)
|
|
|
|
|
Id = table.Column<int>(type: "INTEGER", nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
|
|
|
Content = table.Column<string>(type: "TEXT", nullable: false),
|
|
|
|
|
Difficulty = table.Column<byte>(type: "INTEGER", nullable: false),
|
|
|
|
|
NbFalls = table.Column<uint>(type: "INTEGER", nullable: false),
|
|
|
|
|
IdChapter = table.Column<uint>(type: "INTEGER", nullable: true),
|
|
|
|
|
IdAnswerGood = table.Column<uint>(type: "INTEGER", nullable: true)
|
|
|
|
|
NbFalls = table.Column<int>(type: "INTEGER", nullable: false),
|
|
|
|
|
IdChapter = table.Column<int>(type: "INTEGER", nullable: true),
|
|
|
|
|
IdAnswerGood = table.Column<int>(type: "INTEGER", nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|