2024-09-26 00:47:08 +01:00
|
|
|
import { UserLevel } from "../enums/UserLevel";
|
|
|
|
|
2024-04-18 23:18:49 +01:00
|
|
|
export default class User {
|
2024-04-21 15:35:47 +01:00
|
|
|
public Id:number;
|
2024-09-26 00:47:08 +01:00
|
|
|
public UserLevel:UserLevel;
|
|
|
|
public get UserLevelString() {
|
|
|
|
return UserLevel[this.UserLevel];
|
|
|
|
}
|
2024-04-21 15:35:47 +01:00
|
|
|
public Username:string;
|
|
|
|
public PasswordSalt:string;
|
|
|
|
public PasswordHash:string;
|
2024-04-25 02:37:37 +01:00
|
|
|
public APIKey:string;
|
2024-10-03 00:32:38 +01:00
|
|
|
public HasUsedClient:boolean;
|
2024-04-21 15:35:47 +01:00
|
|
|
public CreatedByUserId:number;
|
|
|
|
public CreatedDatetime:Date;
|
2024-04-22 02:01:14 +01:00
|
|
|
public LastModifiedByUserId?:number;
|
|
|
|
public LastModifiedDatetime?:Date;
|
|
|
|
public DeletedByUserId?:number;
|
|
|
|
public DeletedDatetime?:Date;
|
2024-04-21 15:35:47 +01:00
|
|
|
public IsDeleted:boolean;
|
2024-04-18 23:18:49 +01:00
|
|
|
|
2024-10-03 00:32:38 +01:00
|
|
|
public constructor() {
|
|
|
|
this.Id = Number.MIN_VALUE;
|
|
|
|
this.UserLevel = UserLevel.Unknown;
|
|
|
|
this.Username = "";
|
|
|
|
this.PasswordHash = "";
|
|
|
|
this.PasswordSalt = "";
|
|
|
|
this.APIKey = "";
|
|
|
|
this.HasUsedClient = false;
|
|
|
|
this.CreatedByUserId = Number.MIN_VALUE;
|
|
|
|
this.CreatedDatetime = new Date(0);
|
|
|
|
this.IsDeleted = false;
|
2024-04-18 23:18:49 +01:00
|
|
|
}
|
|
|
|
}
|