| 1 |
{ |
| 2 |
"db_name": "PostgreSQL", |
| 3 |
"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<chrono::Utc>\",\n s.current_period_end AS \"current_period_end: chrono::DateTime<chrono::Utc>\",\n s.canceled_at AS \"canceled_at: chrono::DateTime<chrono::Utc>\",\n s.created_at AS \"created_at: chrono::DateTime<chrono::Utc>\",\n s.updated_at AS \"updated_at: chrono::DateTime<chrono::Utc>\",\n s.item_id AS \"item_id: ItemId\",\n s.paused_at AS \"paused_at: chrono::DateTime<chrono::Utc>\"\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 NULL\n ", |
| 4 |
"describe": { |
| 5 |
"columns": [ |
| 6 |
{ |
| 7 |
"ordinal": 0, |
| 8 |
"name": "id: SubscriptionId", |
| 9 |
"type_info": "Uuid" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"ordinal": 1, |
| 13 |
"name": "subscriber_id: UserId", |
| 14 |
"type_info": "Uuid" |
| 15 |
}, |
| 16 |
{ |
| 17 |
"ordinal": 2, |
| 18 |
"name": "tier_id: SubscriptionTierId", |
| 19 |
"type_info": "Uuid" |
| 20 |
}, |
| 21 |
{ |
| 22 |
"ordinal": 3, |
| 23 |
"name": "project_id: ProjectId", |
| 24 |
"type_info": "Uuid" |
| 25 |
}, |
| 26 |
{ |
| 27 |
"ordinal": 4, |
| 28 |
"name": "stripe_subscription_id", |
| 29 |
"type_info": "Text" |
| 30 |
}, |
| 31 |
{ |
| 32 |
"ordinal": 5, |
| 33 |
"name": "stripe_customer_id", |
| 34 |
"type_info": "Text" |
| 35 |
}, |
| 36 |
{ |
| 37 |
"ordinal": 6, |
| 38 |
"name": "status: super::SubscriptionStatus", |
| 39 |
"type_info": "Varchar" |
| 40 |
}, |
| 41 |
{ |
| 42 |
"ordinal": 7, |
| 43 |
"name": "current_period_start: chrono::DateTime<chrono::Utc>", |
| 44 |
"type_info": "Timestamptz" |
| 45 |
}, |
| 46 |
{ |
| 47 |
"ordinal": 8, |
| 48 |
"name": "current_period_end: chrono::DateTime<chrono::Utc>", |
| 49 |
"type_info": "Timestamptz" |
| 50 |
}, |
| 51 |
{ |
| 52 |
"ordinal": 9, |
| 53 |
"name": "canceled_at: chrono::DateTime<chrono::Utc>", |
| 54 |
"type_info": "Timestamptz" |
| 55 |
}, |
| 56 |
{ |
| 57 |
"ordinal": 10, |
| 58 |
"name": "created_at: chrono::DateTime<chrono::Utc>", |
| 59 |
"type_info": "Timestamptz" |
| 60 |
}, |
| 61 |
{ |
| 62 |
"ordinal": 11, |
| 63 |
"name": "updated_at: chrono::DateTime<chrono::Utc>", |
| 64 |
"type_info": "Timestamptz" |
| 65 |
}, |
| 66 |
{ |
| 67 |
"ordinal": 12, |
| 68 |
"name": "item_id: ItemId", |
| 69 |
"type_info": "Uuid" |
| 70 |
}, |
| 71 |
{ |
| 72 |
"ordinal": 13, |
| 73 |
"name": "paused_at: chrono::DateTime<chrono::Utc>", |
| 74 |
"type_info": "Timestamptz" |
| 75 |
} |
| 76 |
], |
| 77 |
"parameters": { |
| 78 |
"Left": [ |
| 79 |
"Uuid" |
| 80 |
] |
| 81 |
}, |
| 82 |
"nullable": [ |
| 83 |
false, |
| 84 |
false, |
| 85 |
false, |
| 86 |
true, |
| 87 |
false, |
| 88 |
false, |
| 89 |
false, |
| 90 |
true, |
| 91 |
true, |
| 92 |
true, |
| 93 |
false, |
| 94 |
false, |
| 95 |
true, |
| 96 |
true |
| 97 |
] |
| 98 |
}, |
| 99 |
"hash": "b510fbb1597825ebd8e5904f960411aadcfb42d56da5f9b1552c52abc753f60b" |
| 100 |
} |
| 101 |
|