summaryrefslogtreecommitdiff
path: root/db/schema/contract.ts
diff options
context:
space:
mode:
Diffstat (limited to 'db/schema/contract.ts')
-rw-r--r--db/schema/contract.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/schema/contract.ts b/db/schema/contract.ts
index 4790d717..34f49c96 100644
--- a/db/schema/contract.ts
+++ b/db/schema/contract.ts
@@ -21,8 +21,8 @@ export const contracts = pgTable("contracts", {
id: integer("id").primaryKey().generatedAlwaysAsIdentity(),
// 프로젝트와 협력업체 참조
+ // .notNull() 제외(0912 구매 프로젝트 id 없는 계약 case 존재-최겸)
projectId: integer("project_id")
- .notNull()
.references(() => projects.id, { onDelete: "cascade" }),
vendorId: integer("vendor_id")