From 482c8550d17b9c2b1394d951e52e5a555b1c77ce Mon Sep 17 00:00:00 2001 From: lemuel Date: Mon, 11 Jul 2022 02:34:03 -0500 Subject: [PATCH] institucion correo --- src/institucion/dto/input/update.dto.ts | 5 +++++ src/institucion/entity/institucion.entity.ts | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/institucion/dto/input/update.dto.ts b/src/institucion/dto/input/update.dto.ts index b7e2324..f0ed919 100644 --- a/src/institucion/dto/input/update.dto.ts +++ b/src/institucion/dto/input/update.dto.ts @@ -1,5 +1,6 @@ import { IsBoolean, + IsEmail, IsInt, IsNumber, IsOptional, @@ -14,6 +15,10 @@ export class UpdateInstitucionDto { @IsOptional() activo?: boolean; + @IsEmail() + @IsOptional() + correo?: number; + @IsNumber() @IsOptional() dias_multa_retraso?: number; diff --git a/src/institucion/entity/institucion.entity.ts b/src/institucion/entity/institucion.entity.ts index d2219a4..af589cf 100644 --- a/src/institucion/entity/institucion.entity.ts +++ b/src/institucion/entity/institucion.entity.ts @@ -19,6 +19,9 @@ export class Institucion { @Column({ type: String, nullable: true, length: 4 }) clave: string; + @Column({ type: String, nullable: false, length: 60, default: '' }) + correo: string; + @Column({ type: Number, nullable: false, default: 7 }) dias_multa_retraso: number;