is not empty
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user