Added minUsers and Polls

This commit is contained in:
Sarah Faey 2023-01-14 14:03:15 +01:00
parent cb1dbfbf98
commit 1d999e89bf
8 changed files with 45 additions and 10 deletions

View file

@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace Lieb.Migrations
{
[DbContext(typeof(LiebContext))]
[Migration("20230103181756_PollsAndMinUsers")]
[Migration("20230114125113_PollsAndMinUsers")]
partial class PollsAndMinUsers
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -503,6 +503,12 @@ namespace Lieb.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<bool>("AllowCustomAnswer")
.HasColumnType("INTEGER");
b.Property<int>("AnswerType")
.HasColumnType("INTEGER");
b.Property<string>("Question")
.IsRequired()
.HasColumnType("TEXT");
@ -521,6 +527,10 @@ namespace Lieb.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Answer")
.IsRequired()
.HasColumnType("TEXT");
b.Property<int?>("PollId")
.HasColumnType("INTEGER");

View file

@ -50,6 +50,8 @@ namespace Lieb.Migrations
PollId = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Question = table.Column<string>(type: "TEXT", nullable: false),
AnswerType = table.Column<int>(type: "INTEGER", nullable: false),
AllowCustomAnswer = table.Column<bool>(type: "INTEGER", nullable: false),
RaidId = table.Column<int>(type: "INTEGER", nullable: true)
},
constraints: table =>
@ -64,6 +66,7 @@ namespace Lieb.Migrations
PollAnswerId = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
PollOptionId = table.Column<int>(type: "INTEGER", nullable: true),
Answer = table.Column<string>(type: "TEXT", nullable: false),
UserId = table.Column<ulong>(type: "INTEGER", nullable: false),
PollId = table.Column<int>(type: "INTEGER", nullable: true)
},

View file

@ -501,6 +501,12 @@ namespace Lieb.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<bool>("AllowCustomAnswer")
.HasColumnType("INTEGER");
b.Property<int>("AnswerType")
.HasColumnType("INTEGER");
b.Property<string>("Question")
.IsRequired()
.HasColumnType("TEXT");
@ -519,6 +525,10 @@ namespace Lieb.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Answer")
.IsRequired()
.HasColumnType("TEXT");
b.Property<int?>("PollId")
.HasColumnType("INTEGER");