Model tallies
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
| owner | x | x | x | x |
| user | x | x | | |
Fields
| Name | Type | Link | Maps To | Default | Indexed? | Unique? | Required? |
|---|
| __v | Number | | | | | | |
| _deleted | Boolean | | | false | x | | |
| _id | ObjectID | | | [Function] | | | |
| _owner_id | ObjectID | User | _owner | | x | | |
| _updated_by_id | ObjectID | User | _updated_by | | x | | |
| answers | Array | | | [Function] | | | |
| createdAt | Date | | | | | | |
| formName | String | | | | x | | |
| reader_id | ObjectID | reader | | | x | | |
| respondentId | String | | | | x | | |
| responseId | String | | | | x | x | |
| submittedAt | Date | | | | x | | |
| updatedAt | Date | | | | | | |
Field Details
__v
{
"path": "__v",
"instance": "Number",
"options": {},
"validators": []
}_deleted
{
"path": "_deleted",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}_id
{
"path": "_id",
"instance": "ObjectID",
"options": {
"auto": true,
"type": "ObjectId"
},
"validators": [],
"defaultValue": "[Function]"
}_owner_id
{
"path": "_owner_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"validators": []
}_updated_by_id
{
"path": "_updated_by_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"validators": []
}answers
{
"path": "answers",
"instance": "Array",
"options": {
"type": [
{}
]
},
"validators": [],
"defaultValue": "[Function]"
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}formName
{
"path": "formName",
"instance": "String",
"options": {
"index": true
},
"validators": []
}reader_id
{
"path": "reader_id",
"instance": "ObjectID",
"options": {
"link": "reader",
"index": true
},
"validators": []
}respondentId
{
"path": "respondentId",
"instance": "String",
"options": {
"index": true
},
"validators": []
}responseId
{
"path": "responseId",
"instance": "String",
"options": {
"index": true,
"unique": true
},
"validators": []
}submittedAt
{
"path": "submittedAt",
"instance": "Date",
"options": {
"index": true
},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}