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()