user.ts 441 B

123456789101112131415161718192021222324
  1. import { HasObjectId } from '~/interfaces/has-object-id';
  2. export type IUser = {
  3. name: string;
  4. username: string;
  5. email: string;
  6. password: string;
  7. imageUrlCached: string;
  8. admin: boolean;
  9. }
  10. export type IUserHasId = IUser & HasObjectId;
  11. export type IUserGroupRelation = {
  12. relatedGroup: IUserGroup,
  13. relatedUser: IUser,
  14. createdAt: Date,
  15. }
  16. export type IUserGroup = {
  17. userGroupId:string;
  18. name: string;
  19. createdAt: Date;
  20. }