mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
18 lines
483 B
C#
18 lines
483 B
C#
using NadekoBot.Common.Collections;
|
|
|
|
namespace NadekoBot.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; }
|
|
} |