test-entity-library-asm 3.4.7 → 3.4.9

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.
@@ -14,6 +14,7 @@ export declare class LocalTable {
14
14
  created: Date;
15
15
  updated: Date | null;
16
16
  updated_by: Partner | null;
17
+ availability: number;
17
18
  status: number;
18
19
  request_locals: RequestLocal[];
19
20
  local_table_reserves: LocalTableReserve[];
@@ -44,7 +44,6 @@ var LocalTable = /** @class */ (function () {
44
44
  (0, typeorm_1.Column)({
45
45
  type: "varchar",
46
46
  length: 40,
47
- unique: true,
48
47
  comment: "Nombre de la mesa.",
49
48
  }),
50
49
  __metadata("design:type", String)
@@ -131,6 +130,15 @@ var LocalTable = /** @class */ (function () {
131
130
  (0, typeorm_1.JoinColumn)({ name: "updated_by" }),
132
131
  __metadata("design:type", Object)
133
132
  ], LocalTable.prototype, "updated_by", void 0);
133
+ __decorate([
134
+ (0, typeorm_1.Column)({
135
+ default: 1,
136
+ type: "int",
137
+ width: 1,
138
+ comment: "Columna para saber sí la mesa está:\r\n1: Disponible.\r\n2: No disponible.",
139
+ }),
140
+ __metadata("design:type", Number)
141
+ ], LocalTable.prototype, "availability", void 0);
134
142
  __decorate([
135
143
  (0, typeorm_1.Column)({
136
144
  default: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "3.4.7",
3
+ "version": "3.4.9",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -46,7 +46,6 @@ export class LocalTable {
46
46
  @Column({
47
47
  type: "varchar",
48
48
  length: 40,
49
- unique: true,
50
49
  comment: "Nombre de la mesa.",
51
50
  })
52
51
  name: string;
@@ -128,6 +127,15 @@ export class LocalTable {
128
127
  @JoinColumn({ name: "updated_by" })
129
128
  updated_by: Partner | null;
130
129
 
130
+ @Column({
131
+ default: 1,
132
+ type: "int",
133
+ width: 1,
134
+ comment:
135
+ "Columna para saber sí la mesa está:\r\n1: Disponible.\r\n2: No disponible.",
136
+ })
137
+ availability: number;
138
+
131
139
  @Column({
132
140
  default: 1,
133
141
  type: "int",