UNPKG

@brontosaurus/db

Version:
19 lines (18 loc) 574 B
import { ObjectID } from "bson"; export declare enum INTERNAL_USER_GROUP { SUPER_ADMIN = "BRONTOSAURUS_SUPER_ADMIN", SELF_CONTROL = "BRONTOSAURUS_SELF_CONTROL", ORGANIZATION_CONTROL = "BRONTOSAURUS_ORGANIZATION_CONTROL", GROUP_MODIFY = "BRONTOSAURUS_GROUP_MODIFY" } export interface IGroupConfig { readonly anchor: string; readonly name: string; description?: string; } export interface IGroup extends IGroupConfig { decorators: ObjectID[]; active: boolean; readonly createdAt: Date; readonly updatedAt: Date; }