User
Model​
- Typescript
- Python
watchmen-web-client/src/services/data/tuples/user-group-types.ts
export type UserGroupId = string;
export interface UserGroupHolder extends TupleHolder {
userGroupIds: Array<UserGroupId>;
}
watchmen-web-client/src/services/data/tuples/user-types.ts
export enum UserRole {
CONSOLE = 'console',
ADMIN = 'admin',
SUPER_ADMIN = 'superadmin'
}
export type UserId = string;
export interface User extends Tuple, UserGroupHolder {
userId: UserId;
name: string;
role: UserRole;
nickName: string;
password: string;
// only works on super admin login. otherwise it is undefined
tenantId?: TenantId;
}
export interface UserHolder extends TupleHolder {
userIds: Array<UserId>;
}
(under construction)