Skip to main content

max / makenotwork

2.0 KB · 71 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "\n SELECT s.id AS \"id: SubscriptionId\", s.project_id AS \"project_id!: ProjectId\",\n p.title AS project_title, p.slug AS \"project_slug: super::Slug\",\n t.name AS tier_name, t.price_cents, s.status AS \"status: super::SubscriptionStatus\",\n s.current_period_end AS \"current_period_end: chrono::DateTime<chrono::Utc>\",\n s.stripe_subscription_id\n FROM subscriptions s\n JOIN projects p ON p.id = s.project_id\n JOIN subscription_tiers t ON t.id = s.tier_id\n WHERE s.subscriber_id = $1\n ORDER BY s.created_at DESC\n LIMIT 1000\n ",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "id: SubscriptionId",
9 "type_info": "Uuid"
10 },
11 {
12 "ordinal": 1,
13 "name": "project_id!: ProjectId",
14 "type_info": "Uuid"
15 },
16 {
17 "ordinal": 2,
18 "name": "project_title",
19 "type_info": "Varchar"
20 },
21 {
22 "ordinal": 3,
23 "name": "project_slug: super::Slug",
24 "type_info": "Varchar"
25 },
26 {
27 "ordinal": 4,
28 "name": "tier_name",
29 "type_info": "Varchar"
30 },
31 {
32 "ordinal": 5,
33 "name": "price_cents",
34 "type_info": "Int4"
35 },
36 {
37 "ordinal": 6,
38 "name": "status: super::SubscriptionStatus",
39 "type_info": "Varchar"
40 },
41 {
42 "ordinal": 7,
43 "name": "current_period_end: chrono::DateTime<chrono::Utc>",
44 "type_info": "Timestamptz"
45 },
46 {
47 "ordinal": 8,
48 "name": "stripe_subscription_id",
49 "type_info": "Text"
50 }
51 ],
52 "parameters": {
53 "Left": [
54 "Uuid"
55 ]
56 },
57 "nullable": [
58 false,
59 true,
60 false,
61 false,
62 false,
63 false,
64 false,
65 true,
66 false
67 ]
68 },
69 "hash": "1612ae70defc4a469401a1fff74a1ba595fee86f372fb457b2f1316de9f2bf93"
70 }
71