update pharmacy info
This commit is contained in:
@ -5,7 +5,10 @@ import {
|
||||
CreateDateColumn,
|
||||
UpdateDateColumn,
|
||||
DeleteDateColumn,
|
||||
ManyToOne,
|
||||
JoinColumn,
|
||||
} from "typeorm";
|
||||
import { Room } from "../room";
|
||||
|
||||
@Entity("pharmacy_info", { schema: "pharmacy" })
|
||||
export class PharmacyInfo {
|
||||
@ -36,9 +39,9 @@ export class PharmacyInfo {
|
||||
@Column({ type: "text", nullable: true })
|
||||
phone?: string;
|
||||
|
||||
@Column({ type: "uuid", nullable: true })
|
||||
default_room_id?: string;
|
||||
// FK ke room (where department = 'pharmacy')
|
||||
@ManyToOne(() => Room, { nullable: true })
|
||||
@JoinColumn({ name: "default_room_id" })
|
||||
default_room?: Room;
|
||||
|
||||
@CreateDateColumn()
|
||||
created_at!: Date;
|
||||
|
||||
Reference in New Issue
Block a user