🎉 Added files

This commit is contained in:
2024-12-06 10:26:27 +01:00
commit 953f596db1
29 changed files with 1288 additions and 0 deletions

20
Pocos/AppUser.cs Normal file
View File

@ -0,0 +1,20 @@
public class AppUser : Raven.Identity.IdentityUser
{
public string Username { get; set; } = "";
public AuthScopes Scope { get; set; } = AuthScopes.User;
}
public enum AuthScopes
{
User,
Moderator,
Admin
}
public class ApiKey
{
public string? Id { get; set; }
public string Name { get; set; } = "";
public string Key { get; set; } = Guid.NewGuid().ToString();
public DateTime LastUse { get; set; }
}