import { Modules, Roles } from "prisma/postgres/generated/prisma/client/postgres/client";
import { IsArray, IsEmail, IsEnum, IsString } from "class-validator";

export class UserDto {
    @IsString() first_name: string;
    @IsString() last_name: string;
    @IsEmail() email: string;
    @IsEnum(Roles) role: string;
    @IsArray() @IsEnum(Modules, { each: true }) user_module_access!: Modules[];
}