<?php

namespace App\Http\Requests\Finance;

use Illuminate\Foundation\Http\FormRequest;

class EventChargeLifecycleRequest extends FormRequest
{
    public function authorize(): bool { return true; }
    public function rules(): array
    {
        return [
            'event_id' => ['nullable','integer'],
            'parent_id' => ['nullable','integer'],
            'student_id' => ['nullable','integer'],
            'school_year' => ['nullable','string','max:20'],
            'semester' => ['nullable','string','max:40'],
            'event_name' => ['nullable','string','max:255'],
            'title' => ['nullable','string','max:255'],
            'description' => ['nullable','string'],
            'amount' => ['nullable','numeric','min:0'],
            'invoice_id' => ['nullable','integer'],
        ];
    }
}
