using System.ComponentModel.DataAnnotations; using Microsoft.EntityFrameworkCore; namespace StalwartSimpleLoginMiddleware.Entities; public class ApiKey { [Key] [StringLength(88)] [Unicode(false)] public string Key { get; set; } [Required] [StringLength(254)] public string OwnerEmail { get; set; } public bool IsAdmin { get; set; } public virtual ICollection Members { get; set; } }