'integer', 'price' => 'decimal:2', 'total_amount' => 'decimal:2', ]; // 关联售后主表 public function afterSale(): BelongsTo { return $this->belongsTo(AfterSale::class, 'after_sale_id'); } // 关联原订单项 public function orderItem(): BelongsTo { return $this->belongsTo(OrderItem::class, 'order_item_id'); } }