<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Status
 *
 * @property int $id
 * @property string $name
 * @property int $handling_days
 * @property string|null $color
 * @property-read \App\Models\Status $status
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Status whereColor($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Status whereHandlingDays($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Status whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Status whereName($value)
 * @mixin \Eloquent
 */
class Status extends Model
{
    protected $connection = 'mysql';

    protected $table = 'status';

    public function status()
    {
        return $this->belongsTo('App\Models\Status', 'status_id', 'id');
    }
}
