import { IsNotEmpty, IsString, IsOptional, IsNumber } from "class-validator"

export class CreatePermissionDto {
  @IsNotEmpty()
  @IsString()
  group_key: string

  @IsNotEmpty()
  @IsString()
  permission_key: string

  @IsNotEmpty()
  @IsString()
  label: string

  @IsOptional()
  @IsString()
  description?: string

  @IsOptional()
  @IsNumber()
  status?: number
}
