Add:
- context/ - hook/ - types/ ### No Issue
This commit is contained in:
17
types/User.ts
Normal file
17
types/User.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export type TUser = "User" | "Admin" | "Super Admin";
|
||||
|
||||
export interface IMasterUserRole {
|
||||
id: string;
|
||||
name: TUser;
|
||||
}
|
||||
|
||||
export interface IUser {
|
||||
id: string;
|
||||
username: string;
|
||||
nomor: string;
|
||||
active: boolean;
|
||||
createdAt: string | null;
|
||||
updatedAt: string | null;
|
||||
masterUserRoleId: string;
|
||||
MasterUserRole: IMasterUserRole;
|
||||
}
|
||||
Reference in New Issue
Block a user