update pharmacy info
This commit is contained in:
@ -9,6 +9,10 @@ import {
|
|||||||
JoinColumn,
|
JoinColumn,
|
||||||
} from "typeorm";
|
} from "typeorm";
|
||||||
import { Room } from "../room";
|
import { Room } from "../room";
|
||||||
|
import { Munisipo } from "../munisipo";
|
||||||
|
import { Administrativu } from "../administrativu";
|
||||||
|
import { Suco } from "../suco";
|
||||||
|
import { Aldeia } from "../aldeia";
|
||||||
|
|
||||||
@Entity("pharmacy_info", { schema: "pharmacy" })
|
@Entity("pharmacy_info", { schema: "pharmacy" })
|
||||||
export class PharmacyInfo {
|
export class PharmacyInfo {
|
||||||
@ -24,17 +28,21 @@ export class PharmacyInfo {
|
|||||||
@Column({ type: "text", nullable: false })
|
@Column({ type: "text", nullable: false })
|
||||||
address!: string;
|
address!: string;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@ManyToOne(() => Munisipo, { nullable: true })
|
||||||
munisipiu?: string;
|
@JoinColumn({ name: "munisipiu_id" })
|
||||||
|
munisipiu?: Munisipo;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@ManyToOne(() => Administrativu, { nullable: true })
|
||||||
postu_admin?: string;
|
@JoinColumn({ name: "postu_admin_id" })
|
||||||
|
postu_admin?: Administrativu;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@ManyToOne(() => Suco, { nullable: true })
|
||||||
suco?: string;
|
@JoinColumn({ name: "suco_id" })
|
||||||
|
suco?: Suco;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@ManyToOne(() => Aldeia, { nullable: true })
|
||||||
aldeia?: string;
|
@JoinColumn({ name: "aldeia_id" })
|
||||||
|
aldeia?: Aldeia;
|
||||||
|
|
||||||
@Column({ type: "text", nullable: true })
|
@Column({ type: "text", nullable: true })
|
||||||
phone?: string;
|
phone?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user