Skip to main content

max / makenotwork

2.2 KB · 92 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "\n INSERT INTO subscription_tiers (project_id, name, description, price_cents)\n VALUES ($1, $2, $3, $4)\n RETURNING id AS \"id: SubscriptionTierId\", project_id AS \"project_id: ProjectId\",\n name, description, price_cents, stripe_product_id, stripe_price_id,\n sort_order, is_active,\n created_at AS \"created_at: chrono::DateTime<chrono::Utc>\",\n updated_at AS \"updated_at: chrono::DateTime<chrono::Utc>\",\n item_id AS \"item_id: ItemId\"\n ",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "id: SubscriptionTierId",
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": "name",
19 "type_info": "Varchar"
20 },
21 {
22 "ordinal": 3,
23 "name": "description",
24 "type_info": "Text"
25 },
26 {
27 "ordinal": 4,
28 "name": "price_cents",
29 "type_info": "Int4"
30 },
31 {
32 "ordinal": 5,
33 "name": "stripe_product_id",
34 "type_info": "Text"
35 },
36 {
37 "ordinal": 6,
38 "name": "stripe_price_id",
39 "type_info": "Text"
40 },
41 {
42 "ordinal": 7,
43 "name": "sort_order",
44 "type_info": "Int4"
45 },
46 {
47 "ordinal": 8,
48 "name": "is_active",
49 "type_info": "Bool"
50 },
51 {
52 "ordinal": 9,
53 "name": "created_at: chrono::DateTime<chrono::Utc>",
54 "type_info": "Timestamptz"
55 },
56 {
57 "ordinal": 10,
58 "name": "updated_at: chrono::DateTime<chrono::Utc>",
59 "type_info": "Timestamptz"
60 },
61 {
62 "ordinal": 11,
63 "name": "item_id: ItemId",
64 "type_info": "Uuid"
65 }
66 ],
67 "parameters": {
68 "Left": [
69 "Uuid",
70 "Varchar",
71 "Text",
72 "Int4"
73 ]
74 },
75 "nullable": [
76 false,
77 true,
78 false,
79 true,
80 false,
81 true,
82 true,
83 false,
84 false,
85 false,
86 false,
87 true
88 ]
89 },
90 "hash": "b607b021fbe1bb4347fc1e3468e06ad8d5183d6508b69bc68e545fe833857ca3"
91 }
92