update
This commit is contained in:
@ -72,9 +72,21 @@ export class ItemMaster {
|
||||
@JoinColumn({ name: "factory_id" })
|
||||
factory!: Factory;
|
||||
|
||||
@ManyToOne(() => Unit, { nullable: false })
|
||||
@JoinColumn({ name: "unit_id" })
|
||||
unit!: Unit;
|
||||
// @ManyToOne(() => Unit, { nullable: false })
|
||||
// @JoinColumn({ name: "unit_id" })
|
||||
// unit!: Unit;
|
||||
|
||||
@Column({
|
||||
type: "text",
|
||||
nullable: true,
|
||||
})
|
||||
smallunit?: string;
|
||||
|
||||
@Column({
|
||||
type: "text",
|
||||
nullable: true,
|
||||
})
|
||||
largeunit?: string;
|
||||
|
||||
@Column({
|
||||
type: "int",
|
||||
|
||||
Reference in New Issue
Block a user