migrations apparemment refaîtes

API
Damien NORTIER 1 year ago
parent 00fa239371
commit 26d1ba9360

@ -22,7 +22,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.AdministratorEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -41,7 +41,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.AnswerEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -49,7 +49,7 @@ namespace DbConnectionLibrairie.Migrations
.IsRequired()
.HasColumnType("TEXT");
b.Property<uint?>("IdQuestion")
b.Property<int?>("IdQuestion")
.HasColumnType("INTEGER");
b.HasKey("Id");
@ -61,7 +61,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.ChapterEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -76,18 +76,18 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.LobbyEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<uint?>("IdCreator")
b.Property<int?>("IdCreator")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<uint>("NbPlayers")
b.Property<int>("NbPlayers")
.HasColumnType("INTEGER");
b.Property<string>("Password")
@ -103,13 +103,13 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.LobbyEntityPlayerEntity", b =>
{
b.Property<uint>("IdLobby")
b.Property<int>("IdLobby")
.HasColumnType("INTEGER");
b.Property<uint>("IdPlayer")
b.Property<int>("IdPlayer")
.HasColumnType("INTEGER");
b.Property<uint>("MaxScore")
b.Property<int>("MaxScore")
.HasColumnType("INTEGER");
b.HasKey("IdLobby", "IdPlayer");
@ -121,7 +121,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.PlayerEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -140,13 +140,13 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.PlayerEntityChapterEntity", b =>
{
b.Property<uint>("IdPlayer")
b.Property<int>("IdPlayer")
.HasColumnType("INTEGER");
b.Property<uint>("IdChapter")
b.Property<int>("IdChapter")
.HasColumnType("INTEGER");
b.Property<uint>("MaxScore")
b.Property<int>("MaxScore")
.HasColumnType("INTEGER");
b.HasKey("IdPlayer", "IdChapter");
@ -158,7 +158,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.QuestionEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -169,13 +169,13 @@ namespace DbConnectionLibrairie.Migrations
b.Property<byte>("Difficulty")
.HasColumnType("INTEGER");
b.Property<uint?>("IdAnswerGood")
b.Property<int?>("IdAnswerGood")
.HasColumnType("INTEGER");
b.Property<uint?>("IdChapter")
b.Property<int?>("IdChapter")
.HasColumnType("INTEGER");
b.Property<uint>("NbFalls")
b.Property<int>("NbFalls")
.HasColumnType("INTEGER");
b.HasKey("Id");

@ -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 =>
{

@ -19,7 +19,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.AdministratorEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -38,7 +38,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.AnswerEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -46,7 +46,7 @@ namespace DbConnectionLibrairie.Migrations
.IsRequired()
.HasColumnType("TEXT");
b.Property<uint?>("IdQuestion")
b.Property<int?>("IdQuestion")
.HasColumnType("INTEGER");
b.HasKey("Id");
@ -58,7 +58,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.ChapterEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -73,18 +73,18 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.LobbyEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<uint?>("IdCreator")
b.Property<int?>("IdCreator")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<uint>("NbPlayers")
b.Property<int>("NbPlayers")
.HasColumnType("INTEGER");
b.Property<string>("Password")
@ -100,13 +100,13 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.LobbyEntityPlayerEntity", b =>
{
b.Property<uint>("IdLobby")
b.Property<int>("IdLobby")
.HasColumnType("INTEGER");
b.Property<uint>("IdPlayer")
b.Property<int>("IdPlayer")
.HasColumnType("INTEGER");
b.Property<uint>("MaxScore")
b.Property<int>("MaxScore")
.HasColumnType("INTEGER");
b.HasKey("IdLobby", "IdPlayer");
@ -118,7 +118,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.PlayerEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -137,13 +137,13 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.PlayerEntityChapterEntity", b =>
{
b.Property<uint>("IdPlayer")
b.Property<int>("IdPlayer")
.HasColumnType("INTEGER");
b.Property<uint>("IdChapter")
b.Property<int>("IdChapter")
.HasColumnType("INTEGER");
b.Property<uint>("MaxScore")
b.Property<int>("MaxScore")
.HasColumnType("INTEGER");
b.HasKey("IdPlayer", "IdChapter");
@ -155,7 +155,7 @@ namespace DbConnectionLibrairie.Migrations
modelBuilder.Entity("Entities.QuestionEntity", b =>
{
b.Property<uint>("Id")
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
@ -166,13 +166,13 @@ namespace DbConnectionLibrairie.Migrations
b.Property<byte>("Difficulty")
.HasColumnType("INTEGER");
b.Property<uint?>("IdAnswerGood")
b.Property<int?>("IdAnswerGood")
.HasColumnType("INTEGER");
b.Property<uint?>("IdChapter")
b.Property<int?>("IdChapter")
.HasColumnType("INTEGER");
b.Property<uint>("NbFalls")
b.Property<int>("NbFalls")
.HasColumnType("INTEGER");
b.HasKey("Id");

Loading…
Cancel
Save