Model checkins
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | |
| owner | 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 | | |
| createdAt | Date | | | | | | |
| guest_id | ObjectID | Guest | | | x | | |
| location_id | ObjectID | Location | | | x | | |
| source | String | | | | | | |
| state | String | | | | x | | x |
| temperature | Number | | | | | | |
| timestamp | Date | | | [Function] | | | |
| updatedAt | Date | | | | | | |
| user_id | ObjectID | User | | | x | | |
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": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}guest_id
{
"path": "guest_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Guest"
},
"validators": []
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Location"
},
"validators": []
}source
{
"path": "source",
"instance": "String",
"options": {},
"validators": []
}state
{
"path": "state",
"instance": "String",
"options": {
"required": true,
"index": true,
"validate": {}
},
"validators": [
{
"message": "Path `{PATH}` is required."
},
{
"message": "Validator failed for path `{PATH}` with value `{VALUE}`"
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
- : Validator failed for path `{PATH}` with value `{VALUE}`
temperature
{
"path": "temperature",
"instance": "Number",
"options": {},
"validators": []
}timestamp
{
"path": "timestamp",
"instance": "Date",
"options": {},
"validators": [],
"defaultValue": "[Function]"
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}user_id
{
"path": "user_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "User"
},
"validators": []
}