Model parkingcenters
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| setup | x | x | x | x |
| super_user | x | x | x | x |
| admin | | x | | |
| user | | x | | |
| all | | 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 | | |
| address | Array of String | | | [Function] | | | |
| allocated_bays | Number | | | 0 | | | |
| billing_interval_in_minutes | Number | | | | | | |
| cost_per_interval | Number | | | | | | |
| createdAt | Date | | | | | | |
| grace_period_in_minutes | Number | | | | | | |
| location_id | ObjectID | Location | | | | | |
| name | String | | | | | | |
| number_of_bays | Number | | | | | | x |
| parking_margin | Number | | | | | | |
| remaining_bays | Number | | | 0 | | | |
| remote_center_id | Number | | | | x | | |
| retail | Boolean | | | false | x | | |
| retail_bays_available | Number | | | 0 | | | |
| updatedAt | Date | | | | | | |
| zones | Array of String | | | [Function] | | | |
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": []
}address
{
"path": "address",
"instance": "Array",
"options": {
"type": [
null
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "String"
}allocated_bays
{
"path": "allocated_bays",
"instance": "Number",
"options": {
"default": 0,
"select": true
},
"validators": [],
"defaultValue": 0
}billing_interval_in_minutes
{
"path": "billing_interval_in_minutes",
"instance": "Number",
"options": {},
"validators": []
}cost_per_interval
{
"path": "cost_per_interval",
"instance": "Number",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}grace_period_in_minutes
{
"path": "grace_period_in_minutes",
"instance": "Number",
"options": {},
"validators": []
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"link": "Location"
},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {},
"validators": []
}number_of_bays
{
"path": "number_of_bays",
"instance": "Number",
"options": {
"required": true,
"min": 0
},
"validators": [
{
"message": "Path `{PATH}` is required."
},
{
"message": "Path `{PATH}` ({VALUE}) is less than minimum allowed value (0)."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
- : Path `{PATH}` ({VALUE}) is less than minimum allowed value (0).
parking_margin
{
"path": "parking_margin",
"instance": "Number",
"options": {},
"validators": []
}remaining_bays
{
"path": "remaining_bays",
"instance": "Number",
"options": {
"default": 0,
"select": true
},
"validators": [],
"defaultValue": 0
}remote_center_id
{
"path": "remote_center_id",
"instance": "Number",
"options": {
"index": true
},
"validators": []
}retail
{
"path": "retail",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}retail_bays_available
{
"path": "retail_bays_available",
"instance": "Number",
"options": {
"default": 0,
"min": 0
},
"validators": [
{
"message": "Path `{PATH}` ({VALUE}) is less than minimum allowed value (0)."
}
],
"defaultValue": 0
}Validators
- : Path `{PATH}` ({VALUE}) is less than minimum allowed value (0).
updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}zones
{
"path": "zones",
"instance": "Array",
"options": {
"type": [
null
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "String"
}