server-master/srcs/_plugins/Plugin.DB.EF/Entities/Account/AccountBanEntity.cs
2026-02-10 18:21:30 +01:00

32 lines
No EOL
848 B
C#

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; }
}
}