Model parkingtenants


Permissions

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

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
baysNumberNumber0x
createdAtDate
nameStringxx
organisation_idObjectIDOrganisation
parkingcenter_idObjectIDParkingCenter
remote_center_idNumberx
remote_tenant_idStringx
retailBooleantruex
statusStringactive
updatedAtDate

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": []
}

baysNumber

{
  "path": "baysNumber",
  "instance": "Number",
  "options": {
    "default": 0,
    "index": true
  },
  "validators": [],
  "defaultValue": 0
}

createdAt

{
  "path": "createdAt",
  "instance": "Date",
  "options": {
    "immutable": true
  },
  "validators": []
}

name

{
  "path": "name",
  "instance": "String",
  "options": {
    "required": true,
    "index": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

organisation_id

{
  "path": "organisation_id",
  "instance": "ObjectID",
  "options": {
    "link": "Organisation"
  },
  "validators": []
}

parkingcenter_id

{
  "path": "parkingcenter_id",
  "instance": "ObjectID",
  "options": {
    "link": "ParkingCenter"
  },
  "validators": []
}

remote_center_id

{
  "path": "remote_center_id",
  "instance": "Number",
  "options": {
    "index": true
  },
  "validators": []
}

remote_tenant_id

{
  "path": "remote_tenant_id",
  "instance": "String",
  "options": {
    "index": true
  },
  "validators": []
}

retail

{
  "path": "retail",
  "instance": "Boolean",
  "options": {
    "default": true,
    "index": true
  },
  "validators": [],
  "defaultValue": true
}

status

{
  "path": "status",
  "instance": "String",
  "options": {
    "enum": [
      "active",
      "inactive"
    ],
    "default": "active"
  },
  "validators": [
    {
      "message": "`{VALUE}` is not a valid enum value for path `{PATH}`."
    }
  ],
  "defaultValue": "active"
}

Validators

updatedAt

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