This commit is contained in:
wayanrivan
2026-04-16 11:46:38 +07:00
parent 291bdecb82
commit 669f498fe6

View File

@ -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",