From d9f44933c03852bb611f5acafc65abfa714c6171 Mon Sep 17 00:00:00 2001 From: hyeonsu Date: Thu, 18 Sep 2025 19:11:05 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B1=EC=97=94=EB=93=9C=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend-node/prisma/schema.prisma | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend-node/prisma/schema.prisma b/backend-node/prisma/schema.prisma index 409f019a..6fe72d5e 100644 --- a/backend-node/prisma/schema.prisma +++ b/backend-node/prisma/schema.prisma @@ -3968,6 +3968,9 @@ model table_relationships { updated_date DateTime? @db.Timestamp(6) updated_by String? @db.VarChar(50) diagram_id Int? + + // 역방향 관계 + bridges data_relationship_bridge[] } model data_relationship_bridge { @@ -3990,6 +3993,9 @@ model data_relationship_bridge { to_key_value String? @db.VarChar(500) to_record_id String? @db.VarChar(100) + // 관계 정의 + relationship table_relationships? @relation(fields: [relationship_id], references: [relationship_id]) + @@index([connection_type], map: "idx_data_bridge_connection_type") @@index([company_code, is_active], map: "idx_data_bridge_company_active") }