API Profile:
Fix: - api create, get , edit Types Add: - Type-Profile ### No Issue
This commit is contained in:
16
types/Type-Profile.ts
Normal file
16
types/Type-Profile.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { IUser } from "./User";
|
||||
|
||||
export interface IProfile {
|
||||
id?: string;
|
||||
name?: string;
|
||||
email?: string;
|
||||
alamat?: string;
|
||||
jenisKelamin?: string;
|
||||
active?: boolean;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
userId?: string;
|
||||
imageId?: string | null;
|
||||
imageBackgroundId?: string | null;
|
||||
User: IUser
|
||||
}
|
||||
@@ -6,12 +6,12 @@ export interface IMasterUserRole {
|
||||
}
|
||||
|
||||
export interface IUser {
|
||||
id: string;
|
||||
username: string;
|
||||
nomor: string;
|
||||
active: boolean;
|
||||
createdAt: string | null;
|
||||
updatedAt: string | null;
|
||||
masterUserRoleId: string;
|
||||
MasterUserRole: IMasterUserRole;
|
||||
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