pub async fn count_deployments_by_app( pool: &Pool<MySql>, app_id: i64, ) -> Result<i64>
Counts the number of deployments for a specific application.