17 lines
No EOL
460 B
C#
17 lines
No EOL
460 B
C#
#nullable disable
|
|
namespace EllieBot.Services.Database.Models;
|
|
|
|
public class Poll : DbEntity
|
|
{
|
|
public ulong GuildId { get; set; }
|
|
public ulong ChannelId { get; set; }
|
|
public string Question { get; set; }
|
|
public IndexedCollection<PollAnswer> Answers { get; set; }
|
|
public HashSet<PollVote> Votes { get; set; } = new();
|
|
}
|
|
|
|
public class PollAnswer : DbEntity, IIndexed
|
|
{
|
|
public int Index { get; set; }
|
|
public string Text { get; set; }
|
|
} |