<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * @package App\Models
 * @property int $id
 * @property int $order_id
 * @property int $user_id
 * @property string $comment
 * @property string $type
 */
class OrdersComment extends Model
{
    protected $guarded = ['id'];

    protected $table = 'orders_comments';

    public function user()
    {
        return $this->belongsTo(Staff::class, 'user_id', 'id');
    }
}
