Columns and types
Column types, how they are stored in SQLite and how they appear in the API.
| Type | SQLite storage | API value |
|---|---|---|
| Title, Text, URL | TEXT | string |
| Number | REAL | number |
| Checkbox | INTEGER (0/1) | true / false |
| Date | TEXT (yyyy-mm-dd) | string |
| Select | TEXT | option name |
| Multi-select | TEXT (JSON) | array of option names |
| Person | TEXT | array of OpenThink user IDs |
| Relation | TEXT | array of row IDs |
| Files | TEXT (JSON) | array of Markdown links |
System columns
Every row has an ID (_id), a position, creation and update times, and its creator. In policies these are row.id, row.createdAt, row.updatedAt and row.by; in SQL the row ID is "_id".
Person columns
Cells hold OpenThink user IDs, up to 20 per cell. When you write, you can send an email address or a user ID; an email that has no OpenThink account is rejected. A policy such as me in row.Assignee works without storing emails.
Changing a column's type
Think Store adds columns as you define them and rebuilds a column when its SQL type changes. Deleting a column keeps its data until it is cleaned up, so the deletion can be undone.