test-entity-library-asm 2.1.1 → 2.1.2

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.
@@ -26,6 +26,7 @@ var BusinessTypeProduct = /** @class */ (function () {
26
26
  (0, typeorm_1.ManyToOne)(function () { return BusinessType_1.BusinessType; }, function (businessType) { return businessType.business_types_product; }, {
27
27
  onDelete: 'RESTRICT',
28
28
  onUpdate: 'NO ACTION',
29
+ nullable: true,
29
30
  }),
30
31
  (0, typeorm_1.JoinColumn)({ name: 'business_type' }),
31
32
  __metadata("design:type", BusinessType_1.BusinessType)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,6 +30,9 @@ export class BusinessType {
30
30
  })
31
31
  status: number
32
32
 
33
- @OneToMany(() => BusinessTypeProduct, (businessTypeProduct) => businessTypeProduct.business_type)
33
+ @OneToMany(
34
+ () => BusinessTypeProduct,
35
+ (businessTypeProduct) => businessTypeProduct.business_type
36
+ )
34
37
  business_types_product: BusinessTypeProduct[]
35
38
  }
@@ -26,6 +26,7 @@ export class BusinessTypeProduct {
26
26
  {
27
27
  onDelete: 'RESTRICT',
28
28
  onUpdate: 'NO ACTION',
29
+ nullable: true,
29
30
  }
30
31
  )
31
32
  @JoinColumn({ name: 'business_type' })