<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class ReportOrder extends Model
{
    protected $fillable = [
        'report_id',
        'column',
        'direction',
        'order',
    ];

    protected $casts = [
        'order' => 'integer',
    ];

    public function report(): BelongsTo
    {
        return $this->belongsTo(Report::class);
    }
}
