demo rector
This commit is contained in:
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Catalogo_1 = require("./Catalogo");
|
||||
const Reservacion_1 = require("./Reservacion");
|
||||
let Actividad = class Actividad extends Catalogo_1.Catalogo {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Reservacion_1.Reservacion, (reservacion) => reservacion.actividad),
|
||||
__metadata("design:type", Array)
|
||||
], Actividad.prototype, "reservaciones", void 0);
|
||||
Actividad = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Actividad);
|
||||
exports.Actividad = Actividad;
|
||||
//# sourceMappingURL=Actividad.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Actividad.js","sourceRoot":"","sources":["../../src/entity/Actividad.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAA2C;AAC3C,yCAAqC;AACrC,+CAA2C;AAG3C,IAAa,SAAS,GAAtB,MAAa,SAAU,SAAQ,mBAAQ;CAMtC,CAAA;AADC;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,yBAAW,EACrB,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,CACvC;;gDAC2B;AALjB,SAAS;IADrB,gBAAM,EAAE;GACI,SAAS,CAMrB;AANY,8BAAS"}
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Catalogo_1 = require("./Catalogo");
|
||||
const Reservacion_1 = require("./Reservacion");
|
||||
let Adscripcion = class Adscripcion extends Catalogo_1.Catalogo {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Reservacion_1.Reservacion, (reservacion) => reservacion.adscripcion),
|
||||
__metadata("design:type", Array)
|
||||
], Adscripcion.prototype, "reservaciones", void 0);
|
||||
Adscripcion = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Adscripcion);
|
||||
exports.Adscripcion = Adscripcion;
|
||||
//# sourceMappingURL=Adscripcion.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Adscripcion.js","sourceRoot":"","sources":["../../src/entity/Adscripcion.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAA2C;AAC3C,yCAAqC;AACrC,+CAA2C;AAG3C,IAAa,WAAW,GAAxB,MAAa,WAAY,SAAQ,mBAAQ;CAMxC,CAAA;AADC;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,yBAAW,EACrB,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,WAAW,CACzC;;kDAC4B;AALlB,WAAW;IADvB,gBAAM,EAAE;GACI,WAAW,CAMvB;AANY,kCAAW"}
|
||||
Vendored
+45
@@ -0,0 +1,45 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const TipoProblema_1 = require("./TipoProblema");
|
||||
let Ayuda = class Ayuda {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Ayuda.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Ayuda.prototype, "nombre", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Ayuda.prototype, "correo", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Ayuda.prototype, "descripcion", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Ayuda.prototype, "solucion", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToOne((type) => TipoProblema_1.TipoProblema),
|
||||
typeorm_1.JoinColumn(),
|
||||
__metadata("design:type", TipoProblema_1.TipoProblema)
|
||||
], Ayuda.prototype, "tipoProblema", void 0);
|
||||
Ayuda = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Ayuda);
|
||||
exports.Ayuda = Ayuda;
|
||||
//# sourceMappingURL=Ayuda.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Ayuda.js","sourceRoot":"","sources":["../../src/entity/Ayuda.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAMgB;AAChB,iDAA6C;AAY7C,IAAa,KAAK,GAAlB,MAAa,KAAK;CAmBjB,CAAA;AAjBC;IADC,gCAAsB,EAAE;;iCACf;AAGV;IADC,gBAAM,EAAE;;qCACK;AAGd;IADC,gBAAM,EAAE;;qCACK;AAGd;IADC,gBAAM,EAAE;;0CACU;AAGnB;IADC,gBAAM,EAAE;;uCACO;AAIhB;IAFC,kBAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,2BAAY,CAAC;IAChC,oBAAU,EAAE;8BACC,2BAAY;2CAAA;AAlBf,KAAK;IADjB,gBAAM,EAAE;GACI,KAAK,CAmBjB;AAnBY,sBAAK"}
|
||||
Vendored
+56
@@ -0,0 +1,56 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Tipo_1 = require("./Tipo");
|
||||
const Reservacion_1 = require("./Reservacion");
|
||||
const Equipo_1 = require("./Equipo");
|
||||
let Carrito = class Carrito {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Carrito.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", Number)
|
||||
], Carrito.prototype, "alias", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", Number)
|
||||
], Carrito.prototype, "kiosko", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Reservacion_1.Reservacion, (reservacion) => reservacion.carrito),
|
||||
__metadata("design:type", Array)
|
||||
], Carrito.prototype, "reservaciones", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Equipo_1.Equipo, (equipo) => equipo.carrito),
|
||||
__metadata("design:type", Array)
|
||||
], Carrito.prototype, "equipos", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Tipo_1.Tipo, (tipo) => tipo.carritos),
|
||||
__metadata("design:type", Tipo_1.Tipo)
|
||||
], Carrito.prototype, "tipo", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
typeorm_1.CreateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Carrito.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
typeorm_1.UpdateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Carrito.prototype, "updatedAt", void 0);
|
||||
Carrito = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Carrito);
|
||||
exports.Carrito = Carrito;
|
||||
//# sourceMappingURL=Carrito.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Carrito.js","sourceRoot":"","sources":["../../src/entity/Carrito.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAQgB;AAChB,iCAA6B;AAC7B,+CAA2C;AAC3C,qCAAiC;AAGjC,IAAa,OAAO,GAApB,MAAa,OAAO;CAmCnB,CAAA;AAjCC;IADC,gCAAsB,EAAE;;mCACf;AAGV;IADC,gBAAM,EAAE;;sCACI;AAGb;IADC,gBAAM,EAAE;;uCACK;AAMd;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,yBAAW,EACrB,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,CACrC;;8CAC2B;AAM5B;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,eAAM,EAChB,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAC3B;;wCACgB;AAMjB;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,WAAI,EACd,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CACxB;8BACK,WAAI;qCAAA;AAIV;IAFC,gBAAM,EAAE;IACR,0BAAgB,EAAE;8BACR,IAAI;0CAAA;AAIf;IAFC,gBAAM,EAAE;IACR,0BAAgB,EAAE;8BACR,IAAI;0CAAA;AAlCJ,OAAO;IADnB,gBAAM,EAAE;GACI,OAAO,CAmCnB;AAnCY,0BAAO"}
|
||||
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
class Catalogo {
|
||||
}
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Catalogo.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Catalogo.prototype, "nombre", void 0);
|
||||
exports.Catalogo = Catalogo;
|
||||
//# sourceMappingURL=Catalogo.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Catalogo.js","sourceRoot":"","sources":["../../src/entity/Catalogo.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAAgE;AAEhE,MAAsB,QAAQ;CAM7B;AAJC;IADC,gCAAsB,EAAE;;oCACf;AAGV;IADC,gBAAM,EAAE;;wCACK;AALhB,4BAMC"}
|
||||
Vendored
+39
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
let Configuracion = class Configuracion {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Configuracion.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Configuracion.prototype, "nombre", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Configuracion.prototype, "value", void 0);
|
||||
__decorate([
|
||||
typeorm_1.UpdateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Configuracion.prototype, "updatedAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.CreateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Configuracion.prototype, "createdAt", void 0);
|
||||
Configuracion = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Configuracion);
|
||||
exports.Configuracion = Configuracion;
|
||||
//# sourceMappingURL=Configuracion.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Configuracion.js","sourceRoot":"","sources":["../../src/entity/Configuracion.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAMgB;AAGhB,IAAa,aAAa,GAA1B,MAAa,aAAa;CAezB,CAAA;AAbC;IADC,gCAAsB,EAAE;;yCACf;AAGV;IADC,gBAAM,EAAE;;6CACK;AAGd;IADC,gBAAM,EAAE;;4CACI;AAGb;IADC,0BAAgB,EAAE;8BACR,IAAI;gDAAA;AAGf;IADC,0BAAgB,EAAE;8BACR,IAAI;gDAAA;AAdJ,aAAa;IADzB,gBAAM,EAAE;GACI,aAAa,CAezB;AAfY,sCAAa"}
|
||||
Vendored
+69
@@ -0,0 +1,69 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Carrito_1 = require("./Carrito");
|
||||
const Prestamo_1 = require("./Prestamo");
|
||||
const Log_1 = require("./Log");
|
||||
const class_validator_1 = require("class-validator");
|
||||
let Equipo = class Equipo {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Equipo.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Equipo.prototype, "noSerie", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Equipo.prototype, "noInventario", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsNumber(),
|
||||
__metadata("design:type", Number)
|
||||
], Equipo.prototype, "alias", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ type: 'boolean', default: false }),
|
||||
class_validator_1.IsBoolean(),
|
||||
__metadata("design:type", Boolean)
|
||||
], Equipo.prototype, "activo", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
typeorm_1.CreateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Equipo.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
typeorm_1.UpdateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Equipo.prototype, "updatedAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Carrito_1.Carrito, (carrito) => carrito.equipos),
|
||||
__metadata("design:type", Carrito_1.Carrito)
|
||||
], Equipo.prototype, "carrito", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Prestamo_1.Prestamo, (prestamo) => prestamo.equipo),
|
||||
__metadata("design:type", Array)
|
||||
], Equipo.prototype, "prestamos", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Log_1.Log, (log) => log.equipo),
|
||||
__metadata("design:type", Array)
|
||||
], Equipo.prototype, "logs", void 0);
|
||||
Equipo = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Equipo);
|
||||
exports.Equipo = Equipo;
|
||||
//# sourceMappingURL=Equipo.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Equipo.js","sourceRoot":"","sources":["../../src/entity/Equipo.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAQgB;AAChB,uCAAmC;AACnC,yCAAqC;AACrC,+BAA2B;AAC3B,qDAA+D;AAG/D,IAAa,MAAM,GAAnB,MAAa,MAAM;CA6ClB,CAAA;AA3CC;IADC,gCAAsB,EAAE;;kCACf;AAIV;IAFC,gBAAM,EAAE;IACR,0BAAQ,EAAE;;uCACI;AAIf;IAFC,gBAAM,EAAE;IACR,0BAAQ,EAAE;;4CACS;AAIpB;IAFC,gBAAM,EAAE;IACR,0BAAQ,EAAE;;qCACE;AAIb;IAFC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC3C,2BAAS,EAAE;;sCACG;AAIf;IAFC,gBAAM,EAAE;IACR,0BAAgB,EAAE;8BACR,IAAI;yCAAA;AAIf;IAFC,gBAAM,EAAE;IACR,0BAAgB,EAAE;8BACR,IAAI;yCAAA;AAMf;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAO,EACjB,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAC7B;8BACQ,iBAAO;uCAAA;AAMhB;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAQ,EAClB,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAC9B;;yCACoB;AAMrB;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,SAAG,EACb,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CACpB;;oCACU;AA5CA,MAAM;IADlB,gBAAM,EAAE;GACI,MAAM,CA6ClB;AA7CY,wBAAM"}
|
||||
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Prestamo_1 = require("./Prestamo");
|
||||
let Horario = class Horario {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", String)
|
||||
], Horario.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Horario.prototype, "hora", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Prestamo_1.Prestamo, (prestamo) => prestamo.horario),
|
||||
__metadata("design:type", Array)
|
||||
], Horario.prototype, "prestamos", void 0);
|
||||
Horario = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Horario);
|
||||
exports.Horario = Horario;
|
||||
//# sourceMappingURL=Horario.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Horario.js","sourceRoot":"","sources":["../../src/entity/Horario.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAA2E;AAC3E,yCAAqC;AAGrC,IAAa,OAAO,GAApB,MAAa,OAAO;CAYnB,CAAA;AAVC;IADC,gCAAsB,EAAE;;mCACf;AAGV;IADC,gBAAM,EAAE;;qCACG;AAMZ;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAQ,EAClB,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAC/B;;0CACoB;AAXV,OAAO;IADnB,gBAAM,EAAE;GACI,OAAO,CAYnB;AAZY,0BAAO"}
|
||||
Vendored
+54
@@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Usuario_1 = require("./Usuario");
|
||||
const Operador_1 = require("./Operador");
|
||||
const Equipo_1 = require("./Equipo");
|
||||
let Log = class Log {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Log.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Log.prototype, "accion", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ default: false }),
|
||||
__metadata("design:type", String)
|
||||
], Log.prototype, "multa", void 0);
|
||||
__decorate([
|
||||
typeorm_1.UpdateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Log.prototype, "updateAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.CreateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Log.prototype, "createAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Usuario_1.Usuario, (usuario) => usuario.logs),
|
||||
__metadata("design:type", Usuario_1.Usuario)
|
||||
], Log.prototype, "usuario", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Operador_1.Operador, (operador) => operador.logs),
|
||||
__metadata("design:type", Operador_1.Operador)
|
||||
], Log.prototype, "operador", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Equipo_1.Equipo, (equipo) => equipo.logs),
|
||||
__metadata("design:type", Equipo_1.Equipo)
|
||||
], Log.prototype, "equipo", void 0);
|
||||
Log = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Log);
|
||||
exports.Log = Log;
|
||||
//# sourceMappingURL=Log.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Log.js","sourceRoot":"","sources":["../../src/entity/Log.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAOgB;AAChB,uCAAmC;AACnC,yCAAqC;AACrC,qCAAiC;AAGjC,IAAa,GAAG,GAAhB,MAAa,GAAG;CAiCf,CAAA;AA/BC;IADC,gCAAsB,EAAE;;+BACf;AAGV;IADC,gBAAM,EAAE;;mCACK;AAGd;IADC,gBAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kCACd;AAGb;IADC,0BAAgB,EAAE;8BACT,IAAI;qCAAA;AAGd;IADC,0BAAgB,EAAE;8BACT,IAAI;qCAAA;AAMd;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAO,EACjB,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAC1B;8BACQ,iBAAO;oCAAA;AAMhB;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAQ,EAClB,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAC5B;8BACS,mBAAQ;qCAAA;AAMlB;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,eAAM,EAChB,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CACxB;8BACO,eAAM;mCAAA;AAhCH,GAAG;IADf,gBAAM,EAAE;GACI,GAAG,CAiCf;AAjCY,kBAAG"}
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Catalogo_1 = require("./Catalogo");
|
||||
const Reservacion_1 = require("./Reservacion");
|
||||
let Lugar = class Lugar extends Catalogo_1.Catalogo {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Reservacion_1.Reservacion, (reservacion) => reservacion.lugar),
|
||||
__metadata("design:type", Array)
|
||||
], Lugar.prototype, "reservaciones", void 0);
|
||||
Lugar = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Lugar);
|
||||
exports.Lugar = Lugar;
|
||||
//# sourceMappingURL=Lugar.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Lugar.js","sourceRoot":"","sources":["../../src/entity/Lugar.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAA2C;AAC3C,yCAAqC;AACrC,+CAA2C;AAG3C,IAAa,KAAK,GAAlB,MAAa,KAAM,SAAQ,mBAAQ;CAMlC,CAAA;AADC;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,yBAAW,EACrB,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CACnC;;4CAC4B;AALlB,KAAK;IADjB,gBAAM,EAAE;GACI,KAAK,CAMjB;AANY,sBAAK"}
|
||||
Vendored
+37
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Catalogo_1 = require("./Catalogo");
|
||||
const Prestamo_1 = require("./Prestamo");
|
||||
let Mesa = class Mesa extends Catalogo_1.Catalogo {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.Column({ default: false }),
|
||||
__metadata("design:type", Boolean)
|
||||
], Mesa.prototype, "activo", void 0);
|
||||
__decorate([
|
||||
typeorm_1.UpdateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Mesa.prototype, "updatedAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.CreateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Mesa.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Prestamo_1.Prestamo, (prestamo) => prestamo.mesa),
|
||||
__metadata("design:type", Array)
|
||||
], Mesa.prototype, "prestamos", void 0);
|
||||
Mesa = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Mesa);
|
||||
exports.Mesa = Mesa;
|
||||
//# sourceMappingURL=Mesa.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Mesa.js","sourceRoot":"","sources":["../../src/entity/Mesa.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAMgB;AAChB,yCAAqC;AACrC,yCAAqC;AAGrC,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,mBAAQ;CAejC,CAAA;AAbC;IADC,gBAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;oCACZ;AAGf;IADC,0BAAgB,EAAE;8BACR,IAAI;uCAAA;AAGf;IADC,0BAAgB,EAAE;8BACR,IAAI;uCAAA;AAMf;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAQ,EAClB,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAC5B;;uCACoB;AAdV,IAAI;IADhB,gBAAM,EAAE;GACI,IAAI,CAehB;AAfY,oBAAI"}
|
||||
Vendored
+71
@@ -0,0 +1,71 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const bcrypt = require("bcrypt");
|
||||
const Log_1 = require("./Log");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const Prestamo_1 = require("./Prestamo");
|
||||
let Operador = class Operador {
|
||||
hashPassword() {
|
||||
this.secreto = bcrypt.hashSync(this.secreto, 10);
|
||||
}
|
||||
checkIfUnencryptedPasswordIsValid(unencryptedPassword) {
|
||||
return bcrypt.compareSync(unencryptedPassword, this.secreto);
|
||||
}
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Operador.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Operador.prototype, "usuario", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Operador.prototype, "secreto", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsBoolean(),
|
||||
__metadata("design:type", Boolean)
|
||||
], Operador.prototype, "admin", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
typeorm_1.UpdateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Operador.prototype, "updatedAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
typeorm_1.CreateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Operador.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Log_1.Log, (log) => log.operador),
|
||||
__metadata("design:type", Array)
|
||||
], Operador.prototype, "logs", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Prestamo_1.Prestamo, (prestamo) => prestamo.operadorEntrega),
|
||||
__metadata("design:type", Array)
|
||||
], Operador.prototype, "entregas", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Prestamo_1.Prestamo, (prestamo) => prestamo.operadorRegreso),
|
||||
__metadata("design:type", Array)
|
||||
], Operador.prototype, "regresos", void 0);
|
||||
Operador = __decorate([
|
||||
typeorm_1.Entity(),
|
||||
typeorm_1.Unique(['usuario'])
|
||||
], Operador);
|
||||
exports.Operador = Operador;
|
||||
//# sourceMappingURL=Operador.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Operador.js","sourceRoot":"","sources":["../../src/entity/Operador.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAQgB;AAChB,iCAAgC;AAChC,+BAA2B;AAC3B,qDAAqD;AACrD,yCAAqC;AAIrC,IAAa,QAAQ,GAArB,MAAa,QAAQ;IA0CnB,YAAY;QACV,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;IAClD,CAAC;IAED,iCAAiC,CAAE,mBAA2B;QAC5D,OAAO,MAAM,CAAC,WAAW,CAAC,mBAAmB,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;IAC9D,CAAC;CACF,CAAA;AA/CC;IADC,gCAAsB,EAAE;;oCACf;AAIV;IAFC,gBAAM,EAAE;IACR,0BAAQ,EAAE;;yCACI;AAIf;IAFC,gBAAM,EAAE;IACR,0BAAQ,EAAE;;yCACI;AAIf;IAFC,gBAAM,EAAE;IACR,2BAAS,EAAE;;uCACE;AAId;IAFC,gBAAM,EAAE;IACR,0BAAgB,EAAE;8BACR,IAAI;2CAAA;AAIf;IAFC,gBAAM,EAAE;IACR,0BAAgB,EAAE;8BACR,IAAI;2CAAA;AAMf;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,SAAG,EACb,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CACtB;;sCACU;AAMX;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAQ,EAClB,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAe,CACvC;;0CACmB;AAMpB;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAQ,EAClB,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAe,CACvC;;0CACmB;AAxCT,QAAQ;IAFpB,gBAAM,EAAE;IACR,gBAAM,CAAC,CAAC,SAAS,CAAC,CAAC;GACP,QAAQ,CAiDpB;AAjDY,4BAAQ"}
|
||||
Vendored
+25
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Catalogo_1 = require("./Catalogo");
|
||||
const Reporte_1 = require("./Reporte");
|
||||
let Parte = class Parte extends Catalogo_1.Catalogo {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Reporte_1.Reporte, (reporte) => reporte.parte),
|
||||
__metadata("design:type", Array)
|
||||
], Parte.prototype, "reportes", void 0);
|
||||
Parte = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Parte);
|
||||
exports.Parte = Parte;
|
||||
//# sourceMappingURL=Parte.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Parte.js","sourceRoot":"","sources":["../../src/entity/Parte.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAA2C;AAC3C,yCAAqC;AACrC,uCAAmC;AAGnC,IAAa,KAAK,GAAlB,MAAa,KAAM,SAAQ,mBAAQ;CAMlC,CAAA;AADC;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAO,EACjB,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAC3B;;uCACkB;AALR,KAAK;IADjB,gBAAM,EAAE;GACI,KAAK,CAMjB;AANY,sBAAK"}
|
||||
Vendored
+70
@@ -0,0 +1,70 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Usuario_1 = require("./Usuario");
|
||||
const Reporte_1 = require("./Reporte");
|
||||
const Equipo_1 = require("./Equipo");
|
||||
const Mesa_1 = require("./Mesa");
|
||||
const Operador_1 = require("./Operador");
|
||||
const Horario_1 = require("./Horario");
|
||||
let Prestamo = class Prestamo {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Prestamo.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ default: false }),
|
||||
__metadata("design:type", Boolean)
|
||||
], Prestamo.prototype, "activo", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ default: true }),
|
||||
__metadata("design:type", Boolean)
|
||||
], Prestamo.prototype, "reservado", void 0);
|
||||
__decorate([
|
||||
typeorm_1.UpdateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Prestamo.prototype, "updatedAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.CreateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Prestamo.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Usuario_1.Usuario, (usuario) => usuario.prestamos),
|
||||
__metadata("design:type", Usuario_1.Usuario)
|
||||
], Prestamo.prototype, "usuario", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Mesa_1.Mesa, (mesa) => mesa.prestamos),
|
||||
__metadata("design:type", Mesa_1.Mesa)
|
||||
], Prestamo.prototype, "mesa", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Reporte_1.Reporte, (reporte) => reporte.prestamos),
|
||||
__metadata("design:type", Reporte_1.Reporte)
|
||||
], Prestamo.prototype, "reporte", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Equipo_1.Equipo, (equipo) => equipo.prestamos),
|
||||
__metadata("design:type", Equipo_1.Equipo)
|
||||
], Prestamo.prototype, "equipo", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Operador_1.Operador, (operador) => operador.entregas),
|
||||
__metadata("design:type", Operador_1.Operador)
|
||||
], Prestamo.prototype, "operadorEntrega", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Operador_1.Operador, (operador) => operador.regresos),
|
||||
typeorm_1.ManyToOne((type) => Horario_1.Horario, (horario) => horario.prestamos),
|
||||
__metadata("design:type", Horario_1.Horario)
|
||||
], Prestamo.prototype, "horario", void 0);
|
||||
Prestamo = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Prestamo);
|
||||
exports.Prestamo = Prestamo;
|
||||
//# sourceMappingURL=Prestamo.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Prestamo.js","sourceRoot":"","sources":["../../src/entity/Prestamo.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAOgB;AAChB,uCAAmC;AACnC,uCAAmC;AACnC,qCAAiC;AACjC,iCAA6B;AAC7B,yCAAqC;AACrC,uCAAmC;AAGnC,IAAa,QAAQ,GAArB,MAAa,QAAQ;CA6DpB,CAAA;AA3DC;IADC,gCAAsB,EAAE;;oCACf;AAGV;IADC,gBAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;wCACZ;AAGf;IADC,gBAAM,CAAC,EAAE,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
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Parte_1 = require("./Parte");
|
||||
const Reservacion_1 = require("./Reservacion");
|
||||
const Prestamo_1 = require("./Prestamo");
|
||||
let Reporte = class Reporte {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Reporte.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", Number)
|
||||
], Reporte.prototype, "equipos", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Reporte.prototype, "descripcion", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Parte_1.Parte, (parte) => parte.reportes),
|
||||
__metadata("design:type", Parte_1.Parte)
|
||||
], Reporte.prototype, "parte", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Reservacion_1.Reservacion, (reservacion) => reservacion.reporte),
|
||||
__metadata("design:type", Array)
|
||||
], Reporte.prototype, "reservaciones", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Prestamo_1.Prestamo, (prestamo) => prestamo.reporte),
|
||||
__metadata("design:type", Array)
|
||||
], Reporte.prototype, "prestamos", void 0);
|
||||
Reporte = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Reporte);
|
||||
exports.Reporte = Reporte;
|
||||
//# sourceMappingURL=Reporte.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Reporte.js","sourceRoot":"","sources":["../../src/entity/Reporte.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAMgB;AAChB,mCAA+B;AAC/B,+CAA2C;AAC3C,yCAAqC;AAGrC,IAAa,OAAO,GAApB,MAAa,OAAO;CA2BnB,CAAA;AAzBC;IADC,gCAAsB,EAAE;;mCACf;AAGV;IADC,gBAAM,EAAE;;wCACM;AAGf;IADC,gBAAM,EAAE;;4CACU;AAMnB;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,aAAK,EACf,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAC1B;8BACM,aAAK;sCAAA;AAMZ;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,yBAAW,EACrB,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,CACrC;;8CAC2B;AAM5B;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,mBAAQ,EAClB,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAC/B;;0CACoB;AA1BV,OAAO;IADnB,gBAAM,EAAE;GACI,OAAO,CA2BnB;AA3BY,0BAAO"}
|
||||
Vendored
+77
@@ -0,0 +1,77 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Actividad_1 = require("./Actividad");
|
||||
const Adscripcion_1 = require("./Adscripcion");
|
||||
const Lugar_1 = require("./Lugar");
|
||||
const Carrito_1 = require("./Carrito");
|
||||
const Reporte_1 = require("./Reporte");
|
||||
const Usuario_1 = require("./Usuario");
|
||||
let Reservacion = class Reservacion {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Reservacion.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ type: 'date' }),
|
||||
__metadata("design:type", String)
|
||||
], Reservacion.prototype, "fechaInicio", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ type: 'date' }),
|
||||
__metadata("design:type", String)
|
||||
], Reservacion.prototype, "fechaFin", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], Reservacion.prototype, "descripcion", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ type: 'boolean' }),
|
||||
__metadata("design:type", Boolean)
|
||||
], Reservacion.prototype, "uso", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ type: 'boolean' }),
|
||||
__metadata("design:type", Boolean)
|
||||
], Reservacion.prototype, "cancelado", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ type: 'boolean' }),
|
||||
__metadata("design:type", Boolean)
|
||||
], Reservacion.prototype, "aceptado", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Actividad_1.Actividad, (actividad) => actividad.reservaciones),
|
||||
__metadata("design:type", Actividad_1.Actividad)
|
||||
], Reservacion.prototype, "actividad", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Adscripcion_1.Adscripcion, (adscripcion) => adscripcion.reservaciones),
|
||||
__metadata("design:type", Adscripcion_1.Adscripcion)
|
||||
], Reservacion.prototype, "adscripcion", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Lugar_1.Lugar, (lugar) => lugar.reservaciones),
|
||||
__metadata("design:type", Lugar_1.Lugar)
|
||||
], Reservacion.prototype, "lugar", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Carrito_1.Carrito, (carrito) => carrito.reservaciones),
|
||||
__metadata("design:type", Carrito_1.Carrito)
|
||||
], Reservacion.prototype, "carrito", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Reporte_1.Reporte, (reporte) => reporte.reservaciones),
|
||||
__metadata("design:type", Reporte_1.Reporte)
|
||||
], Reservacion.prototype, "reporte", void 0);
|
||||
__decorate([
|
||||
typeorm_1.ManyToOne((type) => Usuario_1.Usuario, (reporte) => reporte.reservaciones),
|
||||
__metadata("design:type", Usuario_1.Usuario)
|
||||
], Reservacion.prototype, "usuario", void 0);
|
||||
Reservacion = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Reservacion);
|
||||
exports.Reservacion = Reservacion;
|
||||
//# sourceMappingURL=Reservacion.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Reservacion.js","sourceRoot":"","sources":["../../src/entity/Reservacion.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAA2E;AAC3E,2CAAuC;AACvC,+CAA2C;AAC3C,mCAA+B;AAC/B,uCAAmC;AACnC,uCAAmC;AACnC,uCAAmC;AAGnC,IAAa,WAAW,GAAxB,MAAa,WAAW;CAyDvB,CAAA;AAvDC;IADC,gCAAsB,EAAE;;uCACf;AAGV;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,M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AAW,CAyDvB;AAzDY,kCAAW"}
|
||||
Vendored
+35
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
const Catalogo_1 = require("./Catalogo");
|
||||
const Carrito_1 = require("./Carrito");
|
||||
const class_validator_1 = require("class-validator");
|
||||
let Tipo = class Tipo extends Catalogo_1.Catalogo {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], Tipo.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Tipo.prototype, "nombre", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Carrito_1.Carrito, (carrito) => carrito.tipo),
|
||||
__metadata("design:type", Array)
|
||||
], Tipo.prototype, "carritos", void 0);
|
||||
Tipo = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], Tipo);
|
||||
exports.Tipo = Tipo;
|
||||
//# sourceMappingURL=Tipo.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Tipo.js","sourceRoot":"","sources":["../../src/entity/Tipo.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAA2E;AAC3E,yCAAqC;AACrC,uCAAmC;AACnC,qDAA0C;AAG1C,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,mBAAQ;CAajC,CAAA;AAXC;IADC,gCAAsB,EAAE;;gCACf;AAIV;IAFC,gBAAM,EAAE;IACR,0BAAQ,EAAE;;oCACG;AAMd;IAJC,mBAAS,CACR,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAO,EACjB,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAC1B;;sCACkB;AAZR,IAAI;IADhB,gBAAM,EAAE;GACI,IAAI,CAahB;AAbY,oBAAI"}
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const typeorm_1 = require("typeorm");
|
||||
let TipoProblema = class TipoProblema {
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", Number)
|
||||
], TipoProblema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
__metadata("design:type", String)
|
||||
], TipoProblema.prototype, "nombre", void 0);
|
||||
TipoProblema = __decorate([
|
||||
typeorm_1.Entity()
|
||||
], TipoProblema);
|
||||
exports.TipoProblema = TipoProblema;
|
||||
//# sourceMappingURL=TipoProblema.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"TipoProblema.js","sourceRoot":"","sources":["../../src/entity/TipoProblema.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qCAAgE;AAGhE,IAAa,YAAY,GAAzB,MAAa,YAAY;CAMxB,CAAA;AAJC;IADC,gCAAsB,EAAE;;wCACd;AAGX;IADC,gBAAM,EAAE;;4CACM;AALJ,YAAY;IADxB,gBAAM,EAAE;GACI,YAAY,CAMxB;AANY,oCAAY"}
|
||||
Vendored
+120
@@ -0,0 +1,120 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const bcrypt = require("bcrypt");
|
||||
const typeorm_1 = require("typeorm");
|
||||
const class_validator_1 = require("class-validator");
|
||||
const Reservacion_1 = require("./Reservacion");
|
||||
const Prestamo_1 = require("./Prestamo");
|
||||
const Log_1 = require("./Log");
|
||||
let Usuario = class Usuario {
|
||||
hashPassword() {
|
||||
this.secreto = bcrypt.hashSync(this.secreto, 10);
|
||||
}
|
||||
checkIfUnencryptedPasswordIsValid(unencryptedPassword) {
|
||||
return bcrypt.compareSync(unencryptedPassword, this.secreto);
|
||||
}
|
||||
};
|
||||
__decorate([
|
||||
typeorm_1.PrimaryGeneratedColumn(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "id", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "nombre", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "apellidoPaterno", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "apellidoMaterno", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsEmail(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "correoAlternativo", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.Length(10),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "numeroTelefonico", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ type: 'text' }),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "identificacion", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "institucion", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
class_validator_1.IsString(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "secreto", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ type: 'date', default: '1996-11-07' }),
|
||||
class_validator_1.IsDate(),
|
||||
class_validator_1.IsOptional(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "multa", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ type: 'date', default: '1996-11-07' }),
|
||||
class_validator_1.IsDate(),
|
||||
class_validator_1.IsOptional(),
|
||||
__metadata("design:type", String)
|
||||
], Usuario.prototype, "multaRed", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ default: false }),
|
||||
class_validator_1.IsBoolean(),
|
||||
class_validator_1.IsOptional(),
|
||||
__metadata("design:type", Boolean)
|
||||
], Usuario.prototype, "baja", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column({ default: false }),
|
||||
class_validator_1.IsBoolean(),
|
||||
__metadata("design:type", Boolean)
|
||||
], Usuario.prototype, "interno", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
typeorm_1.CreateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Usuario.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.Column(),
|
||||
typeorm_1.UpdateDateColumn(),
|
||||
__metadata("design:type", Date)
|
||||
], Usuario.prototype, "updatedAt", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Reservacion_1.Reservacion, (reservacion) => reservacion.usuario),
|
||||
__metadata("design:type", Array)
|
||||
], Usuario.prototype, "reservaciones", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Prestamo_1.Prestamo, (prestamo) => prestamo.usuario),
|
||||
__metadata("design:type", Array)
|
||||
], Usuario.prototype, "prestamos", void 0);
|
||||
__decorate([
|
||||
typeorm_1.OneToMany((type) => Log_1.Log, (log) => log.usuario),
|
||||
__metadata("design:type", Array)
|
||||
], Usuario.prototype, "logs", void 0);
|
||||
Usuario = __decorate([
|
||||
typeorm_1.Entity(),
|
||||
typeorm_1.Unique(['id', 'correoAlternativo'])
|
||||
], Usuario);
|
||||
exports.Usuario = Usuario;
|
||||
//# sourceMappingURL=Usuario.js.map
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Usuario.js","sourceRoot":"","sources":["../../src/entity/Usuario.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,iCAAgC;AAEh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