商户订单
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user