<?php

namespace App\Models\Orders;

use Illuminate\Database\Eloquent\Model;

/**
 * @mixin IdeHelperOrderVersion
 */
class OrderVersion extends Model
{
    // 주문 버전관리(변경사항만 저장)
    protected $table = 'order_versions';

    protected $fillable = [
        'tenant_id', 'order_id', 'version_no', 'version_type', 'status_code', 'changed_fields', 'created_by', 'change_note',
    ];

    public function order()
    {
        return $this->belongsTo(Order::class);
    }
}
