Archived
Private
Public Access
1
0

Initial commit

This commit is contained in:
2022-09-04 12:03:44 +02:00
commit 15f48d259f
91 changed files with 22716 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using System;
namespace Backend.Entitys;
public class Permission {
public int Id { get; set; }
public Guid UserId { get; set; }
public string PermissionKey { get; set; }
}
public class PermissionGroup {
public string Permission { get; set; }
public string Name { get; set; }
public string[] Permissions { get; set; }
public string[] Inherits { get; set; }
}

20
Backend/Entitys/Tokens.cs Normal file
View File

@@ -0,0 +1,20 @@
using System;
namespace Backend.Entitys;
public class Tokens {
public AccessToken AccessToken { get; set; }
public RefreshToken RefreshToken { get; set; }
}
public class RefreshToken {
public Guid Id { get; set; }
public Guid UserId { get; set; }
public DateTime ExpirationDate { get; set; }
}
public class AccessToken {
public Guid Id { get; set; }
public Guid RefreshTokenId { get; set; }
public DateTime ExpirationDate { get; set; }
}

21
Backend/Entitys/User.cs Normal file
View File

@@ -0,0 +1,21 @@
using System;
namespace Backend.Entitys;
public class User : UserEditor {
public Guid Id { get; set; }
public DateTime Created { get; set; }
}
public class UserLogin {
public string UsernameOrEmail { get; set; }
public string Password { get; set; }
}
public class UserEditor {
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string Username { get; set; }
public string Password { get; set; }
}