| 1 |
{ |
| 2 |
"db_name": "PostgreSQL", |
| 3 |
"query": "SELECT id AS \"id: PromoCodeId\", creator_id AS \"creator_id: UserId\", code,\n code_purpose AS \"code_purpose: super::CodePurpose\",\n discount_type AS \"discount_type: DiscountType\", discount_value, min_price_cents,\n trial_days, item_id AS \"item_id: ItemId\", project_id AS \"project_id: ProjectId\",\n tier_id AS \"tier_id: SubscriptionTierId\", max_uses, use_count,\n expires_at AS \"expires_at: chrono::DateTime<chrono::Utc>\",\n starts_at AS \"starts_at: chrono::DateTime<chrono::Utc>\",\n created_at AS \"created_at: chrono::DateTime<chrono::Utc>\", is_platform_wide\n FROM promo_codes\n WHERE code_purpose = 'free_trial' AND is_platform_wide = true\n ORDER BY created_at DESC LIMIT 500", |
| 4 |
"describe": { |
| 5 |
"columns": [ |
| 6 |
{ |
| 7 |
"ordinal": 0, |
| 8 |
"name": "id: PromoCodeId", |
| 9 |
"type_info": "Uuid" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"ordinal": 1, |
| 13 |
"name": "creator_id: UserId", |
| 14 |
"type_info": "Uuid" |
| 15 |
}, |
| 16 |
{ |
| 17 |
"ordinal": 2, |
| 18 |
"name": "code", |
| 19 |
"type_info": "Text" |
| 20 |
}, |
| 21 |
{ |
| 22 |
"ordinal": 3, |
| 23 |
"name": "code_purpose: super::CodePurpose", |
| 24 |
"type_info": "Text" |
| 25 |
}, |
| 26 |
{ |
| 27 |
"ordinal": 4, |
| 28 |
"name": "discount_type: DiscountType", |
| 29 |
"type_info": "Text" |
| 30 |
}, |
| 31 |
{ |
| 32 |
"ordinal": 5, |
| 33 |
"name": "discount_value", |
| 34 |
"type_info": "Int4" |
| 35 |
}, |
| 36 |
{ |
| 37 |
"ordinal": 6, |
| 38 |
"name": "min_price_cents", |
| 39 |
"type_info": "Int4" |
| 40 |
}, |
| 41 |
{ |
| 42 |
"ordinal": 7, |
| 43 |
"name": "trial_days", |
| 44 |
"type_info": "Int4" |
| 45 |
}, |
| 46 |
{ |
| 47 |
"ordinal": 8, |
| 48 |
"name": "item_id: ItemId", |
| 49 |
"type_info": "Uuid" |
| 50 |
}, |
| 51 |
{ |
| 52 |
"ordinal": 9, |
| 53 |
"name": "project_id: ProjectId", |
| 54 |
"type_info": "Uuid" |
| 55 |
}, |
| 56 |
{ |
| 57 |
"ordinal": 10, |
| 58 |
"name": "tier_id: SubscriptionTierId", |
| 59 |
"type_info": "Uuid" |
| 60 |
}, |
| 61 |
{ |
| 62 |
"ordinal": 11, |
| 63 |
"name": "max_uses", |
| 64 |
"type_info": "Int4" |
| 65 |
}, |
| 66 |
{ |
| 67 |
"ordinal": 12, |
| 68 |
"name": "use_count", |
| 69 |
"type_info": "Int4" |
| 70 |
}, |
| 71 |
{ |
| 72 |
"ordinal": 13, |
| 73 |
"name": "expires_at: chrono::DateTime<chrono::Utc>", |
| 74 |
"type_info": "Timestamptz" |
| 75 |
}, |
| 76 |
{ |
| 77 |
"ordinal": 14, |
| 78 |
"name": "starts_at: chrono::DateTime<chrono::Utc>", |
| 79 |
"type_info": "Timestamptz" |
| 80 |
}, |
| 81 |
{ |
| 82 |
"ordinal": 15, |
| 83 |
"name": "created_at: chrono::DateTime<chrono::Utc>", |
| 84 |
"type_info": "Timestamptz" |
| 85 |
}, |
| 86 |
{ |
| 87 |
"ordinal": 16, |
| 88 |
"name": "is_platform_wide", |
| 89 |
"type_info": "Bool" |
| 90 |
} |
| 91 |
], |
| 92 |
"parameters": { |
| 93 |
"Left": [] |
| 94 |
}, |
| 95 |
"nullable": [ |
| 96 |
false, |
| 97 |
false, |
| 98 |
false, |
| 99 |
false, |
| 100 |
true, |
| 101 |
true, |
| 102 |
false, |
| 103 |
true, |
| 104 |
true, |
| 105 |
true, |
| 106 |
true, |
| 107 |
true, |
| 108 |
false, |
| 109 |
true, |
| 110 |
true, |
| 111 |
false, |
| 112 |
false |
| 113 |
] |
| 114 |
}, |
| 115 |
"hash": "4e890b52d4511801ebd53a6b9e127e8241b6447d693295a2d549c95e9fa7013b" |
| 116 |
} |
| 117 |
|