tt-entities 0.0.46 → 0.0.47

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.
@@ -8,6 +8,7 @@ import {
8
8
  } from 'sequelize-typescript';
9
9
  import { RunSheet } from './run-sheet.entity';
10
10
  import { Order } from './order.entity';
11
+ import { Inventory } from './inventory.entity';
11
12
 
12
13
  export enum RunSheetOrderStatus {
13
14
  ASSIGNED = 'assigned', // Order added to runsheet, marked shipped
@@ -40,6 +41,10 @@ export class RunSheetOrder extends Model {
40
41
  @Column({ allowNull: true })
41
42
  declare orderNumber?: string;
42
43
 
44
+ @ForeignKey(() => Inventory)
45
+ @Column({ allowNull: true })
46
+ declare inventoryId?: number;
47
+
43
48
  // ── Associations ─────────────────────────────────────────────────────────────
44
49
 
45
50
  @BelongsTo(() => RunSheet)
@@ -47,4 +52,7 @@ export class RunSheetOrder extends Model {
47
52
 
48
53
  @BelongsTo(() => Order)
49
54
  declare order: Order;
55
+
56
+ @BelongsTo(() => Inventory)
57
+ declare inventory?: Inventory;
50
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tt-entities",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "description": "Tatayab entities library",
5
5
  "main": "dist/libs/tatayab-entities-library/index.js",
6
6
  "types": "dist/libs/tatayab-entities-library/index.d.ts",