From 665445e0d6ed6c503dc29b5b35e332a0ff663a44 Mon Sep 17 00:00:00 2001 From: "fazri.is" Date: Fri, 17 Apr 2026 16:43:30 +0700 Subject: [PATCH] update --- src/entity/room.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/entity/room.ts b/src/entity/room.ts index d11ec8f..aa59d74 100644 --- a/src/entity/room.ts +++ b/src/entity/room.ts @@ -1,6 +1,4 @@ -import { Entity, - OneToOne, - PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, ManyToOne, JoinColumn, ManyToMany } from "typeorm"; +import { Entity, OneToOne, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, ManyToOne, JoinColumn, ManyToMany } from "typeorm"; import { Status } from "../types/status"; import { Department } from "./department"; @@ -35,13 +33,13 @@ export class Room { description: string; @Column({ - type: 'text', + type: "text", nullable: true, }) picture: string; @Column({ - type: 'text', + type: "text", nullable: true, }) location: string; @@ -54,6 +52,11 @@ export class Room { @JoinColumn() serviceclass: ServiceClass; + @Column({ + nullable: true, + }) + floor: number; + @Column({ nullable: false, length: 64,