test-entity-library-asm 3.3.3 → 3.3.5

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.
@@ -3,7 +3,8 @@ export declare class RequestLocal {
3
3
  id: number;
4
4
  request: Request;
5
5
  local: Local;
6
- total_cost: string;
6
+ total_cost: number;
7
+ remaining_amount: number;
7
8
  status: number;
8
9
  preparation_time: string | null;
9
10
  updated: Date | null;
@@ -41,12 +41,24 @@ var RequestLocal = /** @class */ (function () {
41
41
  ], RequestLocal.prototype, "local", void 0);
42
42
  __decorate([
43
43
  (0, typeorm_1.Column)({
44
- length: 20,
45
- type: "varchar",
46
- comment: "Costo total del pedido. ",
44
+ type: "decimal",
45
+ precision: 10,
46
+ scale: 8,
47
+ comment: "Costo total del pedido.",
47
48
  }),
48
- __metadata("design:type", String)
49
+ __metadata("design:type", Number)
49
50
  ], RequestLocal.prototype, "total_cost", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({
53
+ type: "decimal",
54
+ nullable: true,
55
+ default: null,
56
+ precision: 10,
57
+ scale: 8,
58
+ comment: "Columna creada para saber cuánto es la cantidad que nos falta para pagar por completo el pedido.",
59
+ }),
60
+ __metadata("design:type", Number)
61
+ ], RequestLocal.prototype, "remaining_amount", void 0);
50
62
  __decorate([
51
63
  (0, typeorm_1.Column)({
52
64
  default: 1,
@@ -152,6 +152,7 @@ var RequestLocalPayment = /** @class */ (function () {
152
152
  ], RequestLocalPayment.prototype, "partner", void 0);
153
153
  __decorate([
154
154
  (0, typeorm_1.Column)({
155
+ type: "varchar",
155
156
  length: 45,
156
157
  nullable: true,
157
158
  comment: "Dirección ip donde se hace la solicitud del pago.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "3.3.3",
3
+ "version": "3.3.5",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -35,11 +35,23 @@ export class RequestLocal {
35
35
  local: Local;
36
36
 
37
37
  @Column({
38
- length: 20,
39
- type: "varchar",
40
- comment: "Costo total del pedido. ",
38
+ type: "decimal",
39
+ precision: 10,
40
+ scale: 8,
41
+ comment: "Costo total del pedido.",
42
+ })
43
+ total_cost: number;
44
+
45
+ @Column({
46
+ type: "decimal",
47
+ nullable: true,
48
+ default: null,
49
+ precision: 10,
50
+ scale: 8,
51
+ comment:
52
+ "Columna creada para saber cuánto es la cantidad que nos falta para pagar por completo el pedido.",
41
53
  })
42
- total_cost: string;
54
+ remaining_amount: number;
43
55
 
44
56
  @Column({
45
57
  default: 1,
@@ -147,6 +147,7 @@ export class RequestLocalPayment {
147
147
  partner: Partner | null;
148
148
 
149
149
  @Column({
150
+ type: "varchar",
150
151
  length: 45,
151
152
  nullable: true,
152
153
  comment: "Dirección ip donde se hace la solicitud del pago.",