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" }) @JoinColumn({ name: "factory_id" })
factory!: Factory; factory!: Factory;
@ManyToOne(() => Unit, { nullable: false }) // @ManyToOne(() => Unit, { nullable: false })
@JoinColumn({ name: "unit_id" }) // @JoinColumn({ name: "unit_id" })
unit!: Unit; // unit!: Unit;
@Column({
type: "text",
nullable: true,
})
smallunit?: string;
@Column({
type: "text",
nullable: true,
})
largeunit?: string;
@Column({ @Column({
type: "int", type: "int",