test-entity-library-asm 3.8.4 → 3.8.6

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,7 +16,8 @@ export declare class Partner {
16
16
  phone: string;
17
17
  city: City;
18
18
  address: string | null;
19
- password: string;
19
+ password: string | null;
20
+ google_id: string | null;
20
21
  profile: any | null;
21
22
  owner: number;
22
23
  created: Date;
@@ -107,10 +107,23 @@ var Partner = /** @class */ (function () {
107
107
  (0, typeorm_1.Column)({
108
108
  length: 255,
109
109
  type: "varchar",
110
+ nullable: true,
111
+ default: null,
110
112
  comment: "Contraseña almacenada tipo SHA256 del partner.",
111
113
  }),
112
- __metadata("design:type", String)
114
+ __metadata("design:type", Object)
113
115
  ], Partner.prototype, "password", void 0);
116
+ __decorate([
117
+ (0, typeorm_1.Column)({
118
+ length: 255,
119
+ type: "varchar",
120
+ unique: true,
121
+ nullable: true,
122
+ default: null,
123
+ comment: "Guardamos el token o lo que nos retorna google cuando le damos iniciar con google",
124
+ }),
125
+ __metadata("design:type", Object)
126
+ ], Partner.prototype, "google_id", void 0);
114
127
  __decorate([
115
128
  (0, typeorm_1.Column)({
116
129
  type: "longtext",
@@ -9,5 +9,5 @@ export declare class PartnerSession {
9
9
  finish_time: Date | null;
10
10
  status: number;
11
11
  created: Date;
12
- updated: Date;
12
+ updated: Date | null;
13
13
  }
@@ -93,10 +93,11 @@ var PartnerSession = /** @class */ (function () {
93
93
  __decorate([
94
94
  (0, typeorm_1.Column)({
95
95
  type: "datetime",
96
+ nullable: true,
96
97
  comment: "Fecha de actualización del registro.",
97
98
  transformer: new dateTransformer_1.DateTransformer(),
98
99
  }),
99
- __metadata("design:type", Date)
100
+ __metadata("design:type", Object)
100
101
  ], PartnerSession.prototype, "updated", void 0);
101
102
  PartnerSession = __decorate([
102
103
  (0, typeorm_1.Entity)({
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "3.8.4",
3
+ "version": "3.8.6",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "build": "tsc"
8
+ "build": "npx rimraf dist && tsc --build"
9
9
  },
10
10
  "keywords": [],
11
11
  "author": "",
@@ -20,6 +20,7 @@
20
20
  "devDependencies": {
21
21
  "@types/express": "^4.17.21",
22
22
  "@types/node": "^20.12.7",
23
+ "rimraf": "^6.0.1",
23
24
  "typescript": "^5.4.5"
24
25
  },
25
26
  "repository": {
@@ -113,9 +113,22 @@ export class Partner {
113
113
  @Column({
114
114
  length: 255,
115
115
  type: "varchar",
116
+ nullable: true,
117
+ default: null,
116
118
  comment: "Contraseña almacenada tipo SHA256 del partner.",
117
119
  })
118
- password: string;
120
+ password: string | null;
121
+
122
+ @Column({
123
+ length: 255,
124
+ type: "varchar",
125
+ unique: true,
126
+ nullable: true,
127
+ default: null,
128
+ comment:
129
+ "Guardamos el token o lo que nos retorna google cuando le damos iniciar con google",
130
+ })
131
+ google_id: string | null;
119
132
 
120
133
  @Column({
121
134
  type: "longtext",
@@ -82,8 +82,9 @@ export class PartnerSession {
82
82
 
83
83
  @Column({
84
84
  type: "datetime",
85
+ nullable: true,
85
86
  comment: "Fecha de actualización del registro.",
86
87
  transformer: new DateTransformer(),
87
88
  })
88
- updated: Date;
89
+ updated: Date | null;
89
90
  }