user.ts 199 B

12345678
  1. export type User = {
  2. id: string
  3. email: string
  4. allowedFreeTrial?: boolean
  5. features?: Record<string, boolean>
  6. }
  7. export type MongoUser = Pick<User, Exclude<keyof User, 'id'>> & { _id: string }