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.
@@ -1,5 +1,5 @@
1
- import { Company } from './Company';
2
1
  import { CodeRedemptionHistoryUser } from './CodeRedemptionHistoryUser';
2
+ import { Company } from './Company';
3
3
  import { Partner } from './Partner';
4
4
  export declare class DiscountCodeUser {
5
5
  id: number;
@@ -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() {
@@ -6,6 +6,8 @@ export declare class Square {
6
6
  name: string;
7
7
  city: City;
8
8
  address: string;
9
+ latitude: number;
10
+ longitude: number;
9
11
  details: string;
10
12
  maximum_number_locals: number;
11
13
  email: string;
@@ -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',
@@ -2,6 +2,7 @@ import { Company } from './Company';
2
2
  export declare class TypeFood {
3
3
  id: number;
4
4
  name: string;
5
+ photo: string;
5
6
  status: number;
6
7
  companies: Company[];
7
8
  }
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,14 +1,13 @@
1
1
  import {
2
- Entity,
3
2
  Column,
4
- PrimaryGeneratedColumn,
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', {
@@ -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,
@@ -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: