Change User Model and Add poll model, port !poll but ended up disabling it
This commit is contained in:
parent
74793c8ef7
commit
9354e5f83e
13 changed files with 138 additions and 92 deletions
27
Geekbot.net/Database/Models/PollModel.cs
Normal file
27
Geekbot.net/Database/Models/PollModel.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class PollModel
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public long GuildId { get; set; }
|
||||
|
||||
[Required]
|
||||
public long ChannelId { get; set; }
|
||||
|
||||
public string Question { get; set; }
|
||||
|
||||
public long Creator { get; set; }
|
||||
|
||||
public long MessageId { get; set; }
|
||||
|
||||
public List<PollQuestionModel> Options { get; set; }
|
||||
|
||||
public bool IsFinshed { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue