summaryrefslogtreecommitdiff
path: root/types/user.d.ts
blob: 61be4630c1bc852c6432acc8a679f011ea07063f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export interface User {
  id: number;
  name: string;
  email: string;
  createdAt: Date;
  imageUrl: string;
}


export interface Otp {
  email: string;
  code: string;
  otpToken: string;
  createdAt: Date;
  otpExpires: Date;
}

export interface UserWithCompanyAndRoles {
  userId: number;
  userName: string;
  userEmail: string;
  companyId: number | null;
  companyName: string | null;
  roles: string[];
  createdAt?: Date; // 조인 SELECT 시 가져왔다면
}