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;