Skip to content
Snippets Groups Projects

fix: added INE to people

Merged GUVEN Kemal requested to merge addStudentNum into master
4 files
+ 133
118
Compare changes
  • Side-by-side
  • Inline
Files
4
import { IsBoolean, IsString, IsNotEmpty, IsOptional } from 'class-validator';
export class CreatePeopleDto {
@IsString()
@IsNotEmpty()
firstname: string;
@IsString()
@IsNotEmpty()
lastname: string;
@IsOptional()
passwordHash: string;
@IsString()
@IsNotEmpty()
email: string;
@IsNotEmpty()
role: number;
}
\ No newline at end of file
import { IsBoolean, IsString, IsNotEmpty, IsOptional, IsNumber } from 'class-validator';
export class CreatePeopleDto {
@IsNumber()
@IsNotEmpty()
ine: number;
@IsString()
@IsNotEmpty()
firstname: string;
@IsString()
@IsNotEmpty()
lastname: string;
@IsOptional()
passwordHash: string;
@IsString()
@IsNotEmpty()
email: string;
@IsNotEmpty()
role: number;
}
Loading