test-entity-library-asm 1.4.0 → 1.4.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.
@@ -84,7 +84,7 @@ var Local = /** @class */ (function () {
84
84
  onDelete: 'NO ACTION',
85
85
  onUpdate: 'NO ACTION',
86
86
  }),
87
- (0, typeorm_1.JoinColumn)({ name: 'update_by' }),
87
+ (0, typeorm_1.JoinColumn)({ name: 'updated_by' }),
88
88
  __metadata("design:type", Partner_1.Partner)
89
89
  ], Local.prototype, "updated_by", void 0);
90
90
  __decorate([
@@ -17,6 +17,7 @@ export declare class Partner {
17
17
  address: string;
18
18
  password: string;
19
19
  profile: string;
20
+ owner: number;
20
21
  created: Date;
21
22
  updated: Date;
22
23
  status: number;
@@ -91,6 +91,13 @@ var Partner = /** @class */ (function () {
91
91
  }),
92
92
  __metadata("design:type", String)
93
93
  ], Partner.prototype, "profile", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({
96
+ default: 0,
97
+ comment: 'En este campo sabemos sí el usuario que está en la tabla es dueño de una empresa/company en la plataforma.',
98
+ }),
99
+ __metadata("design:type", Number)
100
+ ], Partner.prototype, "owner", void 0);
94
101
  __decorate([
95
102
  (0, typeorm_1.Column)({ type: 'datetime', comment: 'Fecha de creación del registro.' }),
96
103
  __metadata("design:type", Date)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "1.4.0",
3
+ "version": "1.4.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",
@@ -71,7 +71,7 @@ export class Local {
71
71
  onDelete: 'NO ACTION',
72
72
  onUpdate: 'NO ACTION',
73
73
  })
74
- @JoinColumn({ name: 'update_by' })
74
+ @JoinColumn({ name: 'updated_by' })
75
75
  updated_by: Partner
76
76
 
77
77
  @ManyToOne(() => Square, (square) => square.locals, {
@@ -81,6 +81,13 @@ export class Partner {
81
81
  })
82
82
  profile: string
83
83
 
84
+ @Column({
85
+ default: 0,
86
+ comment:
87
+ 'En este campo sabemos sí el usuario que está en la tabla es dueño de una empresa/company en la plataforma.',
88
+ })
89
+ owner: number
90
+
84
91
  @Column({ type: 'datetime', comment: 'Fecha de creación del registro.' })
85
92
  created: Date
86
93