初始化
缺陷:主题配色需要优化整体的同风格
This commit is contained in:
23
app/Models/business/OrderDeliveryModel.php
Normal file
23
app/Models/business/OrderDeliveryModel.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\business;
|
||||
|
||||
use App\BaseApp\BaseBusinessModel;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* 发货记录(cc_order_delivery)
|
||||
*
|
||||
* 一个订单可能分批发货,所以是一对多而不是订单表上的几个字段。
|
||||
*/
|
||||
class OrderDeliveryModel extends BaseBusinessModel
|
||||
{
|
||||
protected $table = 'order_delivery';
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public function order(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(OrderModel::class, 'order_id', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user