main project split, authpassword endpoint created
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace TimetableDesigner.Backend.Services.Authentication.Database.Model;
|
||||
|
||||
public class Account
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Email { get; set; } = null!;
|
||||
public byte[] Password { get; set; } = null!;
|
||||
public string PasswordSalt { get; set; } = null!;
|
||||
public uint Version { get; set; }
|
||||
|
||||
public virtual IEnumerable<RefreshToken> RefreshTokens { get; set; } = new List<RefreshToken>();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace TimetableDesigner.Backend.Services.Authentication.Database.Model;
|
||||
|
||||
public class RefreshToken
|
||||
{
|
||||
public Guid Token { get; set; }
|
||||
public long AccountId { get; set; }
|
||||
public DateTimeOffset ExpirationDate { get; set; }
|
||||
public bool IsExtendable { get; set; }
|
||||
public uint Version { get; set; }
|
||||
|
||||
public virtual Account Account { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user