summaryrefslogtreecommitdiff
path: root/db/schema/users.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-09-03 09:22:56 +0000
committerjoonhoekim <26rote@gmail.com>2025-09-03 09:22:56 +0000
commitbfe354f7633f62350e61eb784cbf1926079339d1 (patch)
tree691ad115b89ee1b7e5fb2dab165c85ea325cf920 /db/schema/users.ts
parentc5fc7195505d82c60fc9dffc3744782b91d7ebb7 (diff)
(김준회) 구매그룹코드를 users 테이블의 userCode 컬럼에 업데이트하도록 cronjob 등록
Diffstat (limited to 'db/schema/users.ts')
-rw-r--r--db/schema/users.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/db/schema/users.ts b/db/schema/users.ts
index 0e8809b7..f01db8db 100644
--- a/db/schema/users.ts
+++ b/db/schema/users.ts
@@ -67,6 +67,9 @@ export const users = pgTable("users", {
isDeletedOnNonSap: boolean("is_deleted_on_non_sap"), // 퇴직여부 (SHI-API DEL_YN (Y/N))
isRegularEmployee: boolean("is_regular_employee"), // 정직원여부 (SHI-API REGL_ORORD_GB (S/N))
+ // 사용자 코드 (구매그룹코드)
+ userCode: varchar("user_code", { length: 50 }),
+
}, (table) => {
return {
emailIdx: uniqueIndex("users_email_idx").on(table.email),