feat(master): add new master of main diseases
This commit is contained in:
42
src/entity/main_disease.ts
Normal file
42
src/entity/main_disease.ts
Normal file
@ -0,0 +1,42 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
|
||||
@Entity("main_diseases")
|
||||
export class MainDisease {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 128,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
@ -58,6 +58,7 @@ export * from "../entity/notification";
|
||||
export * from "../entity/counter";
|
||||
export * from "../entity/room_number";
|
||||
export * from "../entity/medical_form";
|
||||
export * from "../entity/main_disease";
|
||||
|
||||
export * from "../types/public";
|
||||
export * from "../types/action";
|
||||
|
||||
Reference in New Issue
Block a user