Model claylocks
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | 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 | | |
| battery | String | | | | | | |
| created | Date | | | | | | |
| createdAt | Date | | | | | | |
| customer_reference | String | | | | | | |
| door_left_open | Boolean | | | | | | |
| has_camera | Boolean | | | | | | |
| id | String | | | | x | | |
| image_url | String | | | | | | |
| in_easy_office_mode | Boolean | | | | | | |
| intrusion | Boolean | | | | | | |
| iq | Mixed | | | | | | |
| is_online | Boolean | | | | | | |
| last_edited | Date | | | | | | |
| location_id | ObjectID | Location | | | x | | |
| lock_type | String | | | | | | |
| locked_status | String | | | | | | |
| mac_address | String | | | | | | |
| repeater | Mixed | | | | | | |
| system | Mixed | | | | | | |
| 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": []
}battery
{
"path": "battery",
"instance": "String",
"options": {},
"validators": []
}created
{
"path": "created",
"instance": "Date",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}customer_reference
{
"path": "customer_reference",
"instance": "String",
"options": {},
"validators": []
}door_left_open
{
"path": "door_left_open",
"instance": "Boolean",
"options": {},
"validators": []
}has_camera
{
"path": "has_camera",
"instance": "Boolean",
"options": {},
"validators": []
}id
{
"path": "id",
"instance": "String",
"options": {
"index": true
},
"validators": []
}image_url
{
"path": "image_url",
"instance": "String",
"options": {},
"validators": []
}in_easy_office_mode
{
"path": "in_easy_office_mode",
"instance": "Boolean",
"options": {},
"validators": []
}intrusion
{
"path": "intrusion",
"instance": "Boolean",
"options": {},
"validators": []
}iq
{
"path": "iq",
"instance": "Mixed",
"options": {},
"validators": []
}is_online
{
"path": "is_online",
"instance": "Boolean",
"options": {},
"validators": []
}last_edited
{
"path": "last_edited",
"instance": "Date",
"options": {},
"validators": []
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Location"
},
"validators": []
}lock_type
{
"path": "lock_type",
"instance": "String",
"options": {},
"validators": []
}locked_status
{
"path": "locked_status",
"instance": "String",
"options": {},
"validators": []
}mac_address
{
"path": "mac_address",
"instance": "String",
"options": {},
"validators": []
}repeater
{
"path": "repeater",
"instance": "Mixed",
"options": {},
"validators": []
}system
{
"path": "system",
"instance": "Mixed",
"options": {},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}