MatchType::class, 'item_id' => 'integer', 'batch_size' => 'integer', 'matched_orders' => 'integer', 'total_amount' => 'decimal:5', 'success' => 'boolean', 'execution_time_ms' => 'integer', ]; /** * 获取关联的商品信息 * * @return BelongsTo */ public function item(): BelongsTo { return $this->belongsTo(Item::class, 'item_id'); } }