{ "db_name": "PostgreSQL", "query": "\n SELECT s.id AS \"id: SubscriptionId\", s.subscriber_id AS \"subscriber_id: UserId\",\n s.tier_id AS \"tier_id: SubscriptionTierId\", s.project_id AS \"project_id: ProjectId\",\n s.stripe_subscription_id, s.stripe_customer_id,\n 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 s.updated_at AS \"updated_at: chrono::DateTime\",\n s.item_id AS \"item_id: ItemId\",\n s.paused_at AS \"paused_at: chrono::DateTime\"\n FROM subscriptions s\n WHERE s.project_id IN (SELECT id FROM projects WHERE user_id = $1)\n AND s.status = 'active'\n AND s.paused_at IS NOT NULL\n ", "describe": { "columns": [ { "ordinal": 0, "name": "id: SubscriptionId", "type_info": "Uuid" }, { "ordinal": 1, "name": "subscriber_id: UserId", "type_info": "Uuid" }, { "ordinal": 2, "name": "tier_id: SubscriptionTierId", "type_info": "Uuid" }, { "ordinal": 3, "name": "project_id: ProjectId", "type_info": "Uuid" }, { "ordinal": 4, "name": "stripe_subscription_id", "type_info": "Text" }, { "ordinal": 5, "name": "stripe_customer_id", "type_info": "Text" }, { "ordinal": 6, "name": "status: super::SubscriptionStatus", "type_info": "Varchar" }, { "ordinal": 7, "name": "current_period_start: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 8, "name": "current_period_end: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 9, "name": "canceled_at: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 10, "name": "created_at: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 11, "name": "updated_at: chrono::DateTime", "type_info": "Timestamptz" }, { "ordinal": 12, "name": "item_id: ItemId", "type_info": "Uuid" }, { "ordinal": 13, "name": "paused_at: chrono::DateTime", "type_info": "Timestamptz" } ], "parameters": { "Left": [ "Uuid" ] }, "nullable": [ false, false, false, true, false, false, false, true, true, true, false, false, true, true ] }, "hash": "1853806ae9a67639dee409c4e4a5e6ac648a5ecc2a8f652283e3b9e4ebe95b1a" }