belongsTo(Drugstore::class, 'drugstore_id'); } /** * @comment 库存(单) * * @return HasOne */ public function drugstoreDrug(): HasOne { return $this->hasOne(DrugstoreDrug::class, 'drugstore_id', 'drugstore_id'); } }