@happyvertical/smrt-messages 0.40.69 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.json +797 -193
- package/dist/smrt-knowledge.json +35 -3
- package/package.json +8 -8
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-messages",
|
|
5
|
-
"packageVersion": "0.
|
|
5
|
+
"packageVersion": "0.41.0",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-messages:AccountCollection": {
|
|
8
8
|
"name": "accountcollection",
|
|
@@ -157,12 +157,6 @@
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
"indexes": [
|
|
160
|
-
{
|
|
161
|
-
"name": "account_collections_id_idx",
|
|
162
|
-
"columns": [
|
|
163
|
-
"id"
|
|
164
|
-
]
|
|
165
|
-
},
|
|
166
160
|
{
|
|
167
161
|
"name": "account_collections_slug_context_idx",
|
|
168
162
|
"columns": [
|
|
@@ -170,6 +164,12 @@
|
|
|
170
164
|
"context"
|
|
171
165
|
],
|
|
172
166
|
"unique": true
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "account_collections_created_at_idx",
|
|
170
|
+
"columns": [
|
|
171
|
+
"created_at"
|
|
172
|
+
]
|
|
173
173
|
}
|
|
174
174
|
],
|
|
175
175
|
"version": "766c026b"
|
|
@@ -427,12 +427,6 @@
|
|
|
427
427
|
}
|
|
428
428
|
},
|
|
429
429
|
"indexes": [
|
|
430
|
-
{
|
|
431
|
-
"name": "attachment_collections_id_idx",
|
|
432
|
-
"columns": [
|
|
433
|
-
"id"
|
|
434
|
-
]
|
|
435
|
-
},
|
|
436
430
|
{
|
|
437
431
|
"name": "attachment_collections_slug_context_idx",
|
|
438
432
|
"columns": [
|
|
@@ -440,6 +434,12 @@
|
|
|
440
434
|
"context"
|
|
441
435
|
],
|
|
442
436
|
"unique": true
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "attachment_collections_created_at_idx",
|
|
440
|
+
"columns": [
|
|
441
|
+
"created_at"
|
|
442
|
+
]
|
|
443
443
|
}
|
|
444
444
|
],
|
|
445
445
|
"version": "d1da2552"
|
|
@@ -519,12 +519,6 @@
|
|
|
519
519
|
}
|
|
520
520
|
},
|
|
521
521
|
"indexes": [
|
|
522
|
-
{
|
|
523
|
-
"name": "blacklist_collections_id_idx",
|
|
524
|
-
"columns": [
|
|
525
|
-
"id"
|
|
526
|
-
]
|
|
527
|
-
},
|
|
528
522
|
{
|
|
529
523
|
"name": "blacklist_collections_slug_context_idx",
|
|
530
524
|
"columns": [
|
|
@@ -532,6 +526,12 @@
|
|
|
532
526
|
"context"
|
|
533
527
|
],
|
|
534
528
|
"unique": true
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "blacklist_collections_created_at_idx",
|
|
532
|
+
"columns": [
|
|
533
|
+
"created_at"
|
|
534
|
+
]
|
|
535
535
|
}
|
|
536
536
|
],
|
|
537
537
|
"version": "4858f9dc"
|
|
@@ -768,12 +768,6 @@
|
|
|
768
768
|
}
|
|
769
769
|
},
|
|
770
770
|
"indexes": [
|
|
771
|
-
{
|
|
772
|
-
"name": "accounts_id_idx",
|
|
773
|
-
"columns": [
|
|
774
|
-
"id"
|
|
775
|
-
]
|
|
776
|
-
},
|
|
777
771
|
{
|
|
778
772
|
"name": "accounts_slug_context_idx",
|
|
779
773
|
"columns": [
|
|
@@ -781,6 +775,12 @@
|
|
|
781
775
|
"context"
|
|
782
776
|
],
|
|
783
777
|
"unique": true
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"name": "accounts_created_at_idx",
|
|
781
|
+
"columns": [
|
|
782
|
+
"created_at"
|
|
783
|
+
]
|
|
784
784
|
}
|
|
785
785
|
],
|
|
786
786
|
"version": "334b9255"
|
|
@@ -951,12 +951,6 @@
|
|
|
951
951
|
}
|
|
952
952
|
},
|
|
953
953
|
"indexes": [
|
|
954
|
-
{
|
|
955
|
-
"name": "email_attachment_collections_id_idx",
|
|
956
|
-
"columns": [
|
|
957
|
-
"id"
|
|
958
|
-
]
|
|
959
|
-
},
|
|
960
954
|
{
|
|
961
955
|
"name": "email_attachment_collections_slug_context_idx",
|
|
962
956
|
"columns": [
|
|
@@ -964,6 +958,12 @@
|
|
|
964
958
|
"context"
|
|
965
959
|
],
|
|
966
960
|
"unique": true
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"name": "email_attachment_collections_created_at_idx",
|
|
964
|
+
"columns": [
|
|
965
|
+
"created_at"
|
|
966
|
+
]
|
|
967
967
|
}
|
|
968
968
|
],
|
|
969
969
|
"version": "87738bdf"
|
|
@@ -1296,12 +1296,6 @@
|
|
|
1296
1296
|
}
|
|
1297
1297
|
},
|
|
1298
1298
|
"indexes": [
|
|
1299
|
-
{
|
|
1300
|
-
"name": "messages_id_idx",
|
|
1301
|
-
"columns": [
|
|
1302
|
-
"id"
|
|
1303
|
-
]
|
|
1304
|
-
},
|
|
1305
1299
|
{
|
|
1306
1300
|
"name": "messages_slug_context_idx",
|
|
1307
1301
|
"columns": [
|
|
@@ -1309,6 +1303,12 @@
|
|
|
1309
1303
|
"context"
|
|
1310
1304
|
],
|
|
1311
1305
|
"unique": true
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"name": "messages_created_at_idx",
|
|
1309
|
+
"columns": [
|
|
1310
|
+
"created_at"
|
|
1311
|
+
]
|
|
1312
1312
|
}
|
|
1313
1313
|
],
|
|
1314
1314
|
"version": "ef481539"
|
|
@@ -1616,12 +1616,6 @@
|
|
|
1616
1616
|
}
|
|
1617
1617
|
},
|
|
1618
1618
|
"indexes": [
|
|
1619
|
-
{
|
|
1620
|
-
"name": "email_folder_collections_id_idx",
|
|
1621
|
-
"columns": [
|
|
1622
|
-
"id"
|
|
1623
|
-
]
|
|
1624
|
-
},
|
|
1625
1619
|
{
|
|
1626
1620
|
"name": "email_folder_collections_slug_context_idx",
|
|
1627
1621
|
"columns": [
|
|
@@ -1629,6 +1623,12 @@
|
|
|
1629
1623
|
"context"
|
|
1630
1624
|
],
|
|
1631
1625
|
"unique": true
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
"name": "email_folder_collections_created_at_idx",
|
|
1629
|
+
"columns": [
|
|
1630
|
+
"created_at"
|
|
1631
|
+
]
|
|
1632
1632
|
}
|
|
1633
1633
|
],
|
|
1634
1634
|
"version": "05c924b1"
|
|
@@ -1922,12 +1922,6 @@
|
|
|
1922
1922
|
}
|
|
1923
1923
|
},
|
|
1924
1924
|
"indexes": [
|
|
1925
|
-
{
|
|
1926
|
-
"name": "message_collections_id_idx",
|
|
1927
|
-
"columns": [
|
|
1928
|
-
"id"
|
|
1929
|
-
]
|
|
1930
|
-
},
|
|
1931
1925
|
{
|
|
1932
1926
|
"name": "message_collections_slug_context_idx",
|
|
1933
1927
|
"columns": [
|
|
@@ -1935,6 +1929,12 @@
|
|
|
1935
1929
|
"context"
|
|
1936
1930
|
],
|
|
1937
1931
|
"unique": true
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
"name": "message_collections_created_at_idx",
|
|
1935
|
+
"columns": [
|
|
1936
|
+
"created_at"
|
|
1937
|
+
]
|
|
1938
1938
|
}
|
|
1939
1939
|
],
|
|
1940
1940
|
"version": "c3d5333a"
|
|
@@ -1987,12 +1987,6 @@
|
|
|
1987
1987
|
}
|
|
1988
1988
|
},
|
|
1989
1989
|
"indexes": [
|
|
1990
|
-
{
|
|
1991
|
-
"name": "messaging_endpoints_id_idx",
|
|
1992
|
-
"columns": [
|
|
1993
|
-
"id"
|
|
1994
|
-
]
|
|
1995
|
-
},
|
|
1996
1990
|
{
|
|
1997
1991
|
"name": "messaging_endpoints_slug_context_idx",
|
|
1998
1992
|
"columns": [
|
|
@@ -2000,6 +1994,12 @@
|
|
|
2000
1994
|
"context"
|
|
2001
1995
|
],
|
|
2002
1996
|
"unique": true
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
"name": "messaging_endpoints_created_at_idx",
|
|
2000
|
+
"columns": [
|
|
2001
|
+
"created_at"
|
|
2002
|
+
]
|
|
2003
2003
|
}
|
|
2004
2004
|
],
|
|
2005
2005
|
"version": "82876ebf"
|
|
@@ -2067,12 +2067,6 @@
|
|
|
2067
2067
|
}
|
|
2068
2068
|
},
|
|
2069
2069
|
"indexes": [
|
|
2070
|
-
{
|
|
2071
|
-
"name": "persona_message_routes_id_idx",
|
|
2072
|
-
"columns": [
|
|
2073
|
-
"id"
|
|
2074
|
-
]
|
|
2075
|
-
},
|
|
2076
2070
|
{
|
|
2077
2071
|
"name": "persona_message_routes_slug_context_idx",
|
|
2078
2072
|
"columns": [
|
|
@@ -2080,6 +2074,12 @@
|
|
|
2080
2074
|
"context"
|
|
2081
2075
|
],
|
|
2082
2076
|
"unique": true
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
"name": "persona_message_routes_created_at_idx",
|
|
2080
|
+
"columns": [
|
|
2081
|
+
"created_at"
|
|
2082
|
+
]
|
|
2083
2083
|
}
|
|
2084
2084
|
],
|
|
2085
2085
|
"version": "334a1910"
|
|
@@ -2178,12 +2178,6 @@
|
|
|
2178
2178
|
}
|
|
2179
2179
|
},
|
|
2180
2180
|
"indexes": [
|
|
2181
|
-
{
|
|
2182
|
-
"name": "whitelist_collections_id_idx",
|
|
2183
|
-
"columns": [
|
|
2184
|
-
"id"
|
|
2185
|
-
]
|
|
2186
|
-
},
|
|
2187
2181
|
{
|
|
2188
2182
|
"name": "whitelist_collections_slug_context_idx",
|
|
2189
2183
|
"columns": [
|
|
@@ -2191,6 +2185,12 @@
|
|
|
2191
2185
|
"context"
|
|
2192
2186
|
],
|
|
2193
2187
|
"unique": true
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
"name": "whitelist_collections_created_at_idx",
|
|
2191
|
+
"columns": [
|
|
2192
|
+
"created_at"
|
|
2193
|
+
]
|
|
2194
2194
|
}
|
|
2195
2195
|
],
|
|
2196
2196
|
"version": "db7e0e92"
|
|
@@ -2892,7 +2892,13 @@
|
|
|
2892
2892
|
},
|
|
2893
2893
|
"tenantScoped": {
|
|
2894
2894
|
"mode": "optional"
|
|
2895
|
-
}
|
|
2895
|
+
},
|
|
2896
|
+
"conflictColumns": [
|
|
2897
|
+
"tenant_id",
|
|
2898
|
+
"slug",
|
|
2899
|
+
"context",
|
|
2900
|
+
"_meta_type"
|
|
2901
|
+
]
|
|
2896
2902
|
},
|
|
2897
2903
|
"extends": "SmrtObject",
|
|
2898
2904
|
"exportName": "Account",
|
|
@@ -3010,15 +3016,10 @@
|
|
|
3010
3016
|
}
|
|
3011
3017
|
},
|
|
3012
3018
|
"indexes": [
|
|
3013
|
-
{
|
|
3014
|
-
"name": "accounts_id_idx",
|
|
3015
|
-
"columns": [
|
|
3016
|
-
"id"
|
|
3017
|
-
]
|
|
3018
|
-
},
|
|
3019
3019
|
{
|
|
3020
3020
|
"name": "accounts_slug_context_meta_type_idx",
|
|
3021
3021
|
"columns": [
|
|
3022
|
+
"tenant_id",
|
|
3022
3023
|
"slug",
|
|
3023
3024
|
"context",
|
|
3024
3025
|
"_meta_type"
|
|
@@ -3030,6 +3031,13 @@
|
|
|
3030
3031
|
"columns": [
|
|
3031
3032
|
"_meta_type"
|
|
3032
3033
|
]
|
|
3034
|
+
},
|
|
3035
|
+
{
|
|
3036
|
+
"name": "accounts_tenant_id_created_at_idx",
|
|
3037
|
+
"columns": [
|
|
3038
|
+
"tenant_id",
|
|
3039
|
+
"created_at"
|
|
3040
|
+
]
|
|
3033
3041
|
}
|
|
3034
3042
|
],
|
|
3035
3043
|
"version": "3854ea98"
|
|
@@ -3185,7 +3193,12 @@
|
|
|
3185
3193
|
"cli": true,
|
|
3186
3194
|
"tenantScoped": {
|
|
3187
3195
|
"mode": "optional"
|
|
3188
|
-
}
|
|
3196
|
+
},
|
|
3197
|
+
"conflictColumns": [
|
|
3198
|
+
"tenant_id",
|
|
3199
|
+
"slug",
|
|
3200
|
+
"context"
|
|
3201
|
+
]
|
|
3189
3202
|
},
|
|
3190
3203
|
"extends": "SmrtObject",
|
|
3191
3204
|
"exportName": "Attachment",
|
|
@@ -3277,19 +3290,27 @@
|
|
|
3277
3290
|
}
|
|
3278
3291
|
},
|
|
3279
3292
|
"indexes": [
|
|
3280
|
-
{
|
|
3281
|
-
"name": "attachments_id_idx",
|
|
3282
|
-
"columns": [
|
|
3283
|
-
"id"
|
|
3284
|
-
]
|
|
3285
|
-
},
|
|
3286
3293
|
{
|
|
3287
3294
|
"name": "attachments_slug_context_idx",
|
|
3288
3295
|
"columns": [
|
|
3296
|
+
"tenant_id",
|
|
3289
3297
|
"slug",
|
|
3290
3298
|
"context"
|
|
3291
3299
|
],
|
|
3292
3300
|
"unique": true
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
"name": "attachments_tenant_id_created_at_idx",
|
|
3304
|
+
"columns": [
|
|
3305
|
+
"tenant_id",
|
|
3306
|
+
"created_at"
|
|
3307
|
+
]
|
|
3308
|
+
},
|
|
3309
|
+
{
|
|
3310
|
+
"name": "attachments_message_id_idx",
|
|
3311
|
+
"columns": [
|
|
3312
|
+
"message_id"
|
|
3313
|
+
]
|
|
3293
3314
|
}
|
|
3294
3315
|
],
|
|
3295
3316
|
"version": "989aa463"
|
|
@@ -3368,7 +3389,12 @@
|
|
|
3368
3389
|
]
|
|
3369
3390
|
},
|
|
3370
3391
|
"cli": true,
|
|
3371
|
-
"tenantScoped": true
|
|
3392
|
+
"tenantScoped": true,
|
|
3393
|
+
"conflictColumns": [
|
|
3394
|
+
"tenant_id",
|
|
3395
|
+
"slug",
|
|
3396
|
+
"context"
|
|
3397
|
+
]
|
|
3372
3398
|
},
|
|
3373
3399
|
"extends": "SmrtObject",
|
|
3374
3400
|
"exportName": "Blacklist",
|
|
@@ -3434,19 +3460,21 @@
|
|
|
3434
3460
|
}
|
|
3435
3461
|
},
|
|
3436
3462
|
"indexes": [
|
|
3437
|
-
{
|
|
3438
|
-
"name": "blacklists_id_idx",
|
|
3439
|
-
"columns": [
|
|
3440
|
-
"id"
|
|
3441
|
-
]
|
|
3442
|
-
},
|
|
3443
3463
|
{
|
|
3444
3464
|
"name": "blacklists_slug_context_idx",
|
|
3445
3465
|
"columns": [
|
|
3466
|
+
"tenant_id",
|
|
3446
3467
|
"slug",
|
|
3447
3468
|
"context"
|
|
3448
3469
|
],
|
|
3449
3470
|
"unique": true
|
|
3471
|
+
},
|
|
3472
|
+
{
|
|
3473
|
+
"name": "blacklists_tenant_id_created_at_idx",
|
|
3474
|
+
"columns": [
|
|
3475
|
+
"tenant_id",
|
|
3476
|
+
"created_at"
|
|
3477
|
+
]
|
|
3450
3478
|
}
|
|
3451
3479
|
],
|
|
3452
3480
|
"version": "63af429e"
|
|
@@ -4500,7 +4528,7 @@
|
|
|
4500
4528
|
],
|
|
4501
4529
|
"schema": {
|
|
4502
4530
|
"tableName": "messages",
|
|
4503
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"messages\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"account_id\" UUID,\n \"persona_id\" UUID,\n \"endpoint_id\" UUID,\n \"correlation_id\" TEXT,\n \"thread_id\" TEXT,\n \"subject\" TEXT,\n \"body\" TEXT,\n \"from_address\" TEXT,\n \"from_name\" TEXT,\n \"to_addresses\" TEXT,\n \"date\" TIMESTAMP,\n \"is_read\" BOOLEAN DEFAULT FALSE,\n \"is_flagged\" BOOLEAN DEFAULT FALSE,\n \"has_attachments\" BOOLEAN DEFAULT FALSE,\n \"size\" INTEGER DEFAULT 0,\n \"metadata\" TEXT,\n \"send_status\" TEXT DEFAULT 'draft',\n \"sent_at\" TIMESTAMP,\n \"send_error\" TEXT,\n \"retry_count\" INTEGER DEFAULT 0,\n \"max_retries\" INTEGER DEFAULT 3,\n \"scheduled_send_at\" TIMESTAMP,\n \"in_reply_to_message_id\" UUID,\n \"message_id\" TEXT,\n \"in_reply_to\" TEXT,\n \"cc_addresses\" TEXT,\n \"bcc_addresses\" TEXT,\n \"reply_to_address\" TEXT,\n \"reply_to_name\" TEXT,\n \"text_body\" TEXT,\n \"html_body\" TEXT,\n \"folder_id\" TEXT,\n \"folder_path\" TEXT,\n \"labels\" TEXT,\n \"flags\" TEXT,\n \"is_answered\" BOOLEAN DEFAULT FALSE,\n \"is_draft\" BOOLEAN DEFAULT FALSE,\n \"raw_message\" TEXT,\n \"headers\" TEXT\n);",
|
|
4531
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"messages\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"account_id\" UUID,\n \"persona_id\" UUID,\n \"endpoint_id\" UUID,\n \"correlation_id\" TEXT,\n \"thread_id\" TEXT,\n \"subject\" TEXT,\n \"body\" TEXT,\n \"from_address\" TEXT,\n \"from_name\" TEXT,\n \"to_addresses\" TEXT,\n \"date\" TIMESTAMP,\n \"is_read\" BOOLEAN DEFAULT FALSE,\n \"is_flagged\" BOOLEAN DEFAULT FALSE,\n \"has_attachments\" BOOLEAN DEFAULT FALSE,\n \"size\" INTEGER DEFAULT 0,\n \"metadata\" TEXT,\n \"send_status\" TEXT DEFAULT 'draft',\n \"sent_at\" TIMESTAMP,\n \"send_error\" TEXT,\n \"retry_count\" INTEGER DEFAULT 0,\n \"max_retries\" INTEGER DEFAULT 3,\n \"scheduled_send_at\" TIMESTAMP,\n \"in_reply_to_message_id\" UUID,\n \"message_id\" TEXT,\n \"in_reply_to\" TEXT,\n \"cc_addresses\" TEXT,\n \"bcc_addresses\" TEXT,\n \"reply_to_address\" TEXT,\n \"reply_to_name\" TEXT,\n \"text_body\" TEXT,\n \"html_body\" TEXT,\n \"folder_id\" TEXT,\n \"folder_path\" TEXT,\n \"labels\" TEXT,\n \"flags\" TEXT,\n \"is_answered\" BOOLEAN DEFAULT FALSE,\n \"is_draft\" BOOLEAN DEFAULT FALSE,\n \"raw_message\" TEXT,\n \"headers\" TEXT,\n \"channel_id\" TEXT,\n \"channel_name\" TEXT,\n \"slack_ts\" TEXT,\n \"slack_thread_ts\" TEXT,\n \"reactions\" TEXT,\n \"is_edited\" BOOLEAN DEFAULT FALSE,\n \"message_type\" TEXT,\n \"blocks\" TEXT,\n \"tweet_id\" TEXT,\n \"retweet_count\" INTEGER DEFAULT 0,\n \"like_count\" INTEGER DEFAULT 0,\n \"reply_count\" INTEGER DEFAULT 0,\n \"is_retweet\" BOOLEAN DEFAULT FALSE,\n \"is_reply\" BOOLEAN DEFAULT FALSE,\n \"media_urls\" TEXT,\n \"hashtags\" TEXT,\n \"mentions\" TEXT\n);",
|
|
4504
4532
|
"columns": {
|
|
4505
4533
|
"id": {
|
|
4506
4534
|
"type": "UUID",
|
|
@@ -4708,18 +4736,87 @@
|
|
|
4708
4736
|
"headers": {
|
|
4709
4737
|
"type": "TEXT",
|
|
4710
4738
|
"notNull": false
|
|
4739
|
+
},
|
|
4740
|
+
"channel_id": {
|
|
4741
|
+
"type": "TEXT",
|
|
4742
|
+
"notNull": false
|
|
4743
|
+
},
|
|
4744
|
+
"channel_name": {
|
|
4745
|
+
"type": "TEXT",
|
|
4746
|
+
"notNull": false
|
|
4747
|
+
},
|
|
4748
|
+
"slack_ts": {
|
|
4749
|
+
"type": "TEXT",
|
|
4750
|
+
"notNull": false
|
|
4751
|
+
},
|
|
4752
|
+
"slack_thread_ts": {
|
|
4753
|
+
"type": "TEXT",
|
|
4754
|
+
"notNull": false
|
|
4755
|
+
},
|
|
4756
|
+
"reactions": {
|
|
4757
|
+
"type": "TEXT",
|
|
4758
|
+
"notNull": false
|
|
4759
|
+
},
|
|
4760
|
+
"is_edited": {
|
|
4761
|
+
"type": "BOOLEAN",
|
|
4762
|
+
"notNull": false,
|
|
4763
|
+
"default": false
|
|
4764
|
+
},
|
|
4765
|
+
"message_type": {
|
|
4766
|
+
"type": "TEXT",
|
|
4767
|
+
"notNull": false
|
|
4768
|
+
},
|
|
4769
|
+
"blocks": {
|
|
4770
|
+
"type": "TEXT",
|
|
4771
|
+
"notNull": false
|
|
4772
|
+
},
|
|
4773
|
+
"tweet_id": {
|
|
4774
|
+
"type": "TEXT",
|
|
4775
|
+
"notNull": false
|
|
4776
|
+
},
|
|
4777
|
+
"retweet_count": {
|
|
4778
|
+
"type": "INTEGER",
|
|
4779
|
+
"notNull": false,
|
|
4780
|
+
"default": 0
|
|
4781
|
+
},
|
|
4782
|
+
"like_count": {
|
|
4783
|
+
"type": "INTEGER",
|
|
4784
|
+
"notNull": false,
|
|
4785
|
+
"default": 0
|
|
4786
|
+
},
|
|
4787
|
+
"reply_count": {
|
|
4788
|
+
"type": "INTEGER",
|
|
4789
|
+
"notNull": false,
|
|
4790
|
+
"default": 0
|
|
4791
|
+
},
|
|
4792
|
+
"is_retweet": {
|
|
4793
|
+
"type": "BOOLEAN",
|
|
4794
|
+
"notNull": false,
|
|
4795
|
+
"default": false
|
|
4796
|
+
},
|
|
4797
|
+
"is_reply": {
|
|
4798
|
+
"type": "BOOLEAN",
|
|
4799
|
+
"notNull": false,
|
|
4800
|
+
"default": false
|
|
4801
|
+
},
|
|
4802
|
+
"media_urls": {
|
|
4803
|
+
"type": "TEXT",
|
|
4804
|
+
"notNull": false
|
|
4805
|
+
},
|
|
4806
|
+
"hashtags": {
|
|
4807
|
+
"type": "TEXT",
|
|
4808
|
+
"notNull": false
|
|
4809
|
+
},
|
|
4810
|
+
"mentions": {
|
|
4811
|
+
"type": "TEXT",
|
|
4812
|
+
"notNull": false
|
|
4711
4813
|
}
|
|
4712
4814
|
},
|
|
4713
4815
|
"indexes": [
|
|
4714
|
-
{
|
|
4715
|
-
"name": "messages_id_idx",
|
|
4716
|
-
"columns": [
|
|
4717
|
-
"id"
|
|
4718
|
-
]
|
|
4719
|
-
},
|
|
4720
4816
|
{
|
|
4721
4817
|
"name": "messages_slug_context_meta_type_idx",
|
|
4722
4818
|
"columns": [
|
|
4819
|
+
"tenant_id",
|
|
4723
4820
|
"slug",
|
|
4724
4821
|
"context",
|
|
4725
4822
|
"_meta_type"
|
|
@@ -4731,9 +4828,40 @@
|
|
|
4731
4828
|
"columns": [
|
|
4732
4829
|
"_meta_type"
|
|
4733
4830
|
]
|
|
4831
|
+
},
|
|
4832
|
+
{
|
|
4833
|
+
"name": "messages_tenant_id_created_at_idx",
|
|
4834
|
+
"columns": [
|
|
4835
|
+
"tenant_id",
|
|
4836
|
+
"created_at"
|
|
4837
|
+
]
|
|
4838
|
+
},
|
|
4839
|
+
{
|
|
4840
|
+
"name": "messages_account_id_idx",
|
|
4841
|
+
"columns": [
|
|
4842
|
+
"account_id"
|
|
4843
|
+
]
|
|
4844
|
+
},
|
|
4845
|
+
{
|
|
4846
|
+
"name": "messages_persona_id_idx",
|
|
4847
|
+
"columns": [
|
|
4848
|
+
"persona_id"
|
|
4849
|
+
]
|
|
4850
|
+
},
|
|
4851
|
+
{
|
|
4852
|
+
"name": "messages_endpoint_id_idx",
|
|
4853
|
+
"columns": [
|
|
4854
|
+
"endpoint_id"
|
|
4855
|
+
]
|
|
4856
|
+
},
|
|
4857
|
+
{
|
|
4858
|
+
"name": "messages_in_reply_to_message_id_idx",
|
|
4859
|
+
"columns": [
|
|
4860
|
+
"in_reply_to_message_id"
|
|
4861
|
+
]
|
|
4734
4862
|
}
|
|
4735
4863
|
],
|
|
4736
|
-
"version": "
|
|
4864
|
+
"version": "e535c8c6"
|
|
4737
4865
|
}
|
|
4738
4866
|
},
|
|
4739
4867
|
"@happyvertical/smrt-messages:EmailAccount": {
|
|
@@ -5529,7 +5657,7 @@
|
|
|
5529
5657
|
],
|
|
5530
5658
|
"schema": {
|
|
5531
5659
|
"tableName": "accounts",
|
|
5532
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT,\n \"email\" TEXT,\n \"sync_interval_minutes\" INTEGER DEFAULT 60\n);",
|
|
5660
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT,\n \"email\" TEXT,\n \"sync_interval_minutes\" INTEGER DEFAULT 60,\n \"workspace_id\" TEXT,\n \"workspace_name\" TEXT,\n \"bot_user_id\" TEXT,\n \"handle\" TEXT,\n \"twitter_user_id\" TEXT\n);",
|
|
5533
5661
|
"columns": {
|
|
5534
5662
|
"id": {
|
|
5535
5663
|
"type": "UUID",
|
|
@@ -5610,18 +5738,33 @@
|
|
|
5610
5738
|
"type": "INTEGER",
|
|
5611
5739
|
"notNull": false,
|
|
5612
5740
|
"default": 60
|
|
5741
|
+
},
|
|
5742
|
+
"workspace_id": {
|
|
5743
|
+
"type": "TEXT",
|
|
5744
|
+
"notNull": false
|
|
5745
|
+
},
|
|
5746
|
+
"workspace_name": {
|
|
5747
|
+
"type": "TEXT",
|
|
5748
|
+
"notNull": false
|
|
5749
|
+
},
|
|
5750
|
+
"bot_user_id": {
|
|
5751
|
+
"type": "TEXT",
|
|
5752
|
+
"notNull": false
|
|
5753
|
+
},
|
|
5754
|
+
"handle": {
|
|
5755
|
+
"type": "TEXT",
|
|
5756
|
+
"notNull": false
|
|
5757
|
+
},
|
|
5758
|
+
"twitter_user_id": {
|
|
5759
|
+
"type": "TEXT",
|
|
5760
|
+
"notNull": false
|
|
5613
5761
|
}
|
|
5614
5762
|
},
|
|
5615
5763
|
"indexes": [
|
|
5616
5764
|
{
|
|
5617
|
-
"name": "
|
|
5618
|
-
"columns": [
|
|
5619
|
-
"id"
|
|
5620
|
-
]
|
|
5621
|
-
},
|
|
5622
|
-
{
|
|
5623
|
-
"name": "accounts_slug_context_meta_type_idx",
|
|
5765
|
+
"name": "accounts_slug_context_meta_type_idx",
|
|
5624
5766
|
"columns": [
|
|
5767
|
+
"tenant_id",
|
|
5625
5768
|
"slug",
|
|
5626
5769
|
"context",
|
|
5627
5770
|
"_meta_type"
|
|
@@ -5633,9 +5776,16 @@
|
|
|
5633
5776
|
"columns": [
|
|
5634
5777
|
"_meta_type"
|
|
5635
5778
|
]
|
|
5779
|
+
},
|
|
5780
|
+
{
|
|
5781
|
+
"name": "accounts_tenant_id_created_at_idx",
|
|
5782
|
+
"columns": [
|
|
5783
|
+
"tenant_id",
|
|
5784
|
+
"created_at"
|
|
5785
|
+
]
|
|
5636
5786
|
}
|
|
5637
5787
|
],
|
|
5638
|
-
"version": "
|
|
5788
|
+
"version": "3854ea98"
|
|
5639
5789
|
}
|
|
5640
5790
|
},
|
|
5641
5791
|
"@happyvertical/smrt-messages:EmailAttachment": {
|
|
@@ -5691,12 +5841,6 @@
|
|
|
5691
5841
|
}
|
|
5692
5842
|
},
|
|
5693
5843
|
"indexes": [
|
|
5694
|
-
{
|
|
5695
|
-
"name": "email_attachments_id_idx",
|
|
5696
|
-
"columns": [
|
|
5697
|
-
"id"
|
|
5698
|
-
]
|
|
5699
|
-
},
|
|
5700
5844
|
{
|
|
5701
5845
|
"name": "email_attachments_slug_context_idx",
|
|
5702
5846
|
"columns": [
|
|
@@ -5704,6 +5848,12 @@
|
|
|
5704
5848
|
"context"
|
|
5705
5849
|
],
|
|
5706
5850
|
"unique": true
|
|
5851
|
+
},
|
|
5852
|
+
{
|
|
5853
|
+
"name": "email_attachments_created_at_idx",
|
|
5854
|
+
"columns": [
|
|
5855
|
+
"created_at"
|
|
5856
|
+
]
|
|
5707
5857
|
}
|
|
5708
5858
|
],
|
|
5709
5859
|
"version": "70291c59"
|
|
@@ -5909,7 +6059,12 @@
|
|
|
5909
6059
|
"cli": true,
|
|
5910
6060
|
"tenantScoped": {
|
|
5911
6061
|
"mode": "optional"
|
|
5912
|
-
}
|
|
6062
|
+
},
|
|
6063
|
+
"conflictColumns": [
|
|
6064
|
+
"tenant_id",
|
|
6065
|
+
"slug",
|
|
6066
|
+
"context"
|
|
6067
|
+
]
|
|
5913
6068
|
},
|
|
5914
6069
|
"extends": "SmrtObject",
|
|
5915
6070
|
"exportName": "EmailFolder",
|
|
@@ -6012,19 +6167,27 @@
|
|
|
6012
6167
|
}
|
|
6013
6168
|
},
|
|
6014
6169
|
"indexes": [
|
|
6015
|
-
{
|
|
6016
|
-
"name": "email_folders_id_idx",
|
|
6017
|
-
"columns": [
|
|
6018
|
-
"id"
|
|
6019
|
-
]
|
|
6020
|
-
},
|
|
6021
6170
|
{
|
|
6022
6171
|
"name": "email_folders_slug_context_idx",
|
|
6023
6172
|
"columns": [
|
|
6173
|
+
"tenant_id",
|
|
6024
6174
|
"slug",
|
|
6025
6175
|
"context"
|
|
6026
6176
|
],
|
|
6027
6177
|
"unique": true
|
|
6178
|
+
},
|
|
6179
|
+
{
|
|
6180
|
+
"name": "email_folders_tenant_id_created_at_idx",
|
|
6181
|
+
"columns": [
|
|
6182
|
+
"tenant_id",
|
|
6183
|
+
"created_at"
|
|
6184
|
+
]
|
|
6185
|
+
},
|
|
6186
|
+
{
|
|
6187
|
+
"name": "email_folders_account_id_idx",
|
|
6188
|
+
"columns": [
|
|
6189
|
+
"account_id"
|
|
6190
|
+
]
|
|
6028
6191
|
}
|
|
6029
6192
|
],
|
|
6030
6193
|
"version": "55c8a788"
|
|
@@ -6859,7 +7022,13 @@
|
|
|
6859
7022
|
"cli": true,
|
|
6860
7023
|
"tenantScoped": {
|
|
6861
7024
|
"mode": "optional"
|
|
6862
|
-
}
|
|
7025
|
+
},
|
|
7026
|
+
"conflictColumns": [
|
|
7027
|
+
"tenant_id",
|
|
7028
|
+
"slug",
|
|
7029
|
+
"context",
|
|
7030
|
+
"_meta_type"
|
|
7031
|
+
]
|
|
6863
7032
|
},
|
|
6864
7033
|
"extends": "SmrtObject",
|
|
6865
7034
|
"exportName": "Message",
|
|
@@ -7183,15 +7352,10 @@
|
|
|
7183
7352
|
}
|
|
7184
7353
|
},
|
|
7185
7354
|
"indexes": [
|
|
7186
|
-
{
|
|
7187
|
-
"name": "messages_id_idx",
|
|
7188
|
-
"columns": [
|
|
7189
|
-
"id"
|
|
7190
|
-
]
|
|
7191
|
-
},
|
|
7192
7355
|
{
|
|
7193
7356
|
"name": "messages_slug_context_meta_type_idx",
|
|
7194
7357
|
"columns": [
|
|
7358
|
+
"tenant_id",
|
|
7195
7359
|
"slug",
|
|
7196
7360
|
"context",
|
|
7197
7361
|
"_meta_type"
|
|
@@ -7203,6 +7367,37 @@
|
|
|
7203
7367
|
"columns": [
|
|
7204
7368
|
"_meta_type"
|
|
7205
7369
|
]
|
|
7370
|
+
},
|
|
7371
|
+
{
|
|
7372
|
+
"name": "messages_tenant_id_created_at_idx",
|
|
7373
|
+
"columns": [
|
|
7374
|
+
"tenant_id",
|
|
7375
|
+
"created_at"
|
|
7376
|
+
]
|
|
7377
|
+
},
|
|
7378
|
+
{
|
|
7379
|
+
"name": "messages_account_id_idx",
|
|
7380
|
+
"columns": [
|
|
7381
|
+
"account_id"
|
|
7382
|
+
]
|
|
7383
|
+
},
|
|
7384
|
+
{
|
|
7385
|
+
"name": "messages_persona_id_idx",
|
|
7386
|
+
"columns": [
|
|
7387
|
+
"persona_id"
|
|
7388
|
+
]
|
|
7389
|
+
},
|
|
7390
|
+
{
|
|
7391
|
+
"name": "messages_endpoint_id_idx",
|
|
7392
|
+
"columns": [
|
|
7393
|
+
"endpoint_id"
|
|
7394
|
+
]
|
|
7395
|
+
},
|
|
7396
|
+
{
|
|
7397
|
+
"name": "messages_in_reply_to_message_id_idx",
|
|
7398
|
+
"columns": [
|
|
7399
|
+
"in_reply_to_message_id"
|
|
7400
|
+
]
|
|
7206
7401
|
}
|
|
7207
7402
|
],
|
|
7208
7403
|
"version": "e535c8c6"
|
|
@@ -7444,12 +7639,6 @@
|
|
|
7444
7639
|
}
|
|
7445
7640
|
},
|
|
7446
7641
|
"indexes": [
|
|
7447
|
-
{
|
|
7448
|
-
"name": "messaging_endpoints_id_idx",
|
|
7449
|
-
"columns": [
|
|
7450
|
-
"id"
|
|
7451
|
-
]
|
|
7452
|
-
},
|
|
7453
7642
|
{
|
|
7454
7643
|
"name": "messaging_endpoints_tenant_id_channel_idx",
|
|
7455
7644
|
"columns": [
|
|
@@ -7458,6 +7647,26 @@
|
|
|
7458
7647
|
"label"
|
|
7459
7648
|
],
|
|
7460
7649
|
"unique": true
|
|
7650
|
+
},
|
|
7651
|
+
{
|
|
7652
|
+
"name": "messaging_endpoints_slug_context_idx",
|
|
7653
|
+
"columns": [
|
|
7654
|
+
"slug",
|
|
7655
|
+
"context"
|
|
7656
|
+
]
|
|
7657
|
+
},
|
|
7658
|
+
{
|
|
7659
|
+
"name": "messaging_endpoints_tenant_id_created_at_idx",
|
|
7660
|
+
"columns": [
|
|
7661
|
+
"tenant_id",
|
|
7662
|
+
"created_at"
|
|
7663
|
+
]
|
|
7664
|
+
},
|
|
7665
|
+
{
|
|
7666
|
+
"name": "messaging_endpoints_profile_id_idx",
|
|
7667
|
+
"columns": [
|
|
7668
|
+
"profile_id"
|
|
7669
|
+
]
|
|
7461
7670
|
}
|
|
7462
7671
|
],
|
|
7463
7672
|
"version": "fca5554d"
|
|
@@ -7679,12 +7888,6 @@
|
|
|
7679
7888
|
}
|
|
7680
7889
|
},
|
|
7681
7890
|
"indexes": [
|
|
7682
|
-
{
|
|
7683
|
-
"name": "persona_message_routes_id_idx",
|
|
7684
|
-
"columns": [
|
|
7685
|
-
"id"
|
|
7686
|
-
]
|
|
7687
|
-
},
|
|
7688
7891
|
{
|
|
7689
7892
|
"name": "persona_message_routes_tenant_id_persona_id_idx",
|
|
7690
7893
|
"columns": [
|
|
@@ -7695,6 +7898,38 @@
|
|
|
7695
7898
|
"purpose"
|
|
7696
7899
|
],
|
|
7697
7900
|
"unique": true
|
|
7901
|
+
},
|
|
7902
|
+
{
|
|
7903
|
+
"name": "persona_message_routes_slug_context_idx",
|
|
7904
|
+
"columns": [
|
|
7905
|
+
"slug",
|
|
7906
|
+
"context"
|
|
7907
|
+
]
|
|
7908
|
+
},
|
|
7909
|
+
{
|
|
7910
|
+
"name": "persona_message_routes_tenant_id_created_at_idx",
|
|
7911
|
+
"columns": [
|
|
7912
|
+
"tenant_id",
|
|
7913
|
+
"created_at"
|
|
7914
|
+
]
|
|
7915
|
+
},
|
|
7916
|
+
{
|
|
7917
|
+
"name": "persona_message_routes_persona_id_idx",
|
|
7918
|
+
"columns": [
|
|
7919
|
+
"persona_id"
|
|
7920
|
+
]
|
|
7921
|
+
},
|
|
7922
|
+
{
|
|
7923
|
+
"name": "persona_message_routes_account_id_idx",
|
|
7924
|
+
"columns": [
|
|
7925
|
+
"account_id"
|
|
7926
|
+
]
|
|
7927
|
+
},
|
|
7928
|
+
{
|
|
7929
|
+
"name": "persona_message_routes_endpoint_id_idx",
|
|
7930
|
+
"columns": [
|
|
7931
|
+
"endpoint_id"
|
|
7932
|
+
]
|
|
7698
7933
|
}
|
|
7699
7934
|
],
|
|
7700
7935
|
"version": "8729538d"
|
|
@@ -8417,7 +8652,7 @@
|
|
|
8417
8652
|
],
|
|
8418
8653
|
"schema": {
|
|
8419
8654
|
"tableName": "accounts",
|
|
8420
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT,\n \"workspace_id\" TEXT,\n \"workspace_name\" TEXT,\n \"bot_user_id\" TEXT\n);",
|
|
8655
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT,\n \"email\" TEXT,\n \"sync_interval_minutes\" INTEGER DEFAULT 60,\n \"workspace_id\" TEXT,\n \"workspace_name\" TEXT,\n \"bot_user_id\" TEXT,\n \"handle\" TEXT,\n \"twitter_user_id\" TEXT\n);",
|
|
8421
8656
|
"columns": {
|
|
8422
8657
|
"id": {
|
|
8423
8658
|
"type": "UUID",
|
|
@@ -8490,6 +8725,15 @@
|
|
|
8490
8725
|
"type": "TEXT",
|
|
8491
8726
|
"notNull": false
|
|
8492
8727
|
},
|
|
8728
|
+
"email": {
|
|
8729
|
+
"type": "TEXT",
|
|
8730
|
+
"notNull": false
|
|
8731
|
+
},
|
|
8732
|
+
"sync_interval_minutes": {
|
|
8733
|
+
"type": "INTEGER",
|
|
8734
|
+
"notNull": false,
|
|
8735
|
+
"default": 60
|
|
8736
|
+
},
|
|
8493
8737
|
"workspace_id": {
|
|
8494
8738
|
"type": "TEXT",
|
|
8495
8739
|
"notNull": false
|
|
@@ -8501,18 +8745,21 @@
|
|
|
8501
8745
|
"bot_user_id": {
|
|
8502
8746
|
"type": "TEXT",
|
|
8503
8747
|
"notNull": false
|
|
8748
|
+
},
|
|
8749
|
+
"handle": {
|
|
8750
|
+
"type": "TEXT",
|
|
8751
|
+
"notNull": false
|
|
8752
|
+
},
|
|
8753
|
+
"twitter_user_id": {
|
|
8754
|
+
"type": "TEXT",
|
|
8755
|
+
"notNull": false
|
|
8504
8756
|
}
|
|
8505
8757
|
},
|
|
8506
8758
|
"indexes": [
|
|
8507
|
-
{
|
|
8508
|
-
"name": "accounts_id_idx",
|
|
8509
|
-
"columns": [
|
|
8510
|
-
"id"
|
|
8511
|
-
]
|
|
8512
|
-
},
|
|
8513
8759
|
{
|
|
8514
8760
|
"name": "accounts_slug_context_meta_type_idx",
|
|
8515
8761
|
"columns": [
|
|
8762
|
+
"tenant_id",
|
|
8516
8763
|
"slug",
|
|
8517
8764
|
"context",
|
|
8518
8765
|
"_meta_type"
|
|
@@ -8524,9 +8771,16 @@
|
|
|
8524
8771
|
"columns": [
|
|
8525
8772
|
"_meta_type"
|
|
8526
8773
|
]
|
|
8774
|
+
},
|
|
8775
|
+
{
|
|
8776
|
+
"name": "accounts_tenant_id_created_at_idx",
|
|
8777
|
+
"columns": [
|
|
8778
|
+
"tenant_id",
|
|
8779
|
+
"created_at"
|
|
8780
|
+
]
|
|
8527
8781
|
}
|
|
8528
8782
|
],
|
|
8529
|
-
"version": "
|
|
8783
|
+
"version": "3854ea98"
|
|
8530
8784
|
}
|
|
8531
8785
|
},
|
|
8532
8786
|
"@happyvertical/smrt-messages:SlackMessage": {
|
|
@@ -9463,7 +9717,7 @@
|
|
|
9463
9717
|
],
|
|
9464
9718
|
"schema": {
|
|
9465
9719
|
"tableName": "messages",
|
|
9466
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"messages\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"account_id\" UUID,\n \"persona_id\" UUID,\n \"endpoint_id\" UUID,\n \"correlation_id\" TEXT,\n \"thread_id\" TEXT,\n \"subject\" TEXT,\n \"body\" TEXT,\n \"from_address\" TEXT,\n \"from_name\" TEXT,\n \"to_addresses\" TEXT,\n \"date\" TIMESTAMP,\n \"is_read\" BOOLEAN DEFAULT FALSE,\n \"is_flagged\" BOOLEAN DEFAULT FALSE,\n \"has_attachments\" BOOLEAN DEFAULT FALSE,\n \"size\" INTEGER DEFAULT 0,\n \"metadata\" TEXT,\n \"send_status\" TEXT DEFAULT 'draft',\n \"sent_at\" TIMESTAMP,\n \"send_error\" TEXT,\n \"retry_count\" INTEGER DEFAULT 0,\n \"max_retries\" INTEGER DEFAULT 3,\n \"scheduled_send_at\" TIMESTAMP,\n \"in_reply_to_message_id\" UUID,\n \"channel_id\" TEXT,\n \"channel_name\" TEXT,\n \"slack_ts\" TEXT,\n \"slack_thread_ts\" TEXT,\n \"reactions\" TEXT,\n \"is_edited\" BOOLEAN DEFAULT FALSE,\n \"message_type\" TEXT,\n \"blocks\" TEXT\n);",
|
|
9720
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"messages\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"account_id\" UUID,\n \"persona_id\" UUID,\n \"endpoint_id\" UUID,\n \"correlation_id\" TEXT,\n \"thread_id\" TEXT,\n \"subject\" TEXT,\n \"body\" TEXT,\n \"from_address\" TEXT,\n \"from_name\" TEXT,\n \"to_addresses\" TEXT,\n \"date\" TIMESTAMP,\n \"is_read\" BOOLEAN DEFAULT FALSE,\n \"is_flagged\" BOOLEAN DEFAULT FALSE,\n \"has_attachments\" BOOLEAN DEFAULT FALSE,\n \"size\" INTEGER DEFAULT 0,\n \"metadata\" TEXT,\n \"send_status\" TEXT DEFAULT 'draft',\n \"sent_at\" TIMESTAMP,\n \"send_error\" TEXT,\n \"retry_count\" INTEGER DEFAULT 0,\n \"max_retries\" INTEGER DEFAULT 3,\n \"scheduled_send_at\" TIMESTAMP,\n \"in_reply_to_message_id\" UUID,\n \"message_id\" TEXT,\n \"in_reply_to\" TEXT,\n \"cc_addresses\" TEXT,\n \"bcc_addresses\" TEXT,\n \"reply_to_address\" TEXT,\n \"reply_to_name\" TEXT,\n \"text_body\" TEXT,\n \"html_body\" TEXT,\n \"folder_id\" TEXT,\n \"folder_path\" TEXT,\n \"labels\" TEXT,\n \"flags\" TEXT,\n \"is_answered\" BOOLEAN DEFAULT FALSE,\n \"is_draft\" BOOLEAN DEFAULT FALSE,\n \"raw_message\" TEXT,\n \"headers\" TEXT,\n \"channel_id\" TEXT,\n \"channel_name\" TEXT,\n \"slack_ts\" TEXT,\n \"slack_thread_ts\" TEXT,\n \"reactions\" TEXT,\n \"is_edited\" BOOLEAN DEFAULT FALSE,\n \"message_type\" TEXT,\n \"blocks\" TEXT,\n \"tweet_id\" TEXT,\n \"retweet_count\" INTEGER DEFAULT 0,\n \"like_count\" INTEGER DEFAULT 0,\n \"reply_count\" INTEGER DEFAULT 0,\n \"is_retweet\" BOOLEAN DEFAULT FALSE,\n \"is_reply\" BOOLEAN DEFAULT FALSE,\n \"media_urls\" TEXT,\n \"hashtags\" TEXT,\n \"mentions\" TEXT\n);",
|
|
9467
9721
|
"columns": {
|
|
9468
9722
|
"id": {
|
|
9469
9723
|
"type": "UUID",
|
|
@@ -9606,6 +9860,72 @@
|
|
|
9606
9860
|
"referenceKind": "foreignKey",
|
|
9607
9861
|
"notNull": false
|
|
9608
9862
|
},
|
|
9863
|
+
"message_id": {
|
|
9864
|
+
"type": "TEXT",
|
|
9865
|
+
"notNull": false
|
|
9866
|
+
},
|
|
9867
|
+
"in_reply_to": {
|
|
9868
|
+
"type": "TEXT",
|
|
9869
|
+
"notNull": false
|
|
9870
|
+
},
|
|
9871
|
+
"cc_addresses": {
|
|
9872
|
+
"type": "TEXT",
|
|
9873
|
+
"notNull": false
|
|
9874
|
+
},
|
|
9875
|
+
"bcc_addresses": {
|
|
9876
|
+
"type": "TEXT",
|
|
9877
|
+
"notNull": false
|
|
9878
|
+
},
|
|
9879
|
+
"reply_to_address": {
|
|
9880
|
+
"type": "TEXT",
|
|
9881
|
+
"notNull": false
|
|
9882
|
+
},
|
|
9883
|
+
"reply_to_name": {
|
|
9884
|
+
"type": "TEXT",
|
|
9885
|
+
"notNull": false
|
|
9886
|
+
},
|
|
9887
|
+
"text_body": {
|
|
9888
|
+
"type": "TEXT",
|
|
9889
|
+
"notNull": false
|
|
9890
|
+
},
|
|
9891
|
+
"html_body": {
|
|
9892
|
+
"type": "TEXT",
|
|
9893
|
+
"notNull": false
|
|
9894
|
+
},
|
|
9895
|
+
"folder_id": {
|
|
9896
|
+
"type": "TEXT",
|
|
9897
|
+
"notNull": false
|
|
9898
|
+
},
|
|
9899
|
+
"folder_path": {
|
|
9900
|
+
"type": "TEXT",
|
|
9901
|
+
"notNull": false
|
|
9902
|
+
},
|
|
9903
|
+
"labels": {
|
|
9904
|
+
"type": "TEXT",
|
|
9905
|
+
"notNull": false
|
|
9906
|
+
},
|
|
9907
|
+
"flags": {
|
|
9908
|
+
"type": "TEXT",
|
|
9909
|
+
"notNull": false
|
|
9910
|
+
},
|
|
9911
|
+
"is_answered": {
|
|
9912
|
+
"type": "BOOLEAN",
|
|
9913
|
+
"notNull": false,
|
|
9914
|
+
"default": false
|
|
9915
|
+
},
|
|
9916
|
+
"is_draft": {
|
|
9917
|
+
"type": "BOOLEAN",
|
|
9918
|
+
"notNull": false,
|
|
9919
|
+
"default": false
|
|
9920
|
+
},
|
|
9921
|
+
"raw_message": {
|
|
9922
|
+
"type": "TEXT",
|
|
9923
|
+
"notNull": false
|
|
9924
|
+
},
|
|
9925
|
+
"headers": {
|
|
9926
|
+
"type": "TEXT",
|
|
9927
|
+
"notNull": false
|
|
9928
|
+
},
|
|
9609
9929
|
"channel_id": {
|
|
9610
9930
|
"type": "TEXT",
|
|
9611
9931
|
"notNull": false
|
|
@@ -9638,18 +9958,54 @@
|
|
|
9638
9958
|
"blocks": {
|
|
9639
9959
|
"type": "TEXT",
|
|
9640
9960
|
"notNull": false
|
|
9961
|
+
},
|
|
9962
|
+
"tweet_id": {
|
|
9963
|
+
"type": "TEXT",
|
|
9964
|
+
"notNull": false
|
|
9965
|
+
},
|
|
9966
|
+
"retweet_count": {
|
|
9967
|
+
"type": "INTEGER",
|
|
9968
|
+
"notNull": false,
|
|
9969
|
+
"default": 0
|
|
9970
|
+
},
|
|
9971
|
+
"like_count": {
|
|
9972
|
+
"type": "INTEGER",
|
|
9973
|
+
"notNull": false,
|
|
9974
|
+
"default": 0
|
|
9975
|
+
},
|
|
9976
|
+
"reply_count": {
|
|
9977
|
+
"type": "INTEGER",
|
|
9978
|
+
"notNull": false,
|
|
9979
|
+
"default": 0
|
|
9980
|
+
},
|
|
9981
|
+
"is_retweet": {
|
|
9982
|
+
"type": "BOOLEAN",
|
|
9983
|
+
"notNull": false,
|
|
9984
|
+
"default": false
|
|
9985
|
+
},
|
|
9986
|
+
"is_reply": {
|
|
9987
|
+
"type": "BOOLEAN",
|
|
9988
|
+
"notNull": false,
|
|
9989
|
+
"default": false
|
|
9990
|
+
},
|
|
9991
|
+
"media_urls": {
|
|
9992
|
+
"type": "TEXT",
|
|
9993
|
+
"notNull": false
|
|
9994
|
+
},
|
|
9995
|
+
"hashtags": {
|
|
9996
|
+
"type": "TEXT",
|
|
9997
|
+
"notNull": false
|
|
9998
|
+
},
|
|
9999
|
+
"mentions": {
|
|
10000
|
+
"type": "TEXT",
|
|
10001
|
+
"notNull": false
|
|
9641
10002
|
}
|
|
9642
10003
|
},
|
|
9643
10004
|
"indexes": [
|
|
9644
10005
|
{
|
|
9645
|
-
"name": "
|
|
9646
|
-
"columns": [
|
|
9647
|
-
"id"
|
|
9648
|
-
]
|
|
9649
|
-
},
|
|
9650
|
-
{
|
|
9651
|
-
"name": "messages_slug_context_meta_type_idx",
|
|
10006
|
+
"name": "messages_slug_context_meta_type_idx",
|
|
9652
10007
|
"columns": [
|
|
10008
|
+
"tenant_id",
|
|
9653
10009
|
"slug",
|
|
9654
10010
|
"context",
|
|
9655
10011
|
"_meta_type"
|
|
@@ -9661,9 +10017,40 @@
|
|
|
9661
10017
|
"columns": [
|
|
9662
10018
|
"_meta_type"
|
|
9663
10019
|
]
|
|
10020
|
+
},
|
|
10021
|
+
{
|
|
10022
|
+
"name": "messages_tenant_id_created_at_idx",
|
|
10023
|
+
"columns": [
|
|
10024
|
+
"tenant_id",
|
|
10025
|
+
"created_at"
|
|
10026
|
+
]
|
|
10027
|
+
},
|
|
10028
|
+
{
|
|
10029
|
+
"name": "messages_account_id_idx",
|
|
10030
|
+
"columns": [
|
|
10031
|
+
"account_id"
|
|
10032
|
+
]
|
|
10033
|
+
},
|
|
10034
|
+
{
|
|
10035
|
+
"name": "messages_persona_id_idx",
|
|
10036
|
+
"columns": [
|
|
10037
|
+
"persona_id"
|
|
10038
|
+
]
|
|
10039
|
+
},
|
|
10040
|
+
{
|
|
10041
|
+
"name": "messages_endpoint_id_idx",
|
|
10042
|
+
"columns": [
|
|
10043
|
+
"endpoint_id"
|
|
10044
|
+
]
|
|
10045
|
+
},
|
|
10046
|
+
{
|
|
10047
|
+
"name": "messages_in_reply_to_message_id_idx",
|
|
10048
|
+
"columns": [
|
|
10049
|
+
"in_reply_to_message_id"
|
|
10050
|
+
]
|
|
9664
10051
|
}
|
|
9665
10052
|
],
|
|
9666
|
-
"version": "
|
|
10053
|
+
"version": "e535c8c6"
|
|
9667
10054
|
}
|
|
9668
10055
|
},
|
|
9669
10056
|
"@happyvertical/smrt-messages:TelegramAccount": {
|
|
@@ -10371,7 +10758,7 @@
|
|
|
10371
10758
|
],
|
|
10372
10759
|
"schema": {
|
|
10373
10760
|
"tableName": "accounts",
|
|
10374
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT\n);",
|
|
10761
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT,\n \"email\" TEXT,\n \"sync_interval_minutes\" INTEGER DEFAULT 60,\n \"workspace_id\" TEXT,\n \"workspace_name\" TEXT,\n \"bot_user_id\" TEXT,\n \"handle\" TEXT,\n \"twitter_user_id\" TEXT\n);",
|
|
10375
10762
|
"columns": {
|
|
10376
10763
|
"id": {
|
|
10377
10764
|
"type": "UUID",
|
|
@@ -10443,18 +10830,42 @@
|
|
|
10443
10830
|
"configuration": {
|
|
10444
10831
|
"type": "TEXT",
|
|
10445
10832
|
"notNull": false
|
|
10833
|
+
},
|
|
10834
|
+
"email": {
|
|
10835
|
+
"type": "TEXT",
|
|
10836
|
+
"notNull": false
|
|
10837
|
+
},
|
|
10838
|
+
"sync_interval_minutes": {
|
|
10839
|
+
"type": "INTEGER",
|
|
10840
|
+
"notNull": false,
|
|
10841
|
+
"default": 60
|
|
10842
|
+
},
|
|
10843
|
+
"workspace_id": {
|
|
10844
|
+
"type": "TEXT",
|
|
10845
|
+
"notNull": false
|
|
10846
|
+
},
|
|
10847
|
+
"workspace_name": {
|
|
10848
|
+
"type": "TEXT",
|
|
10849
|
+
"notNull": false
|
|
10850
|
+
},
|
|
10851
|
+
"bot_user_id": {
|
|
10852
|
+
"type": "TEXT",
|
|
10853
|
+
"notNull": false
|
|
10854
|
+
},
|
|
10855
|
+
"handle": {
|
|
10856
|
+
"type": "TEXT",
|
|
10857
|
+
"notNull": false
|
|
10858
|
+
},
|
|
10859
|
+
"twitter_user_id": {
|
|
10860
|
+
"type": "TEXT",
|
|
10861
|
+
"notNull": false
|
|
10446
10862
|
}
|
|
10447
10863
|
},
|
|
10448
10864
|
"indexes": [
|
|
10449
|
-
{
|
|
10450
|
-
"name": "accounts_id_idx",
|
|
10451
|
-
"columns": [
|
|
10452
|
-
"id"
|
|
10453
|
-
]
|
|
10454
|
-
},
|
|
10455
10865
|
{
|
|
10456
10866
|
"name": "accounts_slug_context_meta_type_idx",
|
|
10457
10867
|
"columns": [
|
|
10868
|
+
"tenant_id",
|
|
10458
10869
|
"slug",
|
|
10459
10870
|
"context",
|
|
10460
10871
|
"_meta_type"
|
|
@@ -10466,9 +10877,16 @@
|
|
|
10466
10877
|
"columns": [
|
|
10467
10878
|
"_meta_type"
|
|
10468
10879
|
]
|
|
10880
|
+
},
|
|
10881
|
+
{
|
|
10882
|
+
"name": "accounts_tenant_id_created_at_idx",
|
|
10883
|
+
"columns": [
|
|
10884
|
+
"tenant_id",
|
|
10885
|
+
"created_at"
|
|
10886
|
+
]
|
|
10469
10887
|
}
|
|
10470
10888
|
],
|
|
10471
|
-
"version": "
|
|
10889
|
+
"version": "3854ea98"
|
|
10472
10890
|
}
|
|
10473
10891
|
},
|
|
10474
10892
|
"@happyvertical/smrt-messages:Tweet": {
|
|
@@ -11433,7 +11851,7 @@
|
|
|
11433
11851
|
],
|
|
11434
11852
|
"schema": {
|
|
11435
11853
|
"tableName": "messages",
|
|
11436
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"messages\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"account_id\" UUID,\n \"persona_id\" UUID,\n \"endpoint_id\" UUID,\n \"correlation_id\" TEXT,\n \"thread_id\" TEXT,\n \"subject\" TEXT,\n \"body\" TEXT,\n \"from_address\" TEXT,\n \"from_name\" TEXT,\n \"to_addresses\" TEXT,\n \"date\" TIMESTAMP,\n \"is_read\" BOOLEAN DEFAULT FALSE,\n \"is_flagged\" BOOLEAN DEFAULT FALSE,\n \"has_attachments\" BOOLEAN DEFAULT FALSE,\n \"size\" INTEGER DEFAULT 0,\n \"metadata\" TEXT,\n \"send_status\" TEXT DEFAULT 'draft',\n \"sent_at\" TIMESTAMP,\n \"send_error\" TEXT,\n \"retry_count\" INTEGER DEFAULT 0,\n \"max_retries\" INTEGER DEFAULT 3,\n \"scheduled_send_at\" TIMESTAMP,\n \"in_reply_to_message_id\" UUID,\n \"tweet_id\" TEXT,\n \"retweet_count\" INTEGER DEFAULT 0,\n \"like_count\" INTEGER DEFAULT 0,\n \"reply_count\" INTEGER DEFAULT 0,\n \"is_retweet\" BOOLEAN DEFAULT FALSE,\n \"is_reply\" BOOLEAN DEFAULT FALSE,\n \"media_urls\" TEXT,\n \"hashtags\" TEXT,\n \"mentions\" TEXT\n);",
|
|
11854
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"messages\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"account_id\" UUID,\n \"persona_id\" UUID,\n \"endpoint_id\" UUID,\n \"correlation_id\" TEXT,\n \"thread_id\" TEXT,\n \"subject\" TEXT,\n \"body\" TEXT,\n \"from_address\" TEXT,\n \"from_name\" TEXT,\n \"to_addresses\" TEXT,\n \"date\" TIMESTAMP,\n \"is_read\" BOOLEAN DEFAULT FALSE,\n \"is_flagged\" BOOLEAN DEFAULT FALSE,\n \"has_attachments\" BOOLEAN DEFAULT FALSE,\n \"size\" INTEGER DEFAULT 0,\n \"metadata\" TEXT,\n \"send_status\" TEXT DEFAULT 'draft',\n \"sent_at\" TIMESTAMP,\n \"send_error\" TEXT,\n \"retry_count\" INTEGER DEFAULT 0,\n \"max_retries\" INTEGER DEFAULT 3,\n \"scheduled_send_at\" TIMESTAMP,\n \"in_reply_to_message_id\" UUID,\n \"message_id\" TEXT,\n \"in_reply_to\" TEXT,\n \"cc_addresses\" TEXT,\n \"bcc_addresses\" TEXT,\n \"reply_to_address\" TEXT,\n \"reply_to_name\" TEXT,\n \"text_body\" TEXT,\n \"html_body\" TEXT,\n \"folder_id\" TEXT,\n \"folder_path\" TEXT,\n \"labels\" TEXT,\n \"flags\" TEXT,\n \"is_answered\" BOOLEAN DEFAULT FALSE,\n \"is_draft\" BOOLEAN DEFAULT FALSE,\n \"raw_message\" TEXT,\n \"headers\" TEXT,\n \"channel_id\" TEXT,\n \"channel_name\" TEXT,\n \"slack_ts\" TEXT,\n \"slack_thread_ts\" TEXT,\n \"reactions\" TEXT,\n \"is_edited\" BOOLEAN DEFAULT FALSE,\n \"message_type\" TEXT,\n \"blocks\" TEXT,\n \"tweet_id\" TEXT,\n \"retweet_count\" INTEGER DEFAULT 0,\n \"like_count\" INTEGER DEFAULT 0,\n \"reply_count\" INTEGER DEFAULT 0,\n \"is_retweet\" BOOLEAN DEFAULT FALSE,\n \"is_reply\" BOOLEAN DEFAULT FALSE,\n \"media_urls\" TEXT,\n \"hashtags\" TEXT,\n \"mentions\" TEXT\n);",
|
|
11437
11855
|
"columns": {
|
|
11438
11856
|
"id": {
|
|
11439
11857
|
"type": "UUID",
|
|
@@ -11576,6 +11994,105 @@
|
|
|
11576
11994
|
"referenceKind": "foreignKey",
|
|
11577
11995
|
"notNull": false
|
|
11578
11996
|
},
|
|
11997
|
+
"message_id": {
|
|
11998
|
+
"type": "TEXT",
|
|
11999
|
+
"notNull": false
|
|
12000
|
+
},
|
|
12001
|
+
"in_reply_to": {
|
|
12002
|
+
"type": "TEXT",
|
|
12003
|
+
"notNull": false
|
|
12004
|
+
},
|
|
12005
|
+
"cc_addresses": {
|
|
12006
|
+
"type": "TEXT",
|
|
12007
|
+
"notNull": false
|
|
12008
|
+
},
|
|
12009
|
+
"bcc_addresses": {
|
|
12010
|
+
"type": "TEXT",
|
|
12011
|
+
"notNull": false
|
|
12012
|
+
},
|
|
12013
|
+
"reply_to_address": {
|
|
12014
|
+
"type": "TEXT",
|
|
12015
|
+
"notNull": false
|
|
12016
|
+
},
|
|
12017
|
+
"reply_to_name": {
|
|
12018
|
+
"type": "TEXT",
|
|
12019
|
+
"notNull": false
|
|
12020
|
+
},
|
|
12021
|
+
"text_body": {
|
|
12022
|
+
"type": "TEXT",
|
|
12023
|
+
"notNull": false
|
|
12024
|
+
},
|
|
12025
|
+
"html_body": {
|
|
12026
|
+
"type": "TEXT",
|
|
12027
|
+
"notNull": false
|
|
12028
|
+
},
|
|
12029
|
+
"folder_id": {
|
|
12030
|
+
"type": "TEXT",
|
|
12031
|
+
"notNull": false
|
|
12032
|
+
},
|
|
12033
|
+
"folder_path": {
|
|
12034
|
+
"type": "TEXT",
|
|
12035
|
+
"notNull": false
|
|
12036
|
+
},
|
|
12037
|
+
"labels": {
|
|
12038
|
+
"type": "TEXT",
|
|
12039
|
+
"notNull": false
|
|
12040
|
+
},
|
|
12041
|
+
"flags": {
|
|
12042
|
+
"type": "TEXT",
|
|
12043
|
+
"notNull": false
|
|
12044
|
+
},
|
|
12045
|
+
"is_answered": {
|
|
12046
|
+
"type": "BOOLEAN",
|
|
12047
|
+
"notNull": false,
|
|
12048
|
+
"default": false
|
|
12049
|
+
},
|
|
12050
|
+
"is_draft": {
|
|
12051
|
+
"type": "BOOLEAN",
|
|
12052
|
+
"notNull": false,
|
|
12053
|
+
"default": false
|
|
12054
|
+
},
|
|
12055
|
+
"raw_message": {
|
|
12056
|
+
"type": "TEXT",
|
|
12057
|
+
"notNull": false
|
|
12058
|
+
},
|
|
12059
|
+
"headers": {
|
|
12060
|
+
"type": "TEXT",
|
|
12061
|
+
"notNull": false
|
|
12062
|
+
},
|
|
12063
|
+
"channel_id": {
|
|
12064
|
+
"type": "TEXT",
|
|
12065
|
+
"notNull": false
|
|
12066
|
+
},
|
|
12067
|
+
"channel_name": {
|
|
12068
|
+
"type": "TEXT",
|
|
12069
|
+
"notNull": false
|
|
12070
|
+
},
|
|
12071
|
+
"slack_ts": {
|
|
12072
|
+
"type": "TEXT",
|
|
12073
|
+
"notNull": false
|
|
12074
|
+
},
|
|
12075
|
+
"slack_thread_ts": {
|
|
12076
|
+
"type": "TEXT",
|
|
12077
|
+
"notNull": false
|
|
12078
|
+
},
|
|
12079
|
+
"reactions": {
|
|
12080
|
+
"type": "TEXT",
|
|
12081
|
+
"notNull": false
|
|
12082
|
+
},
|
|
12083
|
+
"is_edited": {
|
|
12084
|
+
"type": "BOOLEAN",
|
|
12085
|
+
"notNull": false,
|
|
12086
|
+
"default": false
|
|
12087
|
+
},
|
|
12088
|
+
"message_type": {
|
|
12089
|
+
"type": "TEXT",
|
|
12090
|
+
"notNull": false
|
|
12091
|
+
},
|
|
12092
|
+
"blocks": {
|
|
12093
|
+
"type": "TEXT",
|
|
12094
|
+
"notNull": false
|
|
12095
|
+
},
|
|
11579
12096
|
"tweet_id": {
|
|
11580
12097
|
"type": "TEXT",
|
|
11581
12098
|
"notNull": false
|
|
@@ -11619,15 +12136,10 @@
|
|
|
11619
12136
|
}
|
|
11620
12137
|
},
|
|
11621
12138
|
"indexes": [
|
|
11622
|
-
{
|
|
11623
|
-
"name": "messages_id_idx",
|
|
11624
|
-
"columns": [
|
|
11625
|
-
"id"
|
|
11626
|
-
]
|
|
11627
|
-
},
|
|
11628
12139
|
{
|
|
11629
12140
|
"name": "messages_slug_context_meta_type_idx",
|
|
11630
12141
|
"columns": [
|
|
12142
|
+
"tenant_id",
|
|
11631
12143
|
"slug",
|
|
11632
12144
|
"context",
|
|
11633
12145
|
"_meta_type"
|
|
@@ -11639,9 +12151,40 @@
|
|
|
11639
12151
|
"columns": [
|
|
11640
12152
|
"_meta_type"
|
|
11641
12153
|
]
|
|
12154
|
+
},
|
|
12155
|
+
{
|
|
12156
|
+
"name": "messages_tenant_id_created_at_idx",
|
|
12157
|
+
"columns": [
|
|
12158
|
+
"tenant_id",
|
|
12159
|
+
"created_at"
|
|
12160
|
+
]
|
|
12161
|
+
},
|
|
12162
|
+
{
|
|
12163
|
+
"name": "messages_account_id_idx",
|
|
12164
|
+
"columns": [
|
|
12165
|
+
"account_id"
|
|
12166
|
+
]
|
|
12167
|
+
},
|
|
12168
|
+
{
|
|
12169
|
+
"name": "messages_persona_id_idx",
|
|
12170
|
+
"columns": [
|
|
12171
|
+
"persona_id"
|
|
12172
|
+
]
|
|
12173
|
+
},
|
|
12174
|
+
{
|
|
12175
|
+
"name": "messages_endpoint_id_idx",
|
|
12176
|
+
"columns": [
|
|
12177
|
+
"endpoint_id"
|
|
12178
|
+
]
|
|
12179
|
+
},
|
|
12180
|
+
{
|
|
12181
|
+
"name": "messages_in_reply_to_message_id_idx",
|
|
12182
|
+
"columns": [
|
|
12183
|
+
"in_reply_to_message_id"
|
|
12184
|
+
]
|
|
11642
12185
|
}
|
|
11643
12186
|
],
|
|
11644
|
-
"version": "
|
|
12187
|
+
"version": "e535c8c6"
|
|
11645
12188
|
}
|
|
11646
12189
|
},
|
|
11647
12190
|
"@happyvertical/smrt-messages:TwitterAccount": {
|
|
@@ -12357,7 +12900,7 @@
|
|
|
12357
12900
|
],
|
|
12358
12901
|
"schema": {
|
|
12359
12902
|
"tableName": "accounts",
|
|
12360
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT,\n \"handle\" TEXT,\n \"twitter_user_id\" TEXT\n);",
|
|
12903
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT,\n \"email\" TEXT,\n \"sync_interval_minutes\" INTEGER DEFAULT 60,\n \"workspace_id\" TEXT,\n \"workspace_name\" TEXT,\n \"bot_user_id\" TEXT,\n \"handle\" TEXT,\n \"twitter_user_id\" TEXT\n);",
|
|
12361
12904
|
"columns": {
|
|
12362
12905
|
"id": {
|
|
12363
12906
|
"type": "UUID",
|
|
@@ -12430,6 +12973,27 @@
|
|
|
12430
12973
|
"type": "TEXT",
|
|
12431
12974
|
"notNull": false
|
|
12432
12975
|
},
|
|
12976
|
+
"email": {
|
|
12977
|
+
"type": "TEXT",
|
|
12978
|
+
"notNull": false
|
|
12979
|
+
},
|
|
12980
|
+
"sync_interval_minutes": {
|
|
12981
|
+
"type": "INTEGER",
|
|
12982
|
+
"notNull": false,
|
|
12983
|
+
"default": 60
|
|
12984
|
+
},
|
|
12985
|
+
"workspace_id": {
|
|
12986
|
+
"type": "TEXT",
|
|
12987
|
+
"notNull": false
|
|
12988
|
+
},
|
|
12989
|
+
"workspace_name": {
|
|
12990
|
+
"type": "TEXT",
|
|
12991
|
+
"notNull": false
|
|
12992
|
+
},
|
|
12993
|
+
"bot_user_id": {
|
|
12994
|
+
"type": "TEXT",
|
|
12995
|
+
"notNull": false
|
|
12996
|
+
},
|
|
12433
12997
|
"handle": {
|
|
12434
12998
|
"type": "TEXT",
|
|
12435
12999
|
"notNull": false
|
|
@@ -12440,15 +13004,10 @@
|
|
|
12440
13004
|
}
|
|
12441
13005
|
},
|
|
12442
13006
|
"indexes": [
|
|
12443
|
-
{
|
|
12444
|
-
"name": "accounts_id_idx",
|
|
12445
|
-
"columns": [
|
|
12446
|
-
"id"
|
|
12447
|
-
]
|
|
12448
|
-
},
|
|
12449
13007
|
{
|
|
12450
13008
|
"name": "accounts_slug_context_meta_type_idx",
|
|
12451
13009
|
"columns": [
|
|
13010
|
+
"tenant_id",
|
|
12452
13011
|
"slug",
|
|
12453
13012
|
"context",
|
|
12454
13013
|
"_meta_type"
|
|
@@ -12460,9 +13019,16 @@
|
|
|
12460
13019
|
"columns": [
|
|
12461
13020
|
"_meta_type"
|
|
12462
13021
|
]
|
|
13022
|
+
},
|
|
13023
|
+
{
|
|
13024
|
+
"name": "accounts_tenant_id_created_at_idx",
|
|
13025
|
+
"columns": [
|
|
13026
|
+
"tenant_id",
|
|
13027
|
+
"created_at"
|
|
13028
|
+
]
|
|
12463
13029
|
}
|
|
12464
13030
|
],
|
|
12465
|
-
"version": "
|
|
13031
|
+
"version": "3854ea98"
|
|
12466
13032
|
}
|
|
12467
13033
|
},
|
|
12468
13034
|
"@happyvertical/smrt-messages:Whitelist": {
|
|
@@ -12537,7 +13103,12 @@
|
|
|
12537
13103
|
]
|
|
12538
13104
|
},
|
|
12539
13105
|
"cli": true,
|
|
12540
|
-
"tenantScoped": true
|
|
13106
|
+
"tenantScoped": true,
|
|
13107
|
+
"conflictColumns": [
|
|
13108
|
+
"tenant_id",
|
|
13109
|
+
"slug",
|
|
13110
|
+
"context"
|
|
13111
|
+
]
|
|
12541
13112
|
},
|
|
12542
13113
|
"extends": "SmrtObject",
|
|
12543
13114
|
"exportName": "Whitelist",
|
|
@@ -12602,19 +13173,21 @@
|
|
|
12602
13173
|
}
|
|
12603
13174
|
},
|
|
12604
13175
|
"indexes": [
|
|
12605
|
-
{
|
|
12606
|
-
"name": "whitelists_id_idx",
|
|
12607
|
-
"columns": [
|
|
12608
|
-
"id"
|
|
12609
|
-
]
|
|
12610
|
-
},
|
|
12611
13176
|
{
|
|
12612
13177
|
"name": "whitelists_slug_context_idx",
|
|
12613
13178
|
"columns": [
|
|
13179
|
+
"tenant_id",
|
|
12614
13180
|
"slug",
|
|
12615
13181
|
"context"
|
|
12616
13182
|
],
|
|
12617
13183
|
"unique": true
|
|
13184
|
+
},
|
|
13185
|
+
{
|
|
13186
|
+
"name": "whitelists_tenant_id_created_at_idx",
|
|
13187
|
+
"columns": [
|
|
13188
|
+
"tenant_id",
|
|
13189
|
+
"created_at"
|
|
13190
|
+
]
|
|
12618
13191
|
}
|
|
12619
13192
|
],
|
|
12620
13193
|
"version": "6b3e08bc"
|
|
@@ -13325,7 +13898,7 @@
|
|
|
13325
13898
|
],
|
|
13326
13899
|
"schema": {
|
|
13327
13900
|
"tableName": "accounts",
|
|
13328
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT\n);",
|
|
13901
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT,\n \"provider_type\" TEXT,\n \"channel_type\" TEXT,\n \"credential_secret_id\" TEXT,\n \"is_active\" BOOLEAN DEFAULT TRUE,\n \"last_sync_at\" TIMESTAMP,\n \"settings\" TEXT,\n \"configuration\" TEXT,\n \"email\" TEXT,\n \"sync_interval_minutes\" INTEGER DEFAULT 60,\n \"workspace_id\" TEXT,\n \"workspace_name\" TEXT,\n \"bot_user_id\" TEXT,\n \"handle\" TEXT,\n \"twitter_user_id\" TEXT\n);",
|
|
13329
13902
|
"columns": {
|
|
13330
13903
|
"id": {
|
|
13331
13904
|
"type": "UUID",
|
|
@@ -13397,18 +13970,42 @@
|
|
|
13397
13970
|
"configuration": {
|
|
13398
13971
|
"type": "TEXT",
|
|
13399
13972
|
"notNull": false
|
|
13973
|
+
},
|
|
13974
|
+
"email": {
|
|
13975
|
+
"type": "TEXT",
|
|
13976
|
+
"notNull": false
|
|
13977
|
+
},
|
|
13978
|
+
"sync_interval_minutes": {
|
|
13979
|
+
"type": "INTEGER",
|
|
13980
|
+
"notNull": false,
|
|
13981
|
+
"default": 60
|
|
13982
|
+
},
|
|
13983
|
+
"workspace_id": {
|
|
13984
|
+
"type": "TEXT",
|
|
13985
|
+
"notNull": false
|
|
13986
|
+
},
|
|
13987
|
+
"workspace_name": {
|
|
13988
|
+
"type": "TEXT",
|
|
13989
|
+
"notNull": false
|
|
13990
|
+
},
|
|
13991
|
+
"bot_user_id": {
|
|
13992
|
+
"type": "TEXT",
|
|
13993
|
+
"notNull": false
|
|
13994
|
+
},
|
|
13995
|
+
"handle": {
|
|
13996
|
+
"type": "TEXT",
|
|
13997
|
+
"notNull": false
|
|
13998
|
+
},
|
|
13999
|
+
"twitter_user_id": {
|
|
14000
|
+
"type": "TEXT",
|
|
14001
|
+
"notNull": false
|
|
13400
14002
|
}
|
|
13401
14003
|
},
|
|
13402
14004
|
"indexes": [
|
|
13403
|
-
{
|
|
13404
|
-
"name": "accounts_id_idx",
|
|
13405
|
-
"columns": [
|
|
13406
|
-
"id"
|
|
13407
|
-
]
|
|
13408
|
-
},
|
|
13409
14005
|
{
|
|
13410
14006
|
"name": "accounts_slug_context_meta_type_idx",
|
|
13411
14007
|
"columns": [
|
|
14008
|
+
"tenant_id",
|
|
13412
14009
|
"slug",
|
|
13413
14010
|
"context",
|
|
13414
14011
|
"_meta_type"
|
|
@@ -13420,9 +14017,16 @@
|
|
|
13420
14017
|
"columns": [
|
|
13421
14018
|
"_meta_type"
|
|
13422
14019
|
]
|
|
14020
|
+
},
|
|
14021
|
+
{
|
|
14022
|
+
"name": "accounts_tenant_id_created_at_idx",
|
|
14023
|
+
"columns": [
|
|
14024
|
+
"tenant_id",
|
|
14025
|
+
"created_at"
|
|
14026
|
+
]
|
|
13423
14027
|
}
|
|
13424
14028
|
],
|
|
13425
|
-
"version": "
|
|
14029
|
+
"version": "3854ea98"
|
|
13426
14030
|
}
|
|
13427
14031
|
}
|
|
13428
14032
|
},
|