2022-08-06 15:25:13 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
class BusinessOrderItem extends Model
|
|
|
|
|
{
|
2022-08-10 23:45:03 +08:00
|
|
|
protected $fillable = [
|
|
|
|
|
'shop_id',
|
|
|
|
|
'business_order_id',
|
|
|
|
|
'already_cancel_number',
|
|
|
|
|
'cancel_status',
|
|
|
|
|
'category_name',
|
|
|
|
|
'external_sku_id',
|
|
|
|
|
'goods_amount',
|
|
|
|
|
'goods_cost_price',
|
|
|
|
|
'goods_id',
|
|
|
|
|
'goods_name',
|
|
|
|
|
'goods_number',
|
|
|
|
|
'goods_price',
|
|
|
|
|
'goods_purchase_price',
|
|
|
|
|
'goods_specification',
|
|
|
|
|
'help_sell_amount',
|
|
|
|
|
'is_supplier',
|
|
|
|
|
'need_verification_number',
|
|
|
|
|
'shipping_status',
|
|
|
|
|
'sku_id',
|
|
|
|
|
'sub_order_sn',
|
|
|
|
|
'theoretically_refund_amount',
|
|
|
|
|
'thumb_url',
|
|
|
|
|
'verification_number',
|
|
|
|
|
];
|
2022-08-06 16:38:04 +08:00
|
|
|
|
|
|
|
|
public function order()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasOne(BusinessOrder::class, 'id', 'business_order_id');
|
|
|
|
|
}
|
2022-08-12 13:30:32 +08:00
|
|
|
|
|
|
|
|
public function shop()
|
|
|
|
|
{
|
|
|
|
|
return $this->hasOne(Shop::class, 'id', 'shop_id');
|
|
|
|
|
}
|
2022-08-06 15:25:13 +08:00
|
|
|
}
|