From 8afb0fc6c2247212dc27bfff7d9b73b840783f6c Mon Sep 17 00:00:00 2001 From: avicenan Date: Tue, 19 May 2026 14:33:46 +0900 Subject: [PATCH] fix(room): medical forms join table --- src/entity/room.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/entity/room.ts b/src/entity/room.ts index 04cbfc6..1352b2a 100644 --- a/src/entity/room.ts +++ b/src/entity/room.ts @@ -70,7 +70,11 @@ export class Room { services: Service[]; @ManyToMany(() => MedicalForm, { onDelete: "CASCADE" }) - @JoinTable() + @JoinTable({ + name: "room_medical_forms", + joinColumn: { name: "room_id" }, + inverseJoinColumn: { name: "medical_form_id" }, + }) medical_forms: MedicalForm[]; @CreateDateColumn()