diff options
author | 2020-12-17 09:03:04 +0200 | |
---|---|---|
committer | 2020-12-17 09:03:04 +0200 | |
commit | 30af30bb2655195dfff8515f0834429e8f5bab80 (patch) | |
tree | 173d5e2054d124b1f9f9f439cd16802cc0b31be7 /SCHEMA.md | |
parent | Create config.yml (diff) | |
parent | Update backend/models/form_response.py (diff) |
Merge pull request #38 from python-discord/submission-timestamp
Adds Timestamp Field
Diffstat (limited to 'SCHEMA.md')
-rw-r--r-- | SCHEMA.md | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -127,13 +127,14 @@ Textareas require no additional configuration. ## Form response -| Field | Type | Description | -| ---------- | ---------------------------------------------------- | --------------------------------------------------------------------------- | -| `_id`/`id` | MongoDB ObjectID | Random identifier used for the response | -| `user` | Optional [user details object](#user-details-object) | An object describing the user that submitted if the form is not anonymous | -| `antispam` | Optional [anti spam object](#anti-spam-object) | An object containing information about the anti-spam on the form submission | -| `response` | Object | Object containing question IDs mapping to the users answer | -| `form_id` | String | ID of the form that the user is submitting to | +| Field | Type | Description | +| ----------- | ---------------------------------------------------- | --------------------------------------------------------------------------- | +| `_id`/`id` | MongoDB ObjectID | Random identifier used for the response | +| `user` | Optional [user details object](#user-details-object) | An object describing the user that submitted if the form is not anonymous | +| `antispam` | Optional [anti spam object](#anti-spam-object) | An object containing information about the anti-spam on the form submission | +| `response` | Object | Object containing question IDs mapping to the users answer | +| `form_id` | String | ID of the form that the user is submitting to | +| `timestamp` | String | ISO formatted string of submission time. | ### User details object |