test-entity-library-asm 3.4.3 → 3.4.5

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.
@@ -5,8 +5,9 @@ export declare class LocalTable {
5
5
  local: Local;
6
6
  name: string;
7
7
  capacity: number;
8
- location_x: number;
9
- location_y: number;
8
+ row: number;
9
+ column: number;
10
+ type: number;
10
11
  zone: LocalTableZone;
11
12
  description: string | null;
12
13
  created: Date;
@@ -58,22 +58,27 @@ var LocalTable = /** @class */ (function () {
58
58
  ], LocalTable.prototype, "capacity", void 0);
59
59
  __decorate([
60
60
  (0, typeorm_1.Column)({
61
- type: "float",
62
- nullable: true,
63
- default: null,
64
- comment: "Coordenada X de ubicación dentro del plano del local.",
61
+ type: "int",
62
+ comment: "Fila donde se encuentra la mesa. ",
65
63
  }),
66
64
  __metadata("design:type", Number)
67
- ], LocalTable.prototype, "location_x", void 0);
65
+ ], LocalTable.prototype, "row", void 0);
68
66
  __decorate([
69
67
  (0, typeorm_1.Column)({
70
- type: "float",
71
- nullable: true,
72
- default: null,
73
- comment: "Coordenada Y de ubicación dentro del plano.",
68
+ type: "int",
69
+ comment: "Columna donde se encuentra la mesa.",
70
+ }),
71
+ __metadata("design:type", Number)
72
+ ], LocalTable.prototype, "column", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({
75
+ type: "int",
76
+ default: 1,
77
+ width: 1,
78
+ comment: "Columna para saber qué tipo de mesa es:\r\n1: Cuadrada.\r\n2: Redonda.",
74
79
  }),
75
80
  __metadata("design:type", Number)
76
- ], LocalTable.prototype, "location_y", void 0);
81
+ ], LocalTable.prototype, "type", void 0);
77
82
  __decorate([
78
83
  (0, typeorm_1.ManyToOne)(function () { return __1.LocalTableZone; }, function (localTableZone) { return localTableZone.local_tables; }, {
79
84
  onDelete: "CASCADE",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "3.4.3",
3
+ "version": "3.4.5",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -50,20 +50,25 @@ export class LocalTable {
50
50
  capacity: number;
51
51
 
52
52
  @Column({
53
- type: "float",
54
- nullable: true,
55
- default: null,
56
- comment: "Coordenada X de ubicación dentro del plano del local.",
53
+ type: "int",
54
+ comment: "Fila donde se encuentra la mesa. ",
57
55
  })
58
- location_x: number;
56
+ row: number;
59
57
 
60
58
  @Column({
61
- type: "float",
62
- nullable: true,
63
- default: null,
64
- comment: "Coordenada Y de ubicación dentro del plano.",
59
+ type: "int",
60
+ comment: "Columna donde se encuentra la mesa.",
61
+ })
62
+ column: number;
63
+
64
+ @Column({
65
+ type: "int",
66
+ default: 1,
67
+ width: 1,
68
+ comment:
69
+ "Columna para saber qué tipo de mesa es:\r\n1: Cuadrada.\r\n2: Redonda.",
65
70
  })
66
- location_y: number;
71
+ type: number;
67
72
 
68
73
  @ManyToOne(
69
74
  () => LocalTableZone,