'integer', 'status' => 'integer', ]; /** * 该等级下的门店 */ public function stores(): HasMany { return $this->hasMany(StoreModel::class, 'level_id', 'id'); } /** * 该等级下的商品价格 */ public function prices(): HasMany { return $this->hasMany(ProductPriceModel::class, 'level_id', 'id'); } }