test-entity-library-asm 1.3.9 → 1.4.1
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.
package/dist/entities/Country.js
CHANGED
|
@@ -40,6 +40,13 @@ var Country = /** @class */ (function () {
|
|
|
40
40
|
(0, typeorm_1.Column)({ length: 10, comment: 'Prefijo para los números de teléfono.' }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], Country.prototype, "prefix", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({
|
|
45
|
+
length: 15,
|
|
46
|
+
comment: 'Estructura que tiene el teléfono en ese país.',
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Country.prototype, "structure_phone", void 0);
|
|
43
50
|
__decorate([
|
|
44
51
|
(0, typeorm_1.Column)({
|
|
45
52
|
type: 'longtext',
|
package/dist/entities/Partner.js
CHANGED
|
@@ -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
package/src/entities/Country.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Column,
|
|
3
|
-
Entity,
|
|
4
|
-
OneToMany,
|
|
5
|
-
PrimaryGeneratedColumn
|
|
6
|
-
} from 'typeorm'
|
|
1
|
+
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm'
|
|
7
2
|
import { Region } from './Region'
|
|
8
3
|
|
|
9
4
|
@Entity({ comment: 'Países donde está disponible la plataforma.' })
|
|
@@ -29,6 +24,12 @@ export class Country {
|
|
|
29
24
|
@Column({ length: 10, comment: 'Prefijo para los números de teléfono.' })
|
|
30
25
|
prefix: string
|
|
31
26
|
|
|
27
|
+
@Column({
|
|
28
|
+
length: 15,
|
|
29
|
+
comment: 'Estructura que tiene el teléfono en ese país.',
|
|
30
|
+
})
|
|
31
|
+
structure_phone: string
|
|
32
|
+
|
|
32
33
|
@Column({
|
|
33
34
|
type: 'longtext',
|
|
34
35
|
comment:
|
package/src/entities/Partner.ts
CHANGED
|
@@ -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
|
|