{ "db_name": "PostgreSQL", "query": "\n SELECT p.title AS project_title, t.name AS tier_name, t.price_cents,\n u.username, s.status AS \"status: super::SubscriptionStatus\",\n s.current_period_start AS \"current_period_start: chrono::DateTime\",\n s.current_period_end AS \"current_period_end: chrono::DateTime\",\n s.canceled_at AS \"canceled_at: chrono::DateTime\",\n s.created_at AS \"created_at: chrono::DateTime\"\n FROM subscriptions s\n JOIN users u ON u.id = s.subscriber_id\n JOIN subscription_tiers t ON t.id = s.tier_id\n JOIN projects p ON p.id = s.project_id\n WHERE s.project_id IN (SELECT id FROM projects WHERE user_id = $1)\n ORDER BY s.created_at DESC, s.id DESC\n LIMIT $2 OFFSET $3\n ", "describe": { "columns": [ { "ordinal": 0, "name": "project_title", "type_info": "Varchar" }, { "ordinal": 1, "name": "tier_name", "type_info": "Varchar" }, { "ordinal": 2, "name": "price_cents", "type_info": "Int4" }, { "ordinal": 3, "name": "username", "type_info": "Varchar" }, { "ordinal": 4, "name": "status: super::SubscriptionStatus", "type_info": "Varchar" }, { "ordinal": 5, "name": "current_period_start: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 6, "name": "current_period_end: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 7, "name": "canceled_at: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 8, "name": "created_at: chrono::DateTime", "type_info": "Timestamptz" } ], "parameters": { "Left": [ "Uuid", "Int8", "Int8" ] }, "nullable": [ false, false, false, false, false, true, true, true, false ] }, "hash": "169ed0d8f74cc69847d5d63b6a1d3b3f4d277cd3540036c7d5278ddc139a3340" }