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

@ -1,11 +1,18 @@
namespace Lieb.Models.Poll
{
public enum AnswerType
{
Buttons = 1,
Dropdown = 2
}
public class Poll
{
public int PollId { get; set; }
public string Question { get; set; }
public ICollection<PollOption> Options { get; set; } = new List<PollOption>();
public ICollection<PollAnswer> Answers { get; set; } = new List<PollAnswer>();
public AnswerType AnswerType {get; set;}
public bool AllowCustomAnswer {get; set;} = false;
public int? RaidId { get; set; }
}

View file

@ -6,6 +6,8 @@
public int? PollOptionId { get; set; }
public string Answer { get; set; } = string.Empty;
public ulong UserId { get; set; }
}
}