<?php

namespace App\Http\Requests;

use Illuminate\Validation\Rule;


class SyncOrderSongRequest extends ApiRequest
{
    public function rules(): array
    {
        return [
            'api_token'     => 'required|exists:room_sessions,api_token',
            'from_by'       => 'nullable',
            'order_number'  => 'required|integer',
            'song_id'       => 'required|exists:songs,id',
            'song_name'     => 'nullable',
            'artist_name'   => 'nullable',
            'status'        => 'required|in:NotPlayed,Playing,Played,NoFile,Skipped,InsertPlayback',
            'ordered_at'    => 'required',
            'started_at'    => 'nullable',
            'finished_at'   => 'nullable',
        ];
    }
}