import { IsString, IsObject } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class CreateRoleDto {
  @ApiProperty({
    description: 'Name of the role',
    example: 'Custom Moderator',
  })
  @IsString()
  role_name: string;

  @ApiProperty({
    description: 'Permissions object for the role',
    example: {
      can_manage_server: false,
      can_manage_plugins: true,
      can_view_console: true,
      can_execute_commands: false,
    },
  })
  @IsObject()
  permissions: Record<string, any>;

}
