2022-07-18 23:33:56 +12:00
|
|
|
import { Document } from "../document"
|
2022-08-26 06:41:47 +12:00
|
|
|
|
2022-07-18 23:33:56 +12:00
|
|
|
export interface UserGroup extends Document {
|
|
|
|
name: string
|
|
|
|
icon: string
|
|
|
|
color: string
|
2022-09-23 00:55:52 +12:00
|
|
|
users?: GroupUser[]
|
|
|
|
roles?: UserGroupRoles
|
2022-07-18 23:33:56 +12:00
|
|
|
createdAt?: number
|
|
|
|
}
|
|
|
|
|
2022-08-26 06:41:47 +12:00
|
|
|
export interface GroupUser {
|
2022-07-27 21:20:39 +12:00
|
|
|
_id: string
|
2022-08-26 06:41:47 +12:00
|
|
|
email: string
|
2022-07-27 21:20:39 +12:00
|
|
|
}
|
2022-08-26 06:41:47 +12:00
|
|
|
|
2022-07-18 23:33:56 +12:00
|
|
|
export interface UserGroupRoles {
|
|
|
|
[key: string]: string
|
|
|
|
}
|