fix : 주문 테이블 모델링 -> 추후 변경예정 (견적, 수주, 발주에 대한 각각의 컬럼을 위한 테이블 필요)
This commit is contained in:
20
app/Models/Orders/OrderHistory.php
Normal file
20
app/Models/Orders/OrderHistory.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Orders;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class OrderHistory extends Model
|
||||
{
|
||||
// 이력/메모
|
||||
protected $table = 'order_histories';
|
||||
|
||||
protected $fillable = [
|
||||
'tenant_id', 'order_id', 'history_type', 'content', 'created_by'
|
||||
];
|
||||
|
||||
public function order()
|
||||
{
|
||||
return $this->belongsTo(Order::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user