Model parkingcenters


Permissions

User GroupCreate?Read?Update?Delete?
setupxxxx
super_userxxxx
adminx
userx
allx

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
addressArray of String[Function]
allocated_baysNumber0
billing_interval_in_minutesNumber
cost_per_intervalNumber
createdAtDate
grace_period_in_minutesNumber
location_idObjectIDLocation
nameString
number_of_baysNumberx
parking_marginNumber
remaining_baysNumber0
remote_center_idNumberx
retailBooleanfalsex
retail_bays_availableNumber0
updatedAtDate
zonesArray 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

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

updatedAt

{
  "path": "updatedAt",
  "instance": "Date",
  "options": {},
  "validators": []
}

zones

{
  "path": "zones",
  "instance": "Array",
  "options": {
    "type": [
      null
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "String"
}