'integer', 'order_date' => 'date:Y-m-d', 'total_quantity' => 'decimal:2', 'total_weight' => 'decimal:3', 'total_amount' => 'decimal:2', 'status' => 'integer', ]; /** * 下单门店 */ public function store(): BelongsTo { return $this->belongsTo(StoreModel::class, 'store_id', 'id'); } /** * 订单明细 */ public function items(): HasMany { return $this->hasMany(StoreOrderItemModel::class, 'order_id', 'id'); } }