From 41090fb418aead677bb610213df51686d23c8466 Mon Sep 17 00:00:00 2001 From: avicenan Date: Mon, 8 Jun 2026 20:11:22 +0900 Subject: [PATCH] feat(room): add room number column in room as plain string --- src/entity/room.ts | 6 ++++++ src/entity/room_number.ts | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) 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;