test-entity-library-asm 2.1.1 → 2.1.3

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)
@@ -57,11 +58,11 @@ var BusinessTypeProduct = /** @class */ (function () {
57
58
  (0, typeorm_1.JoinTable)({
58
59
  name: 'business_type_product_local',
59
60
  joinColumn: {
60
- name: 'local',
61
+ name: 'business_type_product',
61
62
  referencedColumnName: 'id',
62
63
  },
63
64
  inverseJoinColumn: {
64
- name: 'business_type_product',
65
+ name: 'local',
65
66
  referencedColumnName: 'id',
66
67
  },
67
68
  }),
@@ -157,11 +157,11 @@ var Local = /** @class */ (function () {
157
157
  (0, typeorm_1.JoinTable)({
158
158
  name: 'business_type_product_local',
159
159
  joinColumn: {
160
- name: 'business_type_product',
160
+ name: 'local',
161
161
  referencedColumnName: 'id',
162
162
  },
163
163
  inverseJoinColumn: {
164
- name: 'local',
164
+ name: 'business_type_product',
165
165
  referencedColumnName: 'id',
166
166
  },
167
167
  }),
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.3",
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' })
@@ -56,11 +57,11 @@ export class BusinessTypeProduct {
56
57
  @JoinTable({
57
58
  name: 'business_type_product_local',
58
59
  joinColumn: {
59
- name: 'local',
60
+ name: 'business_type_product',
60
61
  referencedColumnName: 'id',
61
62
  },
62
63
  inverseJoinColumn: {
63
- name: 'business_type_product',
64
+ name: 'local',
64
65
  referencedColumnName: 'id',
65
66
  },
66
67
  })
@@ -137,11 +137,11 @@ export class Local {
137
137
  @JoinTable({
138
138
  name: 'business_type_product_local',
139
139
  joinColumn: {
140
- name: 'business_type_product',
140
+ name: 'local',
141
141
  referencedColumnName: 'id',
142
142
  },
143
143
  inverseJoinColumn: {
144
- name: 'local',
144
+ name: 'business_type_product',
145
145
  referencedColumnName: 'id',
146
146
  },
147
147
  })