fix(room): medical forms join table

This commit is contained in:
avicenan
2026-05-19 14:33:46 +09:00
parent b4c9752064
commit 8afb0fc6c2

View File

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