Remove all dependencies on redis
This commit is contained in:
parent
2e501008df
commit
33b17b373f
11 changed files with 129 additions and 77 deletions
|
@ -18,5 +18,6 @@ namespace Geekbot.net.Database
|
|||
public DbSet<RoleSelfServiceModel> RoleSelfService { get; set; }
|
||||
public DbSet<PollModel> Polls { get; set; }
|
||||
public DbSet<CookiesModel> Cookies { get; set; }
|
||||
public DbSet<ReactionListenerModel> ReactionListeners { get; set; }
|
||||
}
|
||||
}
|
22
Geekbot.net/Database/Models/ReactionListenerModel.cs
Normal file
22
Geekbot.net/Database/Models/ReactionListenerModel.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Geekbot.net.Database.Models
|
||||
{
|
||||
public class ReactionListenerModel
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public long GuildId { get; set; }
|
||||
|
||||
[Required]
|
||||
public long MessageId { get; set; }
|
||||
|
||||
[Required]
|
||||
public long RoleId { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Reaction { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue