feat(room): add room number column in room as plain string

This commit is contained in:
avicenan
2026-06-08 20:11:22 +09:00
parent 7e46d57243
commit 41090fb418
2 changed files with 6 additions and 4 deletions

View File

@ -23,6 +23,12 @@ export class Room {
})
room: string;
@Column({
nullable: true,
length: 128,
})
number: string;
@Column({
nullable: false,
length: 128,

View File

@ -14,10 +14,6 @@ export class RoomNumber {
})
number: string;
@ManyToOne(() => Department, { nullable: false, onDelete: "NO ACTION" })
@JoinColumn()
department: Department;
@CreateDateColumn()
created_at: Date;