test-entity-library-asm 2.7.17 → 2.7.18

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.
@@ -65,6 +65,7 @@ var ServicePlan = /** @class */ (function () {
65
65
  onDelete: 'CASCADE',
66
66
  onUpdate: 'CASCADE',
67
67
  }),
68
+ (0, typeorm_1.JoinColumn)({ name: 'assigned_discount' }),
68
69
  __metadata("design:type", Object)
69
70
  ], ServicePlan.prototype, "discount", void 0);
70
71
  ServicePlan = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.7.17",
3
+ "version": "2.7.18",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,6 +4,7 @@ import {
4
4
  Column,
5
5
  Unique,
6
6
  ManyToOne,
7
+ JoinColumn,
7
8
  } from 'typeorm'
8
9
  import { DiscountCodeCompany } from './DiscountCodeCompany' // Asegúrate de ajustar el path al modelo correspondiente
9
10
  import { jsonTransformer } from '../transformers/jsonTransformer'
@@ -48,5 +49,6 @@ export class ServicePlan {
48
49
  onDelete: 'CASCADE',
49
50
  onUpdate: 'CASCADE',
50
51
  })
51
- discount: DiscountCodeCompany | null
52
+ @JoinColumn({ name: 'assigned_discount' })
53
+ discount: DiscountCodeCompany | null;
52
54
  }