profesorDto
This commit is contained in:
@@ -1,6 +1,101 @@
|
||||
import { IsBoolean, IsDate, IsEmail, IsEmpty, IsNotEmpty, IsNumber, IsString, Length,} from "class-validator";
|
||||
|
||||
export class profesorDto{
|
||||
|
||||
@IsNumber()
|
||||
@IsNotEmpty()
|
||||
@Length(11)
|
||||
id_profesor: number;
|
||||
|
||||
username:string
|
||||
@IsNumber()
|
||||
@IsNotEmpty()
|
||||
@Length(11)
|
||||
id_usuario: number;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(10)
|
||||
num_trabajador: string;
|
||||
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
@Length(80)
|
||||
nombre: string;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(10)
|
||||
rfc: string;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(3)
|
||||
homoclave: string;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(13)
|
||||
tel_oficina: string;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(10)
|
||||
extension: string;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(13)
|
||||
tel_personal: string;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(65)
|
||||
correo_pcp: string;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(65)
|
||||
correo_per: string;
|
||||
|
||||
@IsNumber()
|
||||
@IsEmpty()
|
||||
@Length(11)
|
||||
id_adscripcion: number;
|
||||
|
||||
@IsNumber()
|
||||
@IsEmpty()
|
||||
@Length(11)
|
||||
id_categoria: number;
|
||||
|
||||
@IsNumber()
|
||||
@IsEmpty()
|
||||
@Length(11)
|
||||
id_edificio: number;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(256)
|
||||
ubicacion: string;
|
||||
|
||||
@IsString()
|
||||
@IsEmpty()
|
||||
@Length(150)
|
||||
fotografia: string;
|
||||
|
||||
@IsBoolean()
|
||||
@IsNotEmpty()
|
||||
activo: boolean = false;
|
||||
|
||||
@IsBoolean()
|
||||
@IsNotEmpty()
|
||||
mostrar: boolean = true;
|
||||
|
||||
@IsDate()
|
||||
@IsNotEmpty()
|
||||
fecha_alta: Date;
|
||||
|
||||
@IsDate()
|
||||
@IsNotEmpty()
|
||||
fecha_actualizacion: Date;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user