Initial commit
This commit is contained in:
16
Backend/Entitys/Permission.cs
Normal file
16
Backend/Entitys/Permission.cs
Normal 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
20
Backend/Entitys/Tokens.cs
Normal 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
21
Backend/Entitys/User.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user