user-info.ts 335 B

123456789
  1. export const UserType = { admin: 'admin', general: 'general' } as const;
  2. export type UserType = typeof UserType[keyof typeof UserType];
  3. export interface IUserInfo {
  4. userIdHash: string // userId hash generated by using appSiteUrl as salt
  5. type: UserType
  6. userCreatedAt: Date // createdAt of user that answered the questionnaire
  7. }