stalwart-simplelogin-middle.../StalwartSimpleLoginMiddleware/Entities/ApiKey.cs
2025-05-10 05:25:22 -04:00

18 lines
No EOL
426 B
C#

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<Member> Members { get; set; }
}