summaryrefslogtreecommitdiff
path: root/db/schema/vendors.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-29 22:58:24 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-29 22:58:24 +0900
commit12af09245b38da8cc3fdb851ebb03bc0de45c8be (patch)
tree9cf4b0db3c32f23a243b63b11665392d0c0e966d /db/schema/vendors.ts
parenteea317cb775587d002e7a97d62220e5c8f37066d (diff)
(김준회) 미사용 스키마 코드 제거, 미사용 페이지 제거
Diffstat (limited to 'db/schema/vendors.ts')
-rw-r--r--db/schema/vendors.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/db/schema/vendors.ts b/db/schema/vendors.ts
index d587d441..c194cf61 100644
--- a/db/schema/vendors.ts
+++ b/db/schema/vendors.ts
@@ -114,8 +114,7 @@ export const vendorPossibleItems = pgTable("vendor_possible_items", {
vendorId: integer("vendor_id").notNull().references(() => vendors.id),
// itemId: integer("item_id"), // 별도 item 테이블 연동시
itemCode: varchar("item_code", { length: 100 })
- .notNull()
- .references(() => items.itemCode, { onDelete: "cascade" }),
+ .notNull(),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at").defaultNow().notNull(),
});