@asumano/worklip-typeorm-db 1.1.36 → 1.1.38

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.
@@ -16,5 +16,6 @@ export declare class Reminder {
16
16
  reminder_date: string;
17
17
  send_via: number;
18
18
  created: Date;
19
+ updated: Date | null;
19
20
  status: number;
20
21
  }
@@ -79,8 +79,7 @@ __decorate([
79
79
  ], Reminder.prototype, "title", void 0);
80
80
  __decorate([
81
81
  (0, typeorm_1.Column)({
82
- type: "varchar",
83
- length: 255,
82
+ type: "text",
84
83
  comment: "Contenido del recordatorio.",
85
84
  }),
86
85
  __metadata("design:type", String)
@@ -120,7 +119,17 @@ __decorate([
120
119
  ], Reminder.prototype, "created", void 0);
121
120
  __decorate([
122
121
  (0, typeorm_1.Column)({
123
- default: 0,
122
+ type: "datetime",
123
+ nullable: true,
124
+ default: null,
125
+ comment: "Fecha de actualización del registro.",
126
+ onUpdate: "CURRENT_TIMESTAMP",
127
+ }),
128
+ __metadata("design:type", Object)
129
+ ], Reminder.prototype, "updated", void 0);
130
+ __decorate([
131
+ (0, typeorm_1.Column)({
132
+ default: 1,
124
133
  type: "int",
125
134
  width: 1,
126
135
  comment: "Estado en el que se encuentra el recordatorio:\n1. Pendiente.\n2. Entregado\n3. Cancelado.",
@@ -11,6 +11,7 @@ export declare class Reminders {
11
11
  reminder_date: string;
12
12
  send_via: number;
13
13
  created: Date;
14
+ updated: Date | null;
14
15
  status: number;
15
16
  workshop_id: number;
16
17
  workshop_company: number;
@@ -62,6 +62,10 @@ __decorate([
62
62
  (0, typeorm_1.ViewColumn)(),
63
63
  __metadata("design:type", Date)
64
64
  ], Reminders.prototype, "created", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.ViewColumn)(),
67
+ __metadata("design:type", Object)
68
+ ], Reminders.prototype, "updated", void 0);
65
69
  __decorate([
66
70
  (0, typeorm_1.ViewColumn)(),
67
71
  __metadata("design:type", Number)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asumano/worklip-typeorm-db",
3
- "version": "1.1.36",
3
+ "version": "1.1.38",
4
4
  "publishConfig": {
5
5
  "access": "restricted"
6
6
  },