<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class MoodRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'mood_score' => 'required|integer|min:1|max:10',
            'notes' => 'nullable|string|max:1000',
            'entry_date' => 'nullable|date|before_or_equal:today',
        ];
    }
}
