proflores-db-model 0.2.22 → 0.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,7 @@ import { InventoryMovement } from "./InventoryMovement";
|
|
|
9
9
|
import { PlantTechnicalSheet } from "../models/technical-sheet/PlantTechnicalSheet";
|
|
10
10
|
export declare class Inventory implements ObjectLiteral {
|
|
11
11
|
idInventory: number;
|
|
12
|
-
product
|
|
12
|
+
product?: Product | null;
|
|
13
13
|
container: ContainerType | null;
|
|
14
14
|
plantTechnicalSheet?: PlantTechnicalSheet;
|
|
15
15
|
quantity: number;
|
|
@@ -9,6 +9,6 @@ export declare class Product implements ObjectLiteral {
|
|
|
9
9
|
description: string;
|
|
10
10
|
categoryForPlantType?: CategoryForPlantType | null;
|
|
11
11
|
images: ProductImage[] | null;
|
|
12
|
-
inventories
|
|
12
|
+
inventories?: Inventory[] | null;
|
|
13
13
|
isActive: boolean;
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ export class Inventory implements ObjectLiteral {
|
|
|
23
23
|
|
|
24
24
|
@ManyToOne(() => Product, { nullable: false })
|
|
25
25
|
@JoinColumn({ name: "idProduct" })
|
|
26
|
-
product
|
|
26
|
+
product?: Product | null;
|
|
27
27
|
|
|
28
28
|
@ManyToOne(() => ContainerType, { nullable: false })
|
|
29
29
|
@JoinColumn({ name: "containerId" })
|
package/src/entities/Products.ts
CHANGED
|
@@ -35,7 +35,7 @@ export class Product implements ObjectLiteral {
|
|
|
35
35
|
images!: ProductImage[] | null;
|
|
36
36
|
|
|
37
37
|
@OneToMany(() => Inventory, (inventory) => inventory.product)
|
|
38
|
-
inventories
|
|
38
|
+
inventories?: Inventory[] | null;
|
|
39
39
|
|
|
40
40
|
@Column("boolean", { default: true })
|
|
41
41
|
isActive!: boolean;
|