import { ApiProperty } from "@nestjs/swagger"
import { IsInt, IsNotEmpty } from "class-validator"

export class CreateRolePermissionDto {
  @ApiProperty({ example: 1 })
  @IsInt()
  @IsNotEmpty()
  role_id: number

  @ApiProperty({ example: 2 })
  @IsInt()
  @IsNotEmpty()
  permission_id: number

  @ApiProperty({ example: 3 })
  @IsInt()
  @IsNotEmpty()
  module_id: number
}
