'integer', 'min_price' => 'decimal:5', 'max_price' => 'decimal:5', 'protection_threshold' => 'integer', 'is_enabled' => 'boolean', ]; /** * 物品关联 * @return \Illuminate\Database\Eloquent\Relations\HasOne */ public function item() { return $this->hasOne(Item::class, 'id', 'item_id'); } }