mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 08:56:33 +00:00
renmove ResourceEnum, use filename only
add ToHash for encryption Key
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace Azaion.Common.Entities;
|
||||
|
||||
public class HardwareInfo
|
||||
{
|
||||
public string CPU { get; set; } = null!;
|
||||
public string GPU { get; set; } = null!;
|
||||
public string MacAddress { get; set; } = null!;
|
||||
public string Memory { get; set; } = null!;
|
||||
|
||||
public string? Hash { get; set; } = null!;
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace Azaion.Common.Entities;
|
||||
|
||||
public enum ResourceEnum
|
||||
{
|
||||
None = 0,
|
||||
AnnotatorDll = 10,
|
||||
AIModelRKNN = 20,
|
||||
AIModelONNX = 30,
|
||||
}
|
||||
@@ -5,6 +5,7 @@ public class User
|
||||
public Guid Id { get; set; }
|
||||
public string Email { get; set; } = null!;
|
||||
public string PasswordHash { get; set; } = null!;
|
||||
public string HardwareId { get; set; } = null!;
|
||||
public string? Hardware { get; set; }
|
||||
public string? HardwareHash { get; set; }
|
||||
public RoleEnum Role { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user