<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class MeetingStoreRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'opportunity_id' => ['required', 'exists:opportunities,id'],
            'title' => ['required', 'string', 'max:255'],
            'scheduled_at' => ['nullable', 'date'],
            'meeting_type' => ['nullable', 'string', 'max:255'],
            'meeting_source' => ['nullable', 'string', 'max:255'],
            'raw_notes' => ['nullable', 'string'],
        ];
    }
}
