BirthdayBot/Data/BlocklistEntry.cs

18 lines
502 B
C#
Raw Normal View History

2022-03-19 07:00:15 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace BirthdayBot.Data;
[Obsolete(ApplicationCommands.ConfigModule.ObsoleteAttrReason)]
2022-03-19 07:00:15 +00:00
[Table("banned_users")]
public class BlocklistEntry {
[Key]
2022-11-23 07:19:37 +00:00
public ulong GuildId { get; set; }
2022-03-19 07:00:15 +00:00
[Key]
2022-11-23 07:19:37 +00:00
public ulong UserId { get; set; }
2022-03-19 07:00:15 +00:00
[ForeignKey(nameof(GuildConfig.GuildId))]
[InverseProperty(nameof(GuildConfig.BlockedUsers))]
public GuildConfig Guild { get; set; } = null!;
}