diff options
| author | joonhoekim <26rote@gmail.com> | 2025-03-25 15:55:45 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-03-25 15:55:45 +0900 |
| commit | 1a2241c40e10193c5ff7008a7b7b36cc1d855d96 (patch) | |
| tree | 8a5587f10ca55b162d7e3254cb088b323a34c41b /types/user.d.ts | |
initial commit
Diffstat (limited to 'types/user.d.ts')
| -rw-r--r-- | types/user.d.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/types/user.d.ts b/types/user.d.ts new file mode 100644 index 00000000..61be4630 --- /dev/null +++ b/types/user.d.ts @@ -0,0 +1,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 시 가져왔다면 +} + + |
