2022-03-19 07:00:15 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace BirthdayBot.Data;
|
|
|
|
|
|
2022-11-23 08:02:20 +00:00
|
|
|
|
[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!;
|
|
|
|
|
}
|