diff --git a/intro/models.md b/intro/models.md index 8c1f660..7afd0ab 100644 --- a/intro/models.md +++ b/intro/models.md @@ -151,21 +151,24 @@ As you can see in the example, due to the different column types, the values can | Column | Type | Example | Notice | | :--------------------------------------------- | :------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ | | `text`
`email`
`url` | `string` | `"Albert"` | | -| `long-text` | `string`
(markdown) | `"# Markdown syntax\n\nNew line with some **bold text**."` | +| `long-text` | `string`
(markdown) | `"# Markdown syntax\n\nNew line with some **bold text**."` | | | `number`
`percent`
`dollar`
`euro` | `integer` | `279` or `12.5344` | | | `collaborator` | `array` | `["24...ab2@auth.local", "98...a3@auth.local"]` | | | `date` | `string`
([ISO 8601 date and time in UTC](https://en.wikipedia.org/wiki/ISO_8601)) | ` "2021-07-01 13:59"` or
`"2021-03-10T16:19:31.761+00:00"` | - seatable accepts a wide variety of date formats.
- Always saved in iso format.
- If "Accurate to minutes" is not set, hh:mm will be ignored. | -| `duration` | `string` | `"9:50"` or `"1:10:30"` | Depending on column setting. | +| `duration` | `integer` (Duration in seconds) | `5400` | | | `single-select` | `string` | `"female"` | The exact string of the option is required. If the option doesn't exist, `option deleted` will be shown in the UI. | | `multiple-select` | `array` | `["Option 1", "Option 2"]` | Non-existing options will be ignored. | -| `image` | `array` | `["/workspace/24/asset/.../heart.png", "https://seatable.io/logo.svg"]` | Images can be stored in two ways:
- [uploading an image](https://api.seatable.io/reference/uploadfile)
- providing public URLs | -| `file` | `array` | `[{"name": "fav.ico", "size": 6746, "type": "file", "url": "..."}]` | You need to upload the file first, get its parent_path and file_relative_path first and then return to this call. | +| `image` | `array` | `["/workspace/24/asset/.../heart.png", "https://seatable.io/logo.svg"]` | Images can be stored in two ways:
- [uploading an image](https://api.seatable.io/reference/uploadfile)
- providing public URLs | +| `file` | `array` | `[{"name": "fav.ico", "size": 6746, "type": "file", "url": "...", "upload_time": "2024-03-15T12:34:56.466+00:00"}]` | You need to upload the file first, get its parent_path and file_relative_path first and then return to this call. | +| `email` | `string` | `test@example.org` | | +| `url` | `string` | `https://seatable.io` | | | `checkbox` | `boolean` | `true` | | -| `rate` | `integer` | 4 | +| `rate` | `integer` | 4 | | | `geolocation` | `object` | `{"lng": 8.23..., "lat": 50.00...}` or
`{"country_region": "Sweden"}` | Depending on column setting. | | `formula` | `string` | `"Albert Summer"` | Contains only the result of the formula. | +| `auto-number` | `string` | `"0001"` | | | `button` | `null` | `null` | Always `null` | -| `link` | `array` | `[{"row_id": "Mr-3QnQ5Q-eeEqFBevtOkw", "display_value": "Google News"}]` | | +| `link` | `array` | `["Mr-3QnQ5Q-eeEqFBevtOkw"]` | Array of row IDs. | | `link-formula` | `array`, `string` or `integer` | `["Todo 1", "Todo 2"]`, `Open Pending`, `2` | The output depends on the link formula type. Lookup returns an array, rollup returns a string and findmax returns an integer. | | `digital-sign` | `object` | `{"username": "24...ab2@auth.local", "sign_image_url": "/digital-signs/2023-06/24...ab2@auth.local-1687426928723.png", "sign_time": "2023-06-22T09:42:08.761+00:00"}` | | | `_id` | `string` | `"Qtf7xPmoRaiFyQPO1aENTjb"` | Unique value inside a base and can not be changed. |