is not empty

This commit is contained in:
xXpuma99Xx
2022-07-24 22:35:00 -05:00
parent 79996060ef
commit 254504f7a9
77 changed files with 511 additions and 301 deletions
@@ -1,6 +1,8 @@
import { IsString } from 'class-validator';
import { IsNotEmpty, IsString, MaxLength } from 'class-validator';
export class CreateProgramaDto {
@IsString()
@IsNotEmpty()
@MaxLength(40)
programa: string;
}
@@ -8,7 +8,7 @@ export class Programa {
@PrimaryGeneratedColumn()
id_programa: number;
@Column({ type: String, nullable: false, length: 100 })
@Column({ type: String, nullable: false, length: 40 })
programa: string;
@OneToMany(