using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using PhoenixLib.DAL.EFCore.PGSQL; using Plugin.Database.DB; namespace Plugin.Database.Entities.Account { [Table("accounts_bans", Schema = DatabaseSchemas.ACCOUNTS)] public class AccountBanEntity : ILongEntity { public long AccountId { get; set; } public string JudgeName { get; set; } public string TargetName { get; set; } public DateTime Start { get; set; } public DateTime? End { get; set; } public string Reason { get; set; } public string UnlockReason { get; set; } public virtual AccountEntity AccountEntity { get; set; } [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long Id { get; set; } } }