<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SerenataRoutePlan extends Model
{
    protected $fillable = [
        'organization_id',
        'serenata_id',
        'created_by_user_id',
        'plan_date',
        'city',
        'mariachi_key',
        'mariachi_label',
        'column_key',
        'column_label',
        'route_order',
    ];

    protected $casts = [
        'organization_id' => 'integer',
        'serenata_id' => 'integer',
        'created_by_user_id' => 'integer',
        'plan_date' => 'date',
        'route_order' => 'integer',
    ];

    public function serenata()
    {
        return $this->belongsTo(Serenata::class);
    }
}
