add: new column in user
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsNotEmpty, IsUUID } from 'class-validator';
|
||||
import { IsNotEmpty, IsOptional, IsUUID } from 'class-validator';
|
||||
import { Partner } from '../entities/partner.entity';
|
||||
|
||||
export class CreateUserDto {
|
||||
@@ -20,6 +20,15 @@ export class CreateUserDto {
|
||||
@IsNotEmpty()
|
||||
superior: boolean;
|
||||
|
||||
@IsOptional()
|
||||
identity_number: string;
|
||||
|
||||
@IsOptional()
|
||||
image_identity: string;
|
||||
|
||||
@IsOptional()
|
||||
image_store: string;
|
||||
|
||||
partner: Partner;
|
||||
// @ValidateIf((o) => {
|
||||
// return !!o.superior;
|
||||
|
||||
Reference in New Issue
Block a user