add membership and permissions
This commit is contained in:
17
src/models/user.ts
Normal file
17
src/models/user.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export interface Permission {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface Role {
|
||||
id: string;
|
||||
name: string;
|
||||
permissions: Permission[];
|
||||
}
|
||||
|
||||
export interface User {
|
||||
id: string;
|
||||
username: string;
|
||||
role_id: string;
|
||||
role: Role;
|
||||
}
|
||||
Reference in New Issue
Block a user