fix: add user detail on create member

This commit is contained in:
ilham
2021-12-16 13:37:44 +07:00
parent 8c5e944cc8
commit dcad18339b
5 changed files with 36 additions and 10 deletions

View File

@@ -1,10 +1,17 @@
import { IsNotEmpty, IsOptional, IsUUID, ValidateIf } from 'class-validator';
import { Partner } from '../entities/partner.entity';
import { Column } from 'typeorm';
export class CreateUserDto {
@IsNotEmpty()
username: string;
@IsNotEmpty()
name: string;
@IsNotEmpty()
phone_number: string;
@IsNotEmpty()
password: string;