udp
This commit is contained in:
@ -1,39 +0,0 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
|
||||||
|
|
||||||
import { Status } from "../types/status";
|
|
||||||
|
|
||||||
@Entity("polis")
|
|
||||||
export class Poli {
|
|
||||||
@PrimaryGeneratedColumn("uuid")
|
|
||||||
id: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 256,
|
|
||||||
})
|
|
||||||
poli: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 64,
|
|
||||||
})
|
|
||||||
status: Status;
|
|
||||||
|
|
||||||
@CreateDateColumn()
|
|
||||||
created_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
created_by: string;
|
|
||||||
|
|
||||||
@UpdateDateColumn({ nullable: true })
|
|
||||||
updated_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
updated_by: string;
|
|
||||||
|
|
||||||
@DeleteDateColumn({ nullable: true })
|
|
||||||
deleted_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
deleted_by: string;
|
|
||||||
}
|
|
||||||
@ -1,7 +1,6 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, ManyToOne, JoinColumn, ManyToMany } from "typeorm";
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, ManyToOne, JoinColumn, ManyToMany } from "typeorm";
|
||||||
|
|
||||||
import { Status } from "../types/status";
|
import { Status } from "../types/status";
|
||||||
import { Poli } from "./poli";
|
|
||||||
import { Department } from "./department";
|
import { Department } from "./department";
|
||||||
import { Service } from "./service";
|
import { Service } from "./service";
|
||||||
|
|
||||||
@ -28,10 +27,6 @@ export class Room {
|
|||||||
})
|
})
|
||||||
description: string;
|
description: string;
|
||||||
|
|
||||||
@ManyToOne(() => Poli, { onDelete: "RESTRICT", nullable: true })
|
|
||||||
@JoinColumn()
|
|
||||||
poli: Poli;
|
|
||||||
|
|
||||||
@ManyToOne(() => Department, { onDelete: "NO ACTION", nullable: true })
|
@ManyToOne(() => Department, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
department: Department;
|
department: Department;
|
||||||
|
|||||||
@ -12,7 +12,6 @@ export * from "../entity/application"
|
|||||||
export * from "../entity/nationality"
|
export * from "../entity/nationality"
|
||||||
export * from "../entity/diagnosis"
|
export * from "../entity/diagnosis"
|
||||||
export * from "../entity/diagnostic_procedure"
|
export * from "../entity/diagnostic_procedure"
|
||||||
export * from "../entity/poli"
|
|
||||||
export * from "../entity/room"
|
export * from "../entity/room"
|
||||||
export * from "../entity/service_type"
|
export * from "../entity/service_type"
|
||||||
export * from "../entity/service_class"
|
export * from "../entity/service_class"
|
||||||
|
|||||||
Reference in New Issue
Block a user