<?php

namespace App\Http\Requests\Staff;

use App\Http\Requests\ApiFormRequest;

class StaffStoreRequest extends ApiFormRequest
{
    public function rules(): array
    {
        return [
            'user_id' => ['nullable', 'integer', 'min:1'],
            'firstname' => ['required', 'string', 'max:100'],
            'lastname' => ['required', 'string', 'max:100'],
            'email' => ['required', 'email', 'max:150'],
            'phone' => ['nullable', 'string', 'max:20'],
            'role_name' => ['required', 'string', 'max:100'],
            'school_year' => ['nullable', 'string', 'max:20'],
            'status' => ['nullable', 'string', 'max:40'],
        ];
    }
}
