summaryrefslogtreecommitdiff
path: root/types/user.d.ts
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-03-26 00:37:41 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-03-26 00:37:41 +0000
commite0dfb55c5457aec489fc084c4567e791b4c65eb1 (patch)
tree68543a65d88f5afb3a0202925804103daa91bc6f /types/user.d.ts
3/25 까지의 대표님 작업사항
Diffstat (limited to 'types/user.d.ts')
-rw-r--r--types/user.d.ts28
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 시 가져왔다면
+}
+
+