@open-workspace/email 0.4.2 → 0.5.1
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/README.md +9 -4
- package/alchemy/index.ts +130 -2
- package/drizzle/mailbox/0003_after_0_4_2.sql +180 -0
- package/drizzle/mailbox/meta/0003_snapshot.json +1507 -0
- package/drizzle/mailbox/meta/_journal.json +7 -0
- package/drizzle/mailbox/migrations.js +3 -1
- package/migrations/0002_after_0_4_2.sql +35 -0
- package/migrations/meta/0002_snapshot.json +807 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +23 -7
- package/shared/attachment-preview.ts +18 -8
- package/shared/folder-order.ts +31 -6
- package/shared/mail-headers.ts +3 -3
- package/shared/mail-html.ts +25 -0
- package/shared/mail-import.ts +0 -7
- package/shared/mail-received.ts +4 -4
- package/shared/mail-rule-actions.ts +47 -0
- package/shared/mail-sender-intel.ts +5 -1
- package/shared/mail.ts +70 -4
- package/shared/office-preview.ts +0 -4
- package/shared/pdfjs-assets.ts +1 -3
- package/shared/rich-content.ts +35 -0
- package/shared/signature.ts +15 -0
- package/src/admin/address-auto-reply.tsx +52 -0
- package/src/admin/blocked-senders.tsx +86 -66
- package/src/admin/forward-destinations.tsx +140 -0
- package/src/admin/mail-archive.tsx +134 -0
- package/src/admin/team-signature.tsx +90 -0
- package/src/client.tsx +130 -16
- package/src/mail/attachment-preview-dialog.tsx +13 -5
- package/src/mail/auto-reply-banner.tsx +61 -0
- package/src/mail/blocked-senders.tsx +124 -91
- package/src/mail/compose-window-chrome.tsx +20 -8
- package/src/mail/compose-window.tsx +391 -365
- package/src/mail/composer-asset-bookmarks.ts +47 -12
- package/src/mail/composer-attachment-list.tsx +42 -17
- package/src/mail/composer-editor-document.ts +54 -10
- package/src/mail/composer-editor.tsx +44 -44
- package/src/mail/composer-link-text.ts +42 -0
- package/src/mail/composer-recipient-fields.tsx +25 -16
- package/src/mail/composer-recipients.ts +62 -16
- package/src/mail/composer-session.ts +107 -23
- package/src/mail/composer-toolbar.tsx +15 -1
- package/src/mail/composer-upload-client.ts +29 -1
- package/src/mail/composer-upload-progress.ts +2 -2
- package/src/mail/conversation-actions-model.ts +56 -0
- package/src/mail/conversation-list.tsx +263 -128
- package/src/mail/conversation-loading-skeleton.tsx +165 -90
- package/src/mail/conversation-message.tsx +257 -102
- package/src/mail/conversation-order.ts +12 -0
- package/src/mail/conversation-reply.tsx +313 -189
- package/src/mail/conversation-selection-toolbar.tsx +188 -143
- package/src/mail/conversation-view.tsx +315 -85
- package/src/mail/delivery-indicator.tsx +33 -12
- package/src/mail/draft-attachments.ts +194 -0
- package/src/mail/email-html-body.tsx +97 -53
- package/src/mail/folder-cleanup-bar.tsx +193 -0
- package/src/mail/folder-glyph.tsx +5 -0
- package/src/mail/folder-manager.tsx +71 -38
- package/src/mail/mail-app-bar.tsx +15 -3
- package/src/mail/mail-dock.tsx +19 -3
- package/src/mail/mail-focus.ts +48 -0
- package/src/mail/mail-folders.ts +14 -2
- package/src/mail/mail-layout.css +20 -0
- package/src/mail/mail-mailbox-sheet.tsx +22 -69
- package/src/mail/mail-nav-rail.tsx +7 -4
- package/src/mail/mail-nav.tsx +66 -46
- package/src/mail/mail-prefetch.ts +30 -9
- package/src/mail/mail-primitives.tsx +6 -4
- package/src/mail/mail-queries.ts +122 -20
- package/src/mail/mail-query-cache.ts +1085 -173
- package/src/mail/mail-search-params.ts +35 -0
- package/src/mail/mail-shell.tsx +32 -9
- package/src/mail/mailbox-ai-settings.tsx +56 -42
- package/src/mail/mailbox-realtime.tsx +4 -12
- package/src/mail/mailbox-rules.tsx +898 -0
- package/src/mail/message-actions.tsx +38 -26
- package/src/mail/message-attachments.tsx +20 -12
- package/src/mail/message-body.ts +53 -0
- package/src/mail/message-format.ts +8 -2
- package/src/mail/message-header.tsx +3 -1
- package/src/mail/message-translation.tsx +34 -67
- package/src/mail/original-message-sheet.tsx +63 -50
- package/src/mail/original-message.ts +6 -6
- package/src/mail/pane-splitter.tsx +3 -3
- package/src/mail/pdf-preview.tsx +70 -62
- package/src/mail/plain-message-text.tsx +28 -0
- package/src/mail/print-message.ts +31 -36
- package/src/mail/reader-pane.tsx +134 -103
- package/src/mail/recipient-combobox.tsx +52 -29
- package/src/mail/recipient-field-row.tsx +3 -0
- package/src/mail/rich-content.ts +128 -0
- package/src/mail/sanitize-email-html.ts +53 -32
- package/src/mail/sender-actions.tsx +48 -46
- package/src/mail/sender-authentication.tsx +1 -1
- package/src/mail/sender-dialogs.tsx +67 -43
- package/src/mail/sender-security.tsx +12 -11
- package/src/mail/signature.ts +43 -0
- package/src/mail/translation-html.ts +3 -3
- package/src/mail/types.ts +12 -0
- package/src/mail/use-composer-attachment-preflight.ts +23 -60
- package/src/mail/use-composer-core.ts +286 -0
- package/src/mail/use-composer-navigation.ts +120 -0
- package/src/mail/use-composer-submission.ts +154 -19
- package/src/mail/use-conversation-actions.ts +292 -0
- package/src/mail/use-conversation-position.ts +51 -0
- package/src/mail/use-conversation-selection.ts +192 -89
- package/src/mail/use-draft-autosave.ts +394 -0
- package/src/mail/use-drafts.ts +194 -0
- package/src/mail/use-mail-controller.ts +758 -213
- package/src/mail/use-mail-data.ts +210 -100
- package/src/mail/use-mail-safety.ts +19 -38
- package/src/mail/use-mail-send.ts +18 -6
- package/src/mail/use-pdf-translation.ts +1 -1
- package/src/mail/use-reply-cc.ts +61 -0
- package/src/mail/use-visible-message-read.ts +128 -64
- package/src/pwa/push-key.ts +18 -0
- package/src/pwa/push-subscription.ts +88 -26
- package/src/settings/auto-reply-editor.tsx +454 -0
- package/src/settings/auto-reply-page.tsx +59 -0
- package/src/settings/mail-apps-page.tsx +52 -43
- package/src/settings/notifications-page.tsx +82 -67
- package/src/settings/rich-content-editor.tsx +182 -0
- package/src/settings/settings-queries.ts +57 -0
- package/src/settings/signature-editor.tsx +142 -0
- package/src/settings/signature-page.tsx +70 -0
- package/worker/admin/blocked-sender-routes.ts +10 -16
- package/worker/backups/eml.ts +185 -0
- package/worker/backups/file-parts.ts +140 -0
- package/worker/backups/mail-backup.ts +644 -0
- package/worker/backups/settings-backup.ts +866 -0
- package/worker/backups/stream-eml.ts +73 -0
- package/worker/db/schema.ts +89 -5
- package/worker/jmap/attachment-blobs.ts +113 -0
- package/worker/jmap/blobs.ts +162 -0
- package/worker/jmap/draft-content.ts +42 -0
- package/worker/jmap/drafts.ts +70 -0
- package/worker/jmap/email-body.ts +152 -0
- package/worker/jmap/email-methods.ts +1223 -0
- package/worker/jmap/eventsource.ts +9 -8
- package/worker/jmap/import-methods.ts +205 -0
- package/worker/jmap/mailbox-methods.ts +187 -0
- package/worker/jmap/method-core.ts +379 -0
- package/worker/jmap/methods.ts +119 -1816
- package/worker/jmap/push-subscription-methods.ts +373 -0
- package/worker/jmap/push-types.ts +46 -2
- package/worker/jmap/push.ts +24 -31
- package/worker/jmap/routes.ts +144 -153
- package/worker/jmap/submission-methods.ts +395 -0
- package/worker/mail/access.ts +35 -12
- package/worker/mail/ai-classification.ts +2 -2
- package/worker/mail/archive-object.ts +96 -0
- package/worker/mail/archive-routes.ts +35 -0
- package/worker/mail/archive.ts +700 -0
- package/worker/mail/auth-headers.ts +57 -43
- package/worker/mail/auto-reply-routes.ts +260 -0
- package/worker/mail/auto-reply.ts +243 -0
- package/worker/mail/bimi.ts +53 -36
- package/worker/mail/bootstrap.ts +11 -3
- package/worker/mail/capabilities.ts +69 -0
- package/worker/mail/classification-signals.ts +1 -1
- package/worker/mail/confusables-data.ts +9 -0
- package/worker/mail/conversation-cursor.ts +6 -15
- package/worker/mail/delivery-events.ts +9 -7
- package/worker/mail/delivery-facts.ts +1 -1
- package/worker/mail/demo-routes.ts +3 -3
- package/worker/mail/doh.ts +3 -3
- package/worker/mail/download-links.ts +153 -0
- package/worker/mail/downloads.ts +2 -6
- package/worker/mail/draft-routes.ts +473 -0
- package/worker/mail/draft-sender.ts +54 -0
- package/worker/mail/edge-cache.ts +41 -55
- package/worker/mail/email-routing.ts +123 -0
- package/worker/mail/forward-destinations.ts +114 -0
- package/worker/mail/forward-downloads.ts +115 -0
- package/worker/mail/forward-html.ts +85 -0
- package/worker/mail/header-metadata.ts +2 -5
- package/worker/mail/impersonation.ts +102 -101
- package/worker/mail/import-routes.ts +29 -82
- package/worker/mail/import.ts +130 -0
- package/worker/mail/inbound-delivery.ts +6 -5
- package/worker/mail/inbound-threading.ts +15 -2
- package/worker/mail/inbound.ts +58 -28
- package/worker/mail/ip-intel.ts +8 -17
- package/worker/mail/isolate-cache.ts +1 -1
- package/worker/mail/mailbox-deletion.ts +33 -12
- package/worker/mail/mailbox-directory.ts +39 -65
- package/worker/mail/mailing-list.ts +29 -58
- package/worker/mail/message-security.ts +19 -8
- package/worker/mail/message-view.ts +12 -10
- package/worker/mail/office-conversion.ts +3 -5
- package/worker/mail/office-preview-container.ts +3 -8
- package/worker/mail/outbound-content.ts +139 -65
- package/worker/mail/outbound-delivery.ts +20 -17
- package/worker/mail/outbound-service.ts +34 -9
- package/worker/mail/outbound.ts +146 -75
- package/worker/mail/outgoing-context.ts +60 -30
- package/worker/mail/participants.ts +10 -15
- package/worker/mail/plain-body.ts +39 -0
- package/worker/mail/push-endpoint.ts +17 -0
- package/worker/mail/push-notifications.ts +53 -62
- package/worker/mail/quote-parser.ts +36 -24
- package/worker/mail/receive.ts +146 -39
- package/worker/mail/recipients.ts +1 -1
- package/worker/mail/remote-proxy.ts +3 -3
- package/worker/mail/repeat.ts +1 -1
- package/worker/mail/reply-plan.ts +124 -26
- package/worker/mail/rfc.ts +15 -7
- package/worker/mail/rich-content.ts +207 -0
- package/worker/mail/routes.ts +698 -304
- package/worker/mail/routing.ts +274 -0
- package/worker/mail/rules.ts +230 -0
- package/worker/mail/safety-routes.ts +88 -86
- package/worker/mail/schemas.ts +222 -31
- package/worker/mail/search.ts +25 -2
- package/worker/mail/security-settings.ts +4 -10
- package/worker/mail/send-message.ts +238 -0
- package/worker/mail/sender-intel.ts +12 -20
- package/worker/mail/signature-routes.ts +206 -0
- package/worker/mail/signatures.ts +195 -0
- package/worker/mail/spamhaus.ts +28 -16
- package/worker/mail/storage-keys.ts +35 -0
- package/worker/mail/unsubscribe.ts +19 -41
- package/worker/mail/uploads.ts +192 -80
- package/worker/mail/webhook-source.ts +3 -2
- package/worker/mail/workspace-safety.ts +194 -60
- package/worker/mailbox/demo.ts +13 -15
- package/worker/mailbox/email-index.ts +65 -35
- package/worker/mailbox/folder-model.ts +0 -20
- package/worker/mailbox/import-placement.ts +21 -36
- package/worker/mailbox/inbound-decision.ts +114 -0
- package/worker/mailbox/inbox-counts.ts +45 -25
- package/worker/mailbox/index.ts +756 -3201
- package/worker/mailbox/jmap-change-log.ts +195 -0
- package/worker/mailbox/jmap-email-rows.ts +186 -0
- package/worker/mailbox/jmap-mailboxes.ts +116 -0
- package/worker/mailbox/jmap-placement.ts +139 -0
- package/worker/mailbox/jmap-query-filter.ts +231 -0
- package/worker/mailbox/jmap-store.ts +167 -299
- package/worker/mailbox/mailbox-auto-reply.ts +316 -0
- package/worker/mailbox/mailbox-backup.ts +538 -0
- package/worker/mailbox/mailbox-drafts.ts +417 -0
- package/worker/mailbox/mailbox-folders.ts +242 -0
- package/worker/mailbox/mailbox-import.ts +455 -0
- package/worker/mailbox/mailbox-inbound.ts +934 -0
- package/worker/mailbox/mailbox-jmap.ts +294 -0
- package/worker/mailbox/mailbox-outbound.ts +413 -0
- package/worker/mailbox/mailbox-rules.ts +336 -0
- package/worker/mailbox/mailbox-senders.ts +294 -0
- package/worker/mailbox/mailbox-storage.ts +438 -0
- package/worker/mailbox/mailbox-views.ts +891 -0
- package/worker/mailbox/model.ts +1 -0
- package/worker/mailbox/office-preview-jobs.ts +59 -47
- package/worker/mailbox/placement.ts +933 -0
- package/worker/mailbox/restore-thread.ts +52 -0
- package/worker/mailbox/retention.ts +36 -0
- package/worker/mailbox/schema.ts +200 -1
- package/worker/mailbox/senders.ts +216 -178
- package/worker/mailbox/spam-undo-filing.ts +138 -0
- package/worker/mailbox/spam-undo.ts +253 -0
- package/worker/mailbox/support.ts +416 -0
- package/worker/mcp/mail-action-tools.ts +161 -1
- package/worker/mcp/mail-compose-tools.ts +7 -1
- package/worker/mcp/mail-safety-tools.ts +4 -4
- package/worker/module.ts +23 -4
- package/src/mail/use-compose-submission.ts +0 -208
- package/src/mail/use-reply-submission.ts +0 -114
- package/worker/mail/capped-body.ts +0 -36
|
@@ -0,0 +1,807 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "33d3c977-8b7d-4b71-9a51-581d90c5eaae",
|
|
5
|
+
"prevId": "63092f02-08dd-4c6e-82ff-ad66a1642095",
|
|
6
|
+
"tables": {
|
|
7
|
+
"blocked_senders": {
|
|
8
|
+
"name": "blocked_senders",
|
|
9
|
+
"columns": {
|
|
10
|
+
"pattern": {
|
|
11
|
+
"name": "pattern",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": false
|
|
16
|
+
},
|
|
17
|
+
"created_by_user_id": {
|
|
18
|
+
"name": "created_by_user_id",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": false,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
},
|
|
24
|
+
"created_at": {
|
|
25
|
+
"name": "created_at",
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true,
|
|
29
|
+
"autoincrement": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"indexes": {},
|
|
33
|
+
"foreignKeys": {
|
|
34
|
+
"blocked_senders_created_by_user_id_users_id_fk": {
|
|
35
|
+
"name": "blocked_senders_created_by_user_id_users_id_fk",
|
|
36
|
+
"tableFrom": "blocked_senders",
|
|
37
|
+
"tableTo": "users",
|
|
38
|
+
"columnsFrom": [
|
|
39
|
+
"created_by_user_id"
|
|
40
|
+
],
|
|
41
|
+
"columnsTo": [
|
|
42
|
+
"id"
|
|
43
|
+
],
|
|
44
|
+
"onDelete": "set null",
|
|
45
|
+
"onUpdate": "no action"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"compositePrimaryKeys": {},
|
|
49
|
+
"uniqueConstraints": {},
|
|
50
|
+
"checkConstraints": {}
|
|
51
|
+
},
|
|
52
|
+
"jmap_push_subscriptions": {
|
|
53
|
+
"name": "jmap_push_subscriptions",
|
|
54
|
+
"columns": {
|
|
55
|
+
"id": {
|
|
56
|
+
"name": "id",
|
|
57
|
+
"type": "text",
|
|
58
|
+
"primaryKey": true,
|
|
59
|
+
"notNull": true,
|
|
60
|
+
"autoincrement": false
|
|
61
|
+
},
|
|
62
|
+
"user_id": {
|
|
63
|
+
"name": "user_id",
|
|
64
|
+
"type": "text",
|
|
65
|
+
"primaryKey": false,
|
|
66
|
+
"notNull": true,
|
|
67
|
+
"autoincrement": false
|
|
68
|
+
},
|
|
69
|
+
"client_id": {
|
|
70
|
+
"name": "client_id",
|
|
71
|
+
"type": "text",
|
|
72
|
+
"primaryKey": false,
|
|
73
|
+
"notNull": true,
|
|
74
|
+
"autoincrement": false
|
|
75
|
+
},
|
|
76
|
+
"device_client_id": {
|
|
77
|
+
"name": "device_client_id",
|
|
78
|
+
"type": "text",
|
|
79
|
+
"primaryKey": false,
|
|
80
|
+
"notNull": true,
|
|
81
|
+
"autoincrement": false
|
|
82
|
+
},
|
|
83
|
+
"url": {
|
|
84
|
+
"name": "url",
|
|
85
|
+
"type": "text",
|
|
86
|
+
"primaryKey": false,
|
|
87
|
+
"notNull": true,
|
|
88
|
+
"autoincrement": false
|
|
89
|
+
},
|
|
90
|
+
"p256dh": {
|
|
91
|
+
"name": "p256dh",
|
|
92
|
+
"type": "text",
|
|
93
|
+
"primaryKey": false,
|
|
94
|
+
"notNull": false,
|
|
95
|
+
"autoincrement": false
|
|
96
|
+
},
|
|
97
|
+
"auth": {
|
|
98
|
+
"name": "auth",
|
|
99
|
+
"type": "text",
|
|
100
|
+
"primaryKey": false,
|
|
101
|
+
"notNull": false,
|
|
102
|
+
"autoincrement": false
|
|
103
|
+
},
|
|
104
|
+
"verification_code": {
|
|
105
|
+
"name": "verification_code",
|
|
106
|
+
"type": "text",
|
|
107
|
+
"primaryKey": false,
|
|
108
|
+
"notNull": true,
|
|
109
|
+
"autoincrement": false
|
|
110
|
+
},
|
|
111
|
+
"verified_at": {
|
|
112
|
+
"name": "verified_at",
|
|
113
|
+
"type": "integer",
|
|
114
|
+
"primaryKey": false,
|
|
115
|
+
"notNull": false,
|
|
116
|
+
"autoincrement": false
|
|
117
|
+
},
|
|
118
|
+
"expires_at": {
|
|
119
|
+
"name": "expires_at",
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"primaryKey": false,
|
|
122
|
+
"notNull": true,
|
|
123
|
+
"autoincrement": false
|
|
124
|
+
},
|
|
125
|
+
"types_json": {
|
|
126
|
+
"name": "types_json",
|
|
127
|
+
"type": "text",
|
|
128
|
+
"primaryKey": false,
|
|
129
|
+
"notNull": false,
|
|
130
|
+
"autoincrement": false
|
|
131
|
+
},
|
|
132
|
+
"created_at": {
|
|
133
|
+
"name": "created_at",
|
|
134
|
+
"type": "integer",
|
|
135
|
+
"primaryKey": false,
|
|
136
|
+
"notNull": true,
|
|
137
|
+
"autoincrement": false
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"indexes": {
|
|
141
|
+
"jmap_push_subscriptions_device_unique": {
|
|
142
|
+
"name": "jmap_push_subscriptions_device_unique",
|
|
143
|
+
"columns": [
|
|
144
|
+
"user_id",
|
|
145
|
+
"device_client_id"
|
|
146
|
+
],
|
|
147
|
+
"isUnique": true
|
|
148
|
+
},
|
|
149
|
+
"jmap_push_subscriptions_expires_idx": {
|
|
150
|
+
"name": "jmap_push_subscriptions_expires_idx",
|
|
151
|
+
"columns": [
|
|
152
|
+
"expires_at"
|
|
153
|
+
],
|
|
154
|
+
"isUnique": false
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"foreignKeys": {
|
|
158
|
+
"jmap_push_subscriptions_client_id_user_id_oidc_grants_client_id_user_id_fk": {
|
|
159
|
+
"name": "jmap_push_subscriptions_client_id_user_id_oidc_grants_client_id_user_id_fk",
|
|
160
|
+
"tableFrom": "jmap_push_subscriptions",
|
|
161
|
+
"tableTo": "oidc_grants",
|
|
162
|
+
"columnsFrom": [
|
|
163
|
+
"client_id",
|
|
164
|
+
"user_id"
|
|
165
|
+
],
|
|
166
|
+
"columnsTo": [
|
|
167
|
+
"client_id",
|
|
168
|
+
"user_id"
|
|
169
|
+
],
|
|
170
|
+
"onDelete": "cascade",
|
|
171
|
+
"onUpdate": "no action"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"compositePrimaryKeys": {},
|
|
175
|
+
"uniqueConstraints": {},
|
|
176
|
+
"checkConstraints": {}
|
|
177
|
+
},
|
|
178
|
+
"mail_archive_entries": {
|
|
179
|
+
"name": "mail_archive_entries",
|
|
180
|
+
"columns": {
|
|
181
|
+
"id": {
|
|
182
|
+
"name": "id",
|
|
183
|
+
"type": "text",
|
|
184
|
+
"primaryKey": true,
|
|
185
|
+
"notNull": true,
|
|
186
|
+
"autoincrement": false
|
|
187
|
+
},
|
|
188
|
+
"mailbox_id": {
|
|
189
|
+
"name": "mailbox_id",
|
|
190
|
+
"type": "text",
|
|
191
|
+
"primaryKey": false,
|
|
192
|
+
"notNull": true,
|
|
193
|
+
"autoincrement": false
|
|
194
|
+
},
|
|
195
|
+
"direction": {
|
|
196
|
+
"name": "direction",
|
|
197
|
+
"type": "text",
|
|
198
|
+
"primaryKey": false,
|
|
199
|
+
"notNull": true,
|
|
200
|
+
"autoincrement": false
|
|
201
|
+
},
|
|
202
|
+
"source_key": {
|
|
203
|
+
"name": "source_key",
|
|
204
|
+
"type": "text",
|
|
205
|
+
"primaryKey": false,
|
|
206
|
+
"notNull": false,
|
|
207
|
+
"autoincrement": false
|
|
208
|
+
},
|
|
209
|
+
"status": {
|
|
210
|
+
"name": "status",
|
|
211
|
+
"type": "text",
|
|
212
|
+
"primaryKey": false,
|
|
213
|
+
"notNull": true,
|
|
214
|
+
"autoincrement": false,
|
|
215
|
+
"default": "'pending'"
|
|
216
|
+
},
|
|
217
|
+
"attempts": {
|
|
218
|
+
"name": "attempts",
|
|
219
|
+
"type": "integer",
|
|
220
|
+
"primaryKey": false,
|
|
221
|
+
"notNull": true,
|
|
222
|
+
"autoincrement": false,
|
|
223
|
+
"default": 0
|
|
224
|
+
},
|
|
225
|
+
"last_error": {
|
|
226
|
+
"name": "last_error",
|
|
227
|
+
"type": "text",
|
|
228
|
+
"primaryKey": false,
|
|
229
|
+
"notNull": false,
|
|
230
|
+
"autoincrement": false
|
|
231
|
+
},
|
|
232
|
+
"archive_key": {
|
|
233
|
+
"name": "archive_key",
|
|
234
|
+
"type": "text",
|
|
235
|
+
"primaryKey": false,
|
|
236
|
+
"notNull": true,
|
|
237
|
+
"autoincrement": false
|
|
238
|
+
},
|
|
239
|
+
"sha256": {
|
|
240
|
+
"name": "sha256",
|
|
241
|
+
"type": "text",
|
|
242
|
+
"primaryKey": false,
|
|
243
|
+
"notNull": false,
|
|
244
|
+
"autoincrement": false
|
|
245
|
+
},
|
|
246
|
+
"size": {
|
|
247
|
+
"name": "size",
|
|
248
|
+
"type": "integer",
|
|
249
|
+
"primaryKey": false,
|
|
250
|
+
"notNull": false,
|
|
251
|
+
"autoincrement": false
|
|
252
|
+
},
|
|
253
|
+
"created_at": {
|
|
254
|
+
"name": "created_at",
|
|
255
|
+
"type": "integer",
|
|
256
|
+
"primaryKey": false,
|
|
257
|
+
"notNull": true,
|
|
258
|
+
"autoincrement": false
|
|
259
|
+
},
|
|
260
|
+
"updated_at": {
|
|
261
|
+
"name": "updated_at",
|
|
262
|
+
"type": "integer",
|
|
263
|
+
"primaryKey": false,
|
|
264
|
+
"notNull": true,
|
|
265
|
+
"autoincrement": false
|
|
266
|
+
},
|
|
267
|
+
"archived_at": {
|
|
268
|
+
"name": "archived_at",
|
|
269
|
+
"type": "integer",
|
|
270
|
+
"primaryKey": false,
|
|
271
|
+
"notNull": false,
|
|
272
|
+
"autoincrement": false
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"indexes": {
|
|
276
|
+
"mail_archive_entries_status_idx": {
|
|
277
|
+
"name": "mail_archive_entries_status_idx",
|
|
278
|
+
"columns": [
|
|
279
|
+
"status",
|
|
280
|
+
"created_at"
|
|
281
|
+
],
|
|
282
|
+
"isUnique": false
|
|
283
|
+
},
|
|
284
|
+
"mail_archive_entries_source_idx": {
|
|
285
|
+
"name": "mail_archive_entries_source_idx",
|
|
286
|
+
"columns": [
|
|
287
|
+
"source_key"
|
|
288
|
+
],
|
|
289
|
+
"isUnique": false
|
|
290
|
+
},
|
|
291
|
+
"mail_archive_entries_mailbox_idx": {
|
|
292
|
+
"name": "mail_archive_entries_mailbox_idx",
|
|
293
|
+
"columns": [
|
|
294
|
+
"mailbox_id",
|
|
295
|
+
"status"
|
|
296
|
+
],
|
|
297
|
+
"isUnique": false
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"foreignKeys": {},
|
|
301
|
+
"compositePrimaryKeys": {},
|
|
302
|
+
"uniqueConstraints": {},
|
|
303
|
+
"checkConstraints": {}
|
|
304
|
+
},
|
|
305
|
+
"mailbox_counts": {
|
|
306
|
+
"name": "mailbox_counts",
|
|
307
|
+
"columns": {
|
|
308
|
+
"mailbox_id": {
|
|
309
|
+
"name": "mailbox_id",
|
|
310
|
+
"type": "text",
|
|
311
|
+
"primaryKey": true,
|
|
312
|
+
"notNull": true,
|
|
313
|
+
"autoincrement": false
|
|
314
|
+
},
|
|
315
|
+
"incoming_count": {
|
|
316
|
+
"name": "incoming_count",
|
|
317
|
+
"type": "integer",
|
|
318
|
+
"primaryKey": false,
|
|
319
|
+
"notNull": true,
|
|
320
|
+
"autoincrement": false
|
|
321
|
+
},
|
|
322
|
+
"version": {
|
|
323
|
+
"name": "version",
|
|
324
|
+
"type": "integer",
|
|
325
|
+
"primaryKey": false,
|
|
326
|
+
"notNull": true,
|
|
327
|
+
"autoincrement": false
|
|
328
|
+
},
|
|
329
|
+
"updated_at": {
|
|
330
|
+
"name": "updated_at",
|
|
331
|
+
"type": "integer",
|
|
332
|
+
"primaryKey": false,
|
|
333
|
+
"notNull": true,
|
|
334
|
+
"autoincrement": false
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"indexes": {},
|
|
338
|
+
"foreignKeys": {
|
|
339
|
+
"mailbox_counts_mailbox_id_mailboxes_id_fk": {
|
|
340
|
+
"name": "mailbox_counts_mailbox_id_mailboxes_id_fk",
|
|
341
|
+
"tableFrom": "mailbox_counts",
|
|
342
|
+
"tableTo": "mailboxes",
|
|
343
|
+
"columnsFrom": [
|
|
344
|
+
"mailbox_id"
|
|
345
|
+
],
|
|
346
|
+
"columnsTo": [
|
|
347
|
+
"id"
|
|
348
|
+
],
|
|
349
|
+
"onDelete": "cascade",
|
|
350
|
+
"onUpdate": "no action"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"compositePrimaryKeys": {},
|
|
354
|
+
"uniqueConstraints": {},
|
|
355
|
+
"checkConstraints": {}
|
|
356
|
+
},
|
|
357
|
+
"mailbox_notification_preferences": {
|
|
358
|
+
"name": "mailbox_notification_preferences",
|
|
359
|
+
"columns": {
|
|
360
|
+
"mailbox_id": {
|
|
361
|
+
"name": "mailbox_id",
|
|
362
|
+
"type": "text",
|
|
363
|
+
"primaryKey": false,
|
|
364
|
+
"notNull": true,
|
|
365
|
+
"autoincrement": false
|
|
366
|
+
},
|
|
367
|
+
"user_id": {
|
|
368
|
+
"name": "user_id",
|
|
369
|
+
"type": "text",
|
|
370
|
+
"primaryKey": false,
|
|
371
|
+
"notNull": true,
|
|
372
|
+
"autoincrement": false
|
|
373
|
+
},
|
|
374
|
+
"enabled": {
|
|
375
|
+
"name": "enabled",
|
|
376
|
+
"type": "integer",
|
|
377
|
+
"primaryKey": false,
|
|
378
|
+
"notNull": true,
|
|
379
|
+
"autoincrement": false,
|
|
380
|
+
"default": true
|
|
381
|
+
},
|
|
382
|
+
"updated_at": {
|
|
383
|
+
"name": "updated_at",
|
|
384
|
+
"type": "integer",
|
|
385
|
+
"primaryKey": false,
|
|
386
|
+
"notNull": true,
|
|
387
|
+
"autoincrement": false,
|
|
388
|
+
"default": "(unixepoch() * 1000)"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"indexes": {
|
|
392
|
+
"mailbox_notification_preferences_user_idx": {
|
|
393
|
+
"name": "mailbox_notification_preferences_user_idx",
|
|
394
|
+
"columns": [
|
|
395
|
+
"user_id"
|
|
396
|
+
],
|
|
397
|
+
"isUnique": false
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"foreignKeys": {
|
|
401
|
+
"mailbox_notification_preferences_mailbox_id_mailboxes_id_fk": {
|
|
402
|
+
"name": "mailbox_notification_preferences_mailbox_id_mailboxes_id_fk",
|
|
403
|
+
"tableFrom": "mailbox_notification_preferences",
|
|
404
|
+
"tableTo": "mailboxes",
|
|
405
|
+
"columnsFrom": [
|
|
406
|
+
"mailbox_id"
|
|
407
|
+
],
|
|
408
|
+
"columnsTo": [
|
|
409
|
+
"id"
|
|
410
|
+
],
|
|
411
|
+
"onDelete": "cascade",
|
|
412
|
+
"onUpdate": "no action"
|
|
413
|
+
},
|
|
414
|
+
"mailbox_notification_preferences_user_id_users_id_fk": {
|
|
415
|
+
"name": "mailbox_notification_preferences_user_id_users_id_fk",
|
|
416
|
+
"tableFrom": "mailbox_notification_preferences",
|
|
417
|
+
"tableTo": "users",
|
|
418
|
+
"columnsFrom": [
|
|
419
|
+
"user_id"
|
|
420
|
+
],
|
|
421
|
+
"columnsTo": [
|
|
422
|
+
"id"
|
|
423
|
+
],
|
|
424
|
+
"onDelete": "cascade",
|
|
425
|
+
"onUpdate": "no action"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"compositePrimaryKeys": {
|
|
429
|
+
"mailbox_notification_preferences_mailbox_id_user_id_pk": {
|
|
430
|
+
"columns": [
|
|
431
|
+
"mailbox_id",
|
|
432
|
+
"user_id"
|
|
433
|
+
],
|
|
434
|
+
"name": "mailbox_notification_preferences_mailbox_id_user_id_pk"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"uniqueConstraints": {},
|
|
438
|
+
"checkConstraints": {}
|
|
439
|
+
},
|
|
440
|
+
"mailbox_read_counts": {
|
|
441
|
+
"name": "mailbox_read_counts",
|
|
442
|
+
"columns": {
|
|
443
|
+
"mailbox_id": {
|
|
444
|
+
"name": "mailbox_id",
|
|
445
|
+
"type": "text",
|
|
446
|
+
"primaryKey": false,
|
|
447
|
+
"notNull": true,
|
|
448
|
+
"autoincrement": false
|
|
449
|
+
},
|
|
450
|
+
"user_id": {
|
|
451
|
+
"name": "user_id",
|
|
452
|
+
"type": "text",
|
|
453
|
+
"primaryKey": false,
|
|
454
|
+
"notNull": true,
|
|
455
|
+
"autoincrement": false
|
|
456
|
+
},
|
|
457
|
+
"read_count": {
|
|
458
|
+
"name": "read_count",
|
|
459
|
+
"type": "integer",
|
|
460
|
+
"primaryKey": false,
|
|
461
|
+
"notNull": true,
|
|
462
|
+
"autoincrement": false
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"indexes": {},
|
|
466
|
+
"foreignKeys": {
|
|
467
|
+
"mailbox_read_counts_mailbox_id_mailboxes_id_fk": {
|
|
468
|
+
"name": "mailbox_read_counts_mailbox_id_mailboxes_id_fk",
|
|
469
|
+
"tableFrom": "mailbox_read_counts",
|
|
470
|
+
"tableTo": "mailboxes",
|
|
471
|
+
"columnsFrom": [
|
|
472
|
+
"mailbox_id"
|
|
473
|
+
],
|
|
474
|
+
"columnsTo": [
|
|
475
|
+
"id"
|
|
476
|
+
],
|
|
477
|
+
"onDelete": "cascade",
|
|
478
|
+
"onUpdate": "no action"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"compositePrimaryKeys": {
|
|
482
|
+
"mailbox_read_counts_mailbox_id_user_id_pk": {
|
|
483
|
+
"columns": [
|
|
484
|
+
"mailbox_id",
|
|
485
|
+
"user_id"
|
|
486
|
+
],
|
|
487
|
+
"name": "mailbox_read_counts_mailbox_id_user_id_pk"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"uniqueConstraints": {},
|
|
491
|
+
"checkConstraints": {}
|
|
492
|
+
},
|
|
493
|
+
"push_subscriptions": {
|
|
494
|
+
"name": "push_subscriptions",
|
|
495
|
+
"columns": {
|
|
496
|
+
"id": {
|
|
497
|
+
"name": "id",
|
|
498
|
+
"type": "text",
|
|
499
|
+
"primaryKey": true,
|
|
500
|
+
"notNull": true,
|
|
501
|
+
"autoincrement": false
|
|
502
|
+
},
|
|
503
|
+
"user_id": {
|
|
504
|
+
"name": "user_id",
|
|
505
|
+
"type": "text",
|
|
506
|
+
"primaryKey": false,
|
|
507
|
+
"notNull": true,
|
|
508
|
+
"autoincrement": false
|
|
509
|
+
},
|
|
510
|
+
"session_id": {
|
|
511
|
+
"name": "session_id",
|
|
512
|
+
"type": "text",
|
|
513
|
+
"primaryKey": false,
|
|
514
|
+
"notNull": false,
|
|
515
|
+
"autoincrement": false
|
|
516
|
+
},
|
|
517
|
+
"endpoint": {
|
|
518
|
+
"name": "endpoint",
|
|
519
|
+
"type": "text",
|
|
520
|
+
"primaryKey": false,
|
|
521
|
+
"notNull": true,
|
|
522
|
+
"autoincrement": false
|
|
523
|
+
},
|
|
524
|
+
"p256dh": {
|
|
525
|
+
"name": "p256dh",
|
|
526
|
+
"type": "text",
|
|
527
|
+
"primaryKey": false,
|
|
528
|
+
"notNull": true,
|
|
529
|
+
"autoincrement": false
|
|
530
|
+
},
|
|
531
|
+
"auth": {
|
|
532
|
+
"name": "auth",
|
|
533
|
+
"type": "text",
|
|
534
|
+
"primaryKey": false,
|
|
535
|
+
"notNull": true,
|
|
536
|
+
"autoincrement": false
|
|
537
|
+
},
|
|
538
|
+
"created_at": {
|
|
539
|
+
"name": "created_at",
|
|
540
|
+
"type": "integer",
|
|
541
|
+
"primaryKey": false,
|
|
542
|
+
"notNull": true,
|
|
543
|
+
"autoincrement": false,
|
|
544
|
+
"default": "(unixepoch() * 1000)"
|
|
545
|
+
},
|
|
546
|
+
"updated_at": {
|
|
547
|
+
"name": "updated_at",
|
|
548
|
+
"type": "integer",
|
|
549
|
+
"primaryKey": false,
|
|
550
|
+
"notNull": true,
|
|
551
|
+
"autoincrement": false,
|
|
552
|
+
"default": "(unixepoch() * 1000)"
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"indexes": {
|
|
556
|
+
"push_subscriptions_endpoint_unique": {
|
|
557
|
+
"name": "push_subscriptions_endpoint_unique",
|
|
558
|
+
"columns": [
|
|
559
|
+
"endpoint"
|
|
560
|
+
],
|
|
561
|
+
"isUnique": true
|
|
562
|
+
},
|
|
563
|
+
"push_subscriptions_user_idx": {
|
|
564
|
+
"name": "push_subscriptions_user_idx",
|
|
565
|
+
"columns": [
|
|
566
|
+
"user_id"
|
|
567
|
+
],
|
|
568
|
+
"isUnique": false
|
|
569
|
+
},
|
|
570
|
+
"push_subscriptions_session_idx": {
|
|
571
|
+
"name": "push_subscriptions_session_idx",
|
|
572
|
+
"columns": [
|
|
573
|
+
"session_id"
|
|
574
|
+
],
|
|
575
|
+
"isUnique": false
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"foreignKeys": {
|
|
579
|
+
"push_subscriptions_user_id_users_id_fk": {
|
|
580
|
+
"name": "push_subscriptions_user_id_users_id_fk",
|
|
581
|
+
"tableFrom": "push_subscriptions",
|
|
582
|
+
"tableTo": "users",
|
|
583
|
+
"columnsFrom": [
|
|
584
|
+
"user_id"
|
|
585
|
+
],
|
|
586
|
+
"columnsTo": [
|
|
587
|
+
"id"
|
|
588
|
+
],
|
|
589
|
+
"onDelete": "cascade",
|
|
590
|
+
"onUpdate": "no action"
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
"compositePrimaryKeys": {},
|
|
594
|
+
"uniqueConstraints": {},
|
|
595
|
+
"checkConstraints": {}
|
|
596
|
+
},
|
|
597
|
+
"sender_reports": {
|
|
598
|
+
"name": "sender_reports",
|
|
599
|
+
"columns": {
|
|
600
|
+
"mailbox_id": {
|
|
601
|
+
"name": "mailbox_id",
|
|
602
|
+
"type": "text",
|
|
603
|
+
"primaryKey": false,
|
|
604
|
+
"notNull": true,
|
|
605
|
+
"autoincrement": false
|
|
606
|
+
},
|
|
607
|
+
"email_id": {
|
|
608
|
+
"name": "email_id",
|
|
609
|
+
"type": "text",
|
|
610
|
+
"primaryKey": false,
|
|
611
|
+
"notNull": true,
|
|
612
|
+
"autoincrement": false
|
|
613
|
+
},
|
|
614
|
+
"address": {
|
|
615
|
+
"name": "address",
|
|
616
|
+
"type": "text",
|
|
617
|
+
"primaryKey": false,
|
|
618
|
+
"notNull": true,
|
|
619
|
+
"autoincrement": false
|
|
620
|
+
},
|
|
621
|
+
"domain": {
|
|
622
|
+
"name": "domain",
|
|
623
|
+
"type": "text",
|
|
624
|
+
"primaryKey": false,
|
|
625
|
+
"notNull": true,
|
|
626
|
+
"autoincrement": false
|
|
627
|
+
},
|
|
628
|
+
"label": {
|
|
629
|
+
"name": "label",
|
|
630
|
+
"type": "text",
|
|
631
|
+
"primaryKey": false,
|
|
632
|
+
"notNull": true,
|
|
633
|
+
"autoincrement": false
|
|
634
|
+
},
|
|
635
|
+
"created_at": {
|
|
636
|
+
"name": "created_at",
|
|
637
|
+
"type": "integer",
|
|
638
|
+
"primaryKey": false,
|
|
639
|
+
"notNull": true,
|
|
640
|
+
"autoincrement": false
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"indexes": {
|
|
644
|
+
"sender_reports_domain_idx": {
|
|
645
|
+
"name": "sender_reports_domain_idx",
|
|
646
|
+
"columns": [
|
|
647
|
+
"domain",
|
|
648
|
+
"address"
|
|
649
|
+
],
|
|
650
|
+
"isUnique": false
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
"foreignKeys": {
|
|
654
|
+
"sender_reports_mailbox_id_mailboxes_id_fk": {
|
|
655
|
+
"name": "sender_reports_mailbox_id_mailboxes_id_fk",
|
|
656
|
+
"tableFrom": "sender_reports",
|
|
657
|
+
"tableTo": "mailboxes",
|
|
658
|
+
"columnsFrom": [
|
|
659
|
+
"mailbox_id"
|
|
660
|
+
],
|
|
661
|
+
"columnsTo": [
|
|
662
|
+
"id"
|
|
663
|
+
],
|
|
664
|
+
"onDelete": "cascade",
|
|
665
|
+
"onUpdate": "no action"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"compositePrimaryKeys": {
|
|
669
|
+
"sender_reports_mailbox_id_email_id_pk": {
|
|
670
|
+
"columns": [
|
|
671
|
+
"mailbox_id",
|
|
672
|
+
"email_id"
|
|
673
|
+
],
|
|
674
|
+
"name": "sender_reports_mailbox_id_email_id_pk"
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"uniqueConstraints": {},
|
|
678
|
+
"checkConstraints": {}
|
|
679
|
+
},
|
|
680
|
+
"signatures": {
|
|
681
|
+
"name": "signatures",
|
|
682
|
+
"columns": {
|
|
683
|
+
"user_id": {
|
|
684
|
+
"name": "user_id",
|
|
685
|
+
"type": "text",
|
|
686
|
+
"primaryKey": false,
|
|
687
|
+
"notNull": false,
|
|
688
|
+
"autoincrement": false
|
|
689
|
+
},
|
|
690
|
+
"mailbox_id": {
|
|
691
|
+
"name": "mailbox_id",
|
|
692
|
+
"type": "text",
|
|
693
|
+
"primaryKey": false,
|
|
694
|
+
"notNull": false,
|
|
695
|
+
"autoincrement": false
|
|
696
|
+
},
|
|
697
|
+
"html": {
|
|
698
|
+
"name": "html",
|
|
699
|
+
"type": "text",
|
|
700
|
+
"primaryKey": false,
|
|
701
|
+
"notNull": true,
|
|
702
|
+
"autoincrement": false
|
|
703
|
+
},
|
|
704
|
+
"text": {
|
|
705
|
+
"name": "text",
|
|
706
|
+
"type": "text",
|
|
707
|
+
"primaryKey": false,
|
|
708
|
+
"notNull": true,
|
|
709
|
+
"autoincrement": false
|
|
710
|
+
},
|
|
711
|
+
"images": {
|
|
712
|
+
"name": "images",
|
|
713
|
+
"type": "text",
|
|
714
|
+
"primaryKey": false,
|
|
715
|
+
"notNull": true,
|
|
716
|
+
"autoincrement": false
|
|
717
|
+
},
|
|
718
|
+
"use_on_new": {
|
|
719
|
+
"name": "use_on_new",
|
|
720
|
+
"type": "integer",
|
|
721
|
+
"primaryKey": false,
|
|
722
|
+
"notNull": true,
|
|
723
|
+
"autoincrement": false,
|
|
724
|
+
"default": true
|
|
725
|
+
},
|
|
726
|
+
"use_on_reply": {
|
|
727
|
+
"name": "use_on_reply",
|
|
728
|
+
"type": "integer",
|
|
729
|
+
"primaryKey": false,
|
|
730
|
+
"notNull": true,
|
|
731
|
+
"autoincrement": false,
|
|
732
|
+
"default": true
|
|
733
|
+
},
|
|
734
|
+
"updated_at": {
|
|
735
|
+
"name": "updated_at",
|
|
736
|
+
"type": "integer",
|
|
737
|
+
"primaryKey": false,
|
|
738
|
+
"notNull": true,
|
|
739
|
+
"autoincrement": false,
|
|
740
|
+
"default": "(unixepoch() * 1000)"
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
"indexes": {
|
|
744
|
+
"signatures_user_idx": {
|
|
745
|
+
"name": "signatures_user_idx",
|
|
746
|
+
"columns": [
|
|
747
|
+
"user_id"
|
|
748
|
+
],
|
|
749
|
+
"isUnique": true
|
|
750
|
+
},
|
|
751
|
+
"signatures_mailbox_idx": {
|
|
752
|
+
"name": "signatures_mailbox_idx",
|
|
753
|
+
"columns": [
|
|
754
|
+
"mailbox_id"
|
|
755
|
+
],
|
|
756
|
+
"isUnique": true
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"foreignKeys": {
|
|
760
|
+
"signatures_user_id_users_id_fk": {
|
|
761
|
+
"name": "signatures_user_id_users_id_fk",
|
|
762
|
+
"tableFrom": "signatures",
|
|
763
|
+
"tableTo": "users",
|
|
764
|
+
"columnsFrom": [
|
|
765
|
+
"user_id"
|
|
766
|
+
],
|
|
767
|
+
"columnsTo": [
|
|
768
|
+
"id"
|
|
769
|
+
],
|
|
770
|
+
"onDelete": "cascade",
|
|
771
|
+
"onUpdate": "no action"
|
|
772
|
+
},
|
|
773
|
+
"signatures_mailbox_id_mailboxes_id_fk": {
|
|
774
|
+
"name": "signatures_mailbox_id_mailboxes_id_fk",
|
|
775
|
+
"tableFrom": "signatures",
|
|
776
|
+
"tableTo": "mailboxes",
|
|
777
|
+
"columnsFrom": [
|
|
778
|
+
"mailbox_id"
|
|
779
|
+
],
|
|
780
|
+
"columnsTo": [
|
|
781
|
+
"id"
|
|
782
|
+
],
|
|
783
|
+
"onDelete": "cascade",
|
|
784
|
+
"onUpdate": "no action"
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"compositePrimaryKeys": {},
|
|
788
|
+
"uniqueConstraints": {},
|
|
789
|
+
"checkConstraints": {
|
|
790
|
+
"signatures_one_owner": {
|
|
791
|
+
"name": "signatures_one_owner",
|
|
792
|
+
"value": "(\"signatures\".\"user_id\" is null) <> (\"signatures\".\"mailbox_id\" is null)"
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
"views": {},
|
|
798
|
+
"enums": {},
|
|
799
|
+
"_meta": {
|
|
800
|
+
"schemas": {},
|
|
801
|
+
"tables": {},
|
|
802
|
+
"columns": {}
|
|
803
|
+
},
|
|
804
|
+
"internal": {
|
|
805
|
+
"indexes": {}
|
|
806
|
+
}
|
|
807
|
+
}
|