forked from
tranquil.farm/tranquil-pds
Our Personal Data Server from scratch!
1{
2 "db_name": "PostgreSQL",
3 "query": "\n SELECT\n created_at,\n channel as \"channel: CommsChannel\",\n comms_type as \"comms_type: CommsType\",\n status as \"status: CommsStatus\",\n subject,\n body\n FROM comms_queue\n WHERE user_id = $1\n ORDER BY created_at DESC\n LIMIT $2\n ",
4 "describe": {
5 "columns": [
6 {
7 "ordinal": 0,
8 "name": "created_at",
9 "type_info": "Timestamptz"
10 },
11 {
12 "ordinal": 1,
13 "name": "channel: CommsChannel",
14 "type_info": {
15 "Custom": {
16 "name": "comms_channel",
17 "kind": {
18 "Enum": [
19 "email",
20 "discord",
21 "telegram",
22 "signal"
23 ]
24 }
25 }
26 }
27 },
28 {
29 "ordinal": 2,
30 "name": "comms_type: CommsType",
31 "type_info": {
32 "Custom": {
33 "name": "comms_type",
34 "kind": {
35 "Enum": [
36 "welcome",
37 "email_verification",
38 "password_reset",
39 "email_update",
40 "account_deletion",
41 "admin_email",
42 "plc_operation",
43 "two_factor_code",
44 "channel_verification",
45 "passkey_recovery",
46 "legacy_login_alert",
47 "migration_verification"
48 ]
49 }
50 }
51 }
52 },
53 {
54 "ordinal": 3,
55 "name": "status: CommsStatus",
56 "type_info": {
57 "Custom": {
58 "name": "comms_status",
59 "kind": {
60 "Enum": [
61 "pending",
62 "processing",
63 "sent",
64 "failed"
65 ]
66 }
67 }
68 }
69 },
70 {
71 "ordinal": 4,
72 "name": "subject",
73 "type_info": "Text"
74 },
75 {
76 "ordinal": 5,
77 "name": "body",
78 "type_info": "Text"
79 }
80 ],
81 "parameters": {
82 "Left": [
83 "Uuid",
84 "Int8"
85 ]
86 },
87 "nullable": [
88 false,
89 false,
90 false,
91 false,
92 true,
93 false
94 ]
95 },
96 "hash": "25309f4a08845a49557d694ad9b5b9a137be4dcce28e9293551c8c3fd40fdd86"
97}