planning verificator
This commit is contained in:
40
src/entity/pharmacy/planning_verificator.ts
Normal file
40
src/entity/pharmacy/planning_verificator.ts
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
import {
|
||||||
|
Entity,
|
||||||
|
PrimaryGeneratedColumn,
|
||||||
|
ManyToOne,
|
||||||
|
JoinColumn,
|
||||||
|
Column,
|
||||||
|
CreateDateColumn,
|
||||||
|
UpdateDateColumn,
|
||||||
|
DeleteDateColumn,
|
||||||
|
} from "typeorm";
|
||||||
|
import { User } from "../users";
|
||||||
|
|
||||||
|
@Entity("planning_verificator", { schema: "pharmacy" })
|
||||||
|
export class PlanningVerificator {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id!: string;
|
||||||
|
|
||||||
|
// Room asal
|
||||||
|
@ManyToOne(() => User, { nullable: false })
|
||||||
|
@JoinColumn({ name: "user_id" })
|
||||||
|
user!: User;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
@ -18,3 +18,4 @@ export * from "../entity/pharmacy/pharmacy_info";
|
|||||||
export * from "../entity/pharmacy/item_price";
|
export * from "../entity/pharmacy/item_price";
|
||||||
export * from "../entity/pharmacy/selling_price_percentage";
|
export * from "../entity/pharmacy/selling_price_percentage";
|
||||||
export * from "../entity/pharmacy/initial_stock";
|
export * from "../entity/pharmacy/initial_stock";
|
||||||
|
export * from "../entity/pharmacy/planning_verificator";
|
||||||
|
|||||||
Reference in New Issue
Block a user