fix(room): medical forms join table
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user