added napiszar, using MsEntitiFramework, addreactionrole command working just with link
This commit is contained in:
parent
1695770f9f
commit
d508bffac1
9 changed files with 318 additions and 94 deletions
42
helpers/dbmodels.cs
Normal file
42
helpers/dbmodels.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace T3k3rg0.Helpers.Models
|
||||
{
|
||||
[Table("joslatok")]
|
||||
public class Joslat
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column("szoveg")]
|
||||
public string Szoveg { get; set; }
|
||||
}
|
||||
|
||||
[Table("daily_usage")]
|
||||
public class DailyUsage
|
||||
{
|
||||
[Key]
|
||||
[Column("user_id")]
|
||||
public long UserId { get; set; }
|
||||
|
||||
[Column("last_used")]
|
||||
public DateTime LastUsed { get; set; }
|
||||
}
|
||||
|
||||
[Table("reaction_roles")]
|
||||
public class ReactionRole
|
||||
{
|
||||
[Key, Column("message_id", Order = 0)]
|
||||
public ulong MessageId { get; set; }
|
||||
|
||||
[Key, Column("emoji", Order = 1)]
|
||||
public string Emoji { get; set; }
|
||||
|
||||
[Column("role_id")]
|
||||
public ulong RoleId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue