Add project files
This commit is contained in:
parent
4dafed3553
commit
8cf01ead74
40 changed files with 3967 additions and 0 deletions
18
StalwartSimpleLoginMiddleware/Entities/ApiKey.cs
Normal file
18
StalwartSimpleLoginMiddleware/Entities/ApiKey.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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; }
|
||||
}
|
||||
14
StalwartSimpleLoginMiddleware/Entities/Member.cs
Normal file
14
StalwartSimpleLoginMiddleware/Entities/Member.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace StalwartSimpleLoginMiddleware.Entities;
|
||||
|
||||
public class Member
|
||||
{
|
||||
[Required] [StringLength(88)] public string ApiKeyId { get; set; }
|
||||
|
||||
[Required] [StringLength(254)] public string Email { get; set; }
|
||||
|
||||
public bool IsExternal { get; set; }
|
||||
|
||||
public virtual ApiKey ApiKey { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue