Model claylocks
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
Fields
| Name | Type | Link | Maps To | Default | Indexed? | Unique? |
|---|
| __v | Number | | | | | |
| _deleted | Boolean | | | false | x | |
| _id | ObjectID | | | function defaultId() {
return new oid();
} | | |
| _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 | | | | | |
Raw definition
{
"path": "__v",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"__v"
],
"options": {},
"_index": null
}{
"path": "_deleted",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_deleted"
],
"options": {
"default": false,
"index": true
},
"_index": true,
"defaultValue": false
}{
"path": "_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [
null
],
"_presplitPath": [
"_id"
],
"options": {
"auto": true,
"type": "ObjectId"
},
"_index": null
}{
"path": "_owner_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_owner_id"
],
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_index": true
}{
"path": "_updated_by_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_updated_by_id"
],
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"_index": true
}{
"enumValues": [],
"regExp": null,
"path": "battery",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"battery"
],
"options": {},
"_index": null
}{
"path": "created",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"created"
],
"options": {},
"_index": null
}{
"path": "createdAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [
null,
null
],
"_presplitPath": [
"createdAt"
],
"options": {
"immutable": true
},
"_index": null,
"$immutable": true
}{
"enumValues": [],
"regExp": null,
"path": "customer_reference",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"customer_reference"
],
"options": {},
"_index": null
}{
"path": "door_left_open",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"door_left_open"
],
"options": {},
"_index": null
}{
"path": "has_camera",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"has_camera"
],
"options": {},
"_index": null
}{
"enumValues": [],
"regExp": null,
"path": "id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"id"
],
"options": {
"index": true
},
"_index": true
}{
"enumValues": [],
"regExp": null,
"path": "image_url",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"image_url"
],
"options": {},
"_index": null
}{
"path": "in_easy_office_mode",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"in_easy_office_mode"
],
"options": {},
"_index": null
}{
"path": "intrusion",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"intrusion"
],
"options": {},
"_index": null
}{
"path": "iq",
"instance": "Mixed",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"iq"
],
"options": {},
"_index": null
}{
"path": "is_online",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"is_online"
],
"options": {},
"_index": null
}{
"path": "last_edited",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"last_edited"
],
"options": {},
"_index": null
}{
"path": "location_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"location_id"
],
"options": {
"index": true,
"link": "Location"
},
"_index": true
}{
"enumValues": [],
"regExp": null,
"path": "lock_type",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"lock_type"
],
"options": {},
"_index": null
}{
"enumValues": [],
"regExp": null,
"path": "locked_status",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"locked_status"
],
"options": {},
"_index": null
}{
"enumValues": [],
"regExp": null,
"path": "mac_address",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"mac_address"
],
"options": {},
"_index": null
}{
"path": "repeater",
"instance": "Mixed",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"repeater"
],
"options": {},
"_index": null
}{
"path": "system",
"instance": "Mixed",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"system"
],
"options": {},
"_index": null
}{
"path": "updatedAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"updatedAt"
],
"options": {},
"_index": null
}