fix : 주문 테이블 모델링 -> 추후 변경예정 (견적, 수주, 발주에 대한 각각의 컬럼을 위한 테이블 필요)

This commit is contained in:
2025-07-29 23:22:31 +09:00
parent 511c09fd19
commit 2a0f3471a8
5 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Models\Orders;
use Illuminate\Database\Eloquent\Model;
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);
}
}