using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Entities { /// /// define an entity for an administrator /// properties : /// Id : identifier in the database /// Username : username for a administrator /// HashedPassword : hash of the password of the administrator /// [Table("Administrator")] public class AdministratorEntity { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public uint Id { get; set; } [Required] public string Username { get; set; } = null!; [Required] public string HashedPassword { get; set; } = null!; } }