update
This commit is contained in:
@ -7,6 +7,7 @@ import {
|
||||
DeleteDateColumn,
|
||||
ManyToOne,
|
||||
JoinColumn,
|
||||
OneToMany
|
||||
} from "typeorm";
|
||||
|
||||
import { GenericName } from "./generic_name";
|
||||
@ -17,12 +18,16 @@ import { ItemClassDetail } from "./item_class_detail";
|
||||
import { ItemStatus } from "./item_status";
|
||||
import { Factory } from "./factory";
|
||||
import { Unit } from "./unit";
|
||||
import { InitialStock } from "./initial_stock";
|
||||
|
||||
@Entity("pharmacy_item_master", { schema: "pharmacy" })
|
||||
export class ItemMaster {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@OneToMany(() => InitialStock, (initialStock) => initialStock.itemmaster)
|
||||
initialstocks: InitialStock[];
|
||||
|
||||
@Column({
|
||||
type: "text",
|
||||
nullable: false,
|
||||
|
||||
Reference in New Issue
Block a user