test-entity-library-asm 2.0.5 → 2.0.7
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/DiscountCodeUser.d.ts +1 -1
- package/dist/entities/DiscountCodeUser.js +1 -1
- package/dist/entities/Square.d.ts +2 -0
- package/dist/entities/Square.js +8 -0
- package/dist/entities/TypeFood.d.ts +1 -0
- package/dist/entities/TypeFood.js +8 -0
- package/package.json +1 -1
- package/src/entities/DiscountCodeUser.ts +4 -5
- package/src/entities/Square.ts +6 -0
- package/src/entities/TypeFood.ts +8 -1
|
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DiscountCodeUser = void 0;
|
|
13
13
|
var typeorm_1 = require("typeorm");
|
|
14
|
-
var Company_1 = require("./Company");
|
|
15
14
|
var CodeRedemptionHistoryUser_1 = require("./CodeRedemptionHistoryUser");
|
|
15
|
+
var Company_1 = require("./Company");
|
|
16
16
|
var Partner_1 = require("./Partner");
|
|
17
17
|
var DiscountCodeUser = /** @class */ (function () {
|
|
18
18
|
function DiscountCodeUser() {
|
package/dist/entities/Square.js
CHANGED
|
@@ -39,6 +39,14 @@ var Square = /** @class */ (function () {
|
|
|
39
39
|
(0, typeorm_1.Column)({ length: 100, comment: 'Dirección del centro comercial/plazoleta.' }),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], Square.prototype, "address", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 8 }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], Square.prototype, "latitude", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 8 }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], Square.prototype, "longitude", void 0);
|
|
42
50
|
__decorate([
|
|
43
51
|
(0, typeorm_1.Column)({
|
|
44
52
|
type: 'mediumtext',
|
|
@@ -28,6 +28,14 @@ var TypeFood = /** @class */ (function () {
|
|
|
28
28
|
}),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], TypeFood.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({
|
|
33
|
+
length: 500,
|
|
34
|
+
nullable: true,
|
|
35
|
+
comment: 'Imagen para el tipo de comida.',
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], TypeFood.prototype, "photo", void 0);
|
|
31
39
|
__decorate([
|
|
32
40
|
(0, typeorm_1.Column)({
|
|
33
41
|
default: 1,
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Entity,
|
|
3
2
|
Column,
|
|
4
|
-
|
|
5
|
-
ManyToOne,
|
|
3
|
+
Entity,
|
|
6
4
|
JoinColumn,
|
|
5
|
+
ManyToOne,
|
|
7
6
|
OneToMany,
|
|
7
|
+
PrimaryGeneratedColumn,
|
|
8
8
|
} from 'typeorm'
|
|
9
|
-
import { User } from './User'
|
|
10
|
-
import { Company } from './Company'
|
|
11
9
|
import { CodeRedemptionHistoryUser } from './CodeRedemptionHistoryUser'
|
|
10
|
+
import { Company } from './Company'
|
|
12
11
|
import { Partner } from './Partner'
|
|
13
12
|
|
|
14
13
|
@Entity('discount_code_user', {
|
package/src/entities/Square.ts
CHANGED
|
@@ -35,6 +35,12 @@ export class Square {
|
|
|
35
35
|
@Column({ length: 100, comment: 'Dirección del centro comercial/plazoleta.' })
|
|
36
36
|
address: string
|
|
37
37
|
|
|
38
|
+
@Column({ type: 'decimal', precision: 10, scale: 8 })
|
|
39
|
+
latitude: number
|
|
40
|
+
|
|
41
|
+
@Column({ type: 'decimal', precision: 10, scale: 8 })
|
|
42
|
+
longitude: number
|
|
43
|
+
|
|
38
44
|
@Column({
|
|
39
45
|
type: 'mediumtext',
|
|
40
46
|
nullable: true,
|
package/src/entities/TypeFood.ts
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
Entity,
|
|
4
4
|
JoinTable,
|
|
5
5
|
ManyToMany,
|
|
6
|
-
PrimaryGeneratedColumn
|
|
6
|
+
PrimaryGeneratedColumn,
|
|
7
7
|
} from 'typeorm'
|
|
8
8
|
import { Company } from './Company'
|
|
9
9
|
|
|
@@ -23,6 +23,13 @@ export class TypeFood {
|
|
|
23
23
|
})
|
|
24
24
|
name: string
|
|
25
25
|
|
|
26
|
+
@Column({
|
|
27
|
+
length: 500,
|
|
28
|
+
nullable: true,
|
|
29
|
+
comment: 'Imagen para el tipo de comida.',
|
|
30
|
+
})
|
|
31
|
+
photo: string
|
|
32
|
+
|
|
26
33
|
@Column({
|
|
27
34
|
default: 1,
|
|
28
35
|
comment:
|