Model spaces
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | | x | | |
| setup | x | x | x | x |
| user | | 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 | | |
| claylock_id | Array of ObjectID | | | [Function] | | | |
| createdAt | Date | | | | | | |
| img | String | | | | | | |
| location_id | ObjectID | Location | | | | | |
| meters_squared | Number | | | | | | |
| name | String | | | | x | | x |
| room_id | Array of ObjectID | | | [Function] | | | |
| seats | Number | | | | | | |
| spacetype_id | ObjectID | SpaceType | | | | | x |
| total_value | Number | | | | | | |
| 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": []
}claylock_id
{
"path": "claylock_id",
"instance": "Array",
"options": {
"type": [
{
"link": "Claylock"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}img
{
"path": "img",
"instance": "String",
"options": {},
"validators": []
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"link": "Location"
},
"validators": []
}meters_squared
{
"path": "meters_squared",
"instance": "Number",
"options": {},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {
"index": true,
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
room_id
{
"path": "room_id",
"instance": "Array",
"options": {
"type": [
{
"link": "Room"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}seats
{
"path": "seats",
"instance": "Number",
"options": {},
"validators": []
}spacetype_id
{
"path": "spacetype_id",
"instance": "ObjectID",
"options": {
"link": "SpaceType",
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
total_value
{
"path": "total_value",
"instance": "Number",
"options": {},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}