aboutsummaryrefslogtreecommitdiffstats
path: root/SCHEMA.md
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2020-12-17 09:38:13 +0300
committerGravatar Hassan Abouelela <[email protected]>2020-12-17 09:38:13 +0300
commitd2427c7d3c3a1e877e99a724106b8d01d356e84c (patch)
treecb35783fb39c8a96c834c6835054bca2e3a2a159 /SCHEMA.md
parentAdds Timestamp Field (diff)
Fixes DB Timestamp on Return
As pointed out by @ks129, fetching the responses would cause an error in the timestamp, as the validation was returning the current time at fetching, instead of the stored value. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'SCHEMA.md')
-rw-r--r--SCHEMA.md15
1 files changed, 8 insertions, 7 deletions
diff --git a/SCHEMA.md b/SCHEMA.md
index b37ed1d..59b6c33 100644
--- a/SCHEMA.md
+++ b/SCHEMA.md
@@ -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