diff --git a/src/entity/room.ts b/src/entity/room.ts index feaf580..2e8aaac 100644 --- a/src/entity/room.ts +++ b/src/entity/room.ts @@ -23,6 +23,12 @@ export class Room { }) room: string; + @Column({ + nullable: true, + length: 128, + }) + number: string; + @Column({ nullable: false, length: 128, diff --git a/src/entity/room_number.ts b/src/entity/room_number.ts index 7f6059e..efcdcf8 100644 --- a/src/entity/room_number.ts +++ b/src/entity/room_number.ts @@ -14,10 +14,6 @@ export class RoomNumber { }) number: string; - @ManyToOne(() => Department, { nullable: false, onDelete: "NO ACTION" }) - @JoinColumn() - department: Department; - @CreateDateColumn() created_at: Date;