test-entity-library-asm 1.3.8 → 1.4.0
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/User.d.ts
CHANGED
package/dist/entities/User.js
CHANGED
|
@@ -75,30 +75,6 @@ var User = /** @class */ (function () {
|
|
|
75
75
|
(0, typeorm_1.JoinColumn)({ name: 'city' }),
|
|
76
76
|
__metadata("design:type", City_1.City)
|
|
77
77
|
], User.prototype, "city", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, typeorm_1.Column)({ nullable: true, length: 100, comment: 'Dirección del usuario.' }),
|
|
80
|
-
__metadata("design:type", String)
|
|
81
|
-
], User.prototype, "address", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, typeorm_1.Column)({
|
|
84
|
-
type: 'decimal',
|
|
85
|
-
precision: 10,
|
|
86
|
-
scale: 8,
|
|
87
|
-
nullable: true,
|
|
88
|
-
comment: 'Latitude de la dirección del usuario.',
|
|
89
|
-
}),
|
|
90
|
-
__metadata("design:type", Number)
|
|
91
|
-
], User.prototype, "latitude", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)({
|
|
94
|
-
type: 'decimal',
|
|
95
|
-
precision: 10,
|
|
96
|
-
scale: 8,
|
|
97
|
-
nullable: true,
|
|
98
|
-
comment: 'Longitude de la dirección del usuario.',
|
|
99
|
-
}),
|
|
100
|
-
__metadata("design:type", Number)
|
|
101
|
-
], User.prototype, "longitude", void 0);
|
|
102
78
|
__decorate([
|
|
103
79
|
(0, typeorm_1.Column)({
|
|
104
80
|
length: 255,
|
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/User.ts
CHANGED
|
@@ -64,27 +64,6 @@ export class User {
|
|
|
64
64
|
@JoinColumn({ name: 'city' })
|
|
65
65
|
city: City
|
|
66
66
|
|
|
67
|
-
@Column({ nullable: true, length: 100, comment: 'Dirección del usuario.' })
|
|
68
|
-
address: string
|
|
69
|
-
|
|
70
|
-
@Column({
|
|
71
|
-
type: 'decimal',
|
|
72
|
-
precision: 10,
|
|
73
|
-
scale: 8,
|
|
74
|
-
nullable: true,
|
|
75
|
-
comment: 'Latitude de la dirección del usuario.',
|
|
76
|
-
})
|
|
77
|
-
latitude: number
|
|
78
|
-
|
|
79
|
-
@Column({
|
|
80
|
-
type: 'decimal',
|
|
81
|
-
precision: 10,
|
|
82
|
-
scale: 8,
|
|
83
|
-
nullable: true,
|
|
84
|
-
comment: 'Longitude de la dirección del usuario.',
|
|
85
|
-
})
|
|
86
|
-
longitude: number
|
|
87
|
-
|
|
88
67
|
@Column({
|
|
89
68
|
length: 255,
|
|
90
69
|
comment: 'Contraseña almacenada tipo SHA256 del usuario.',
|