From 86deec73800d9d245c34137c571ea9e206446d9c Mon Sep 17 00:00:00 2001 From: xXpuma99Xx <51341582+xXpuma99Xx@users.noreply.github.com> Date: Mon, 2 May 2022 10:46:21 -0500 Subject: [PATCH] admin info --- ...ql => 12-institucion_tipo_carrito copy.sql} | 0 sql/13-Admin.sql | 2 ++ src/cron/cron.controller.spec.ts | 18 ------------------ src/usuario/entity/usuario.entity.ts | 6 +++--- 4 files changed, 5 insertions(+), 21 deletions(-) rename sql/{12-institucion_tipo_carrito.sql => 12-institucion_tipo_carrito copy.sql} (100%) create mode 100644 sql/13-Admin.sql delete mode 100644 src/cron/cron.controller.spec.ts diff --git a/sql/12-institucion_tipo_carrito.sql b/sql/12-institucion_tipo_carrito copy.sql similarity index 100% rename from sql/12-institucion_tipo_carrito.sql rename to sql/12-institucion_tipo_carrito copy.sql diff --git a/sql/13-Admin.sql b/sql/13-Admin.sql new file mode 100644 index 0000000..10dbdb7 --- /dev/null +++ b/sql/13-Admin.sql @@ -0,0 +1,2 @@ +INSERT INTO operador(activo, operador, password, id_tipo_usuario) VALUES (true, '', '', 1); +INSERT INTO operador(activo, operador, password, id_tipo_usuario) VALUES (true, '', '', 2); diff --git a/src/cron/cron.controller.spec.ts b/src/cron/cron.controller.spec.ts deleted file mode 100644 index b723ad7..0000000 --- a/src/cron/cron.controller.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { CronController } from './cron.controller'; - -describe('CronController', () => { - let controller: CronController; - - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - controllers: [CronController], - }).compile(); - - controller = module.get(CronController); - }); - - it('should be defined', () => { - expect(controller).toBeDefined(); - }); -}); diff --git a/src/usuario/entity/usuario.entity.ts b/src/usuario/entity/usuario.entity.ts index b7423b9..99269c9 100644 --- a/src/usuario/entity/usuario.entity.ts +++ b/src/usuario/entity/usuario.entity.ts @@ -26,17 +26,17 @@ export class Usuario { nombre: string; @Column({ type: String, nullable: true, length: 60, default: null }) - password: string; + password?: string; @Column({ type: String, nullable: true, length: 10, default: null }) - telefono: string; + telefono?: string; @Column({ type: String, nullable: false, length: 10 }) usuario: string; @ManyToOne(() => InstitucionCarrera, (institucionCarrera) => institucionCarrera.usuarios) @JoinColumn({ name: 'id_institucion_carrera' }) - carrera: InstitucionCarrera; + carrera?: InstitucionCarrera; @ManyToOne(() => Institucion, (institucion) => institucion.usuarios) @JoinColumn({ name: 'id_institucion' })