<?php

/*
 * This file is part of fof/ban-ips.
 *
 * Copyright (c) FriendsOfFlarum.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace FoF\BanIPs\Validators;

use Flarum\Foundation\AbstractValidator;

class BannedIPValidator extends AbstractValidator
{
    protected $rules = [
        'creatorId'  => ['required', 'integer'],
        'address'    => ['required', 'ip', 'unique:banned_ips,address'],
        'reason'     => ['nullable', 'string'],
    ];
}
