商户订单

This commit is contained in:
liu
2026-06-17 10:52:47 +08:00
parent 8d52e863b9
commit 845bea4b81
35 changed files with 1716 additions and 0 deletions
@@ -0,0 +1,28 @@
<?php
namespace Modules\Merchant\Models;
use Illuminate\Database\Eloquent\Model;
class OrderItemModel extends Model
{
protected $table = 'order_items';
protected $fillable = [
'order_id',
'product_id',
'product_name',
'product_image',
'price',
'quantity',
'subtotal',
];
protected $casts = [
'order_id' => 'integer',
'product_id' => 'integer',
'price' => 'decimal:2',
'quantity' => 'integer',
'subtotal' => 'decimal:2',
];
}