You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/data-types/types/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,7 @@ INSERT INTO customers (domain) VALUES
158
158
### Image and Attachment Domains
159
159
160
160
The `image` domain stores JSON objects with URL and MIME type information. The `attachment` domain accepts either that JSON shape or a plain URL string.
161
+
The `upload` domain uses the same JSON object shape as `image`, ensuring both the file URL and MIME type are present.
161
162
162
163
```sql
163
164
-- Valid image
@@ -184,7 +185,7 @@ INSERT INTO customers (document) VALUES ('https://storage.example.com/favicon.ic
184
185
|`hostname`|`text`| Domain name without protocol |`example.com`|
185
186
|`image`|`json`| Image metadata with URL and MIME |`{"url": "...", "mime": "image/jpeg"}`|
186
187
|`attachment`|`json`| File attachment URL or metadata |`{"url": "...", "mime": "application/pdf"}` or `https://example.com/favicon.ico`|
187
-
|`upload`|`text`| File upload identifier | Various formats|
0 commit comments