add new entity: measurement_unit
This commit is contained in:
39
src/entity/measurement_unit.ts
Normal file
39
src/entity/measurement_unit.ts
Normal file
@ -0,0 +1,39 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from 'typeorm';
|
||||
|
||||
import { Status } from '../types/status';
|
||||
|
||||
@Entity('measurement_units')
|
||||
export class MeasurementUnit {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 256,
|
||||
})
|
||||
unit: 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;
|
||||
}
|
||||
@ -20,6 +20,7 @@ export * from "../entity/service_fare"
|
||||
export * from "../entity/service_package"
|
||||
export * from "../entity/department"
|
||||
export * from "../entity/doctor_schedule"
|
||||
export * from "../entity/measurement_unit"
|
||||
|
||||
export * from "../types/action";
|
||||
export * from "../types/error";
|
||||
|
||||
Reference in New Issue
Block a user