25 lines
600 B
TypeScript
25 lines
600 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
|
|
|
export class CreateMyRestaurantAdminDto {
|
|
@ApiProperty({ description: 'Mobile phone number' })
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
phone!: string;
|
|
|
|
@ApiProperty({ description: 'First name', required: false })
|
|
@IsOptional()
|
|
@IsString()
|
|
firstName?: string;
|
|
|
|
@ApiProperty({ description: 'Last name', required: false })
|
|
@IsOptional()
|
|
@IsString()
|
|
lastName?: string;
|
|
|
|
@ApiProperty({ description: 'Role id for the admin' })
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
roleId!: string;
|
|
}
|