user.ts 374 B

12345678910111213141516171819202122
  1. import { Ref } from './common';
  2. export type IUser = {
  3. name: string;
  4. username: string;
  5. imageUrlCached: string;
  6. admin: boolean;
  7. }
  8. export type IUserGroupRelation = {
  9. relatedGroup: IUserGroup,
  10. relatedUser: IUser,
  11. createdAt: Date,
  12. }
  13. export type IUserGroup = {
  14. _id: string;
  15. name: string;
  16. createdAt: Date;
  17. description: string;
  18. parent: Ref<IUserGroup>;
  19. }