Model parkingusers
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| setup | x | x | x | x |
| super_user | x | x | x | x |
| admin | x | x | x | x |
| user | x | x | x | 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 | | |
| cars | Array | | | [Function] | | | |
| createdAt | Date | | | | | | |
| email | String | | | | x | | x |
| name | String | | | | x | | x |
| remote_user_id | String | | | | | | |
| role | String | | | | | | |
| status | Boolean | | | true | | | |
| tenant_id | Array of ObjectID | | | [Function] | | | |
| updatedAt | Date | | | | | | |
| user_id | ObjectID | User | | | | | |
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": []
}cars
{
"path": "cars",
"instance": "Array",
"options": {
"type": [
{
"plate": {
"required": true
},
"make": {},
"model": {}
}
]
},
"validators": [],
"defaultValue": "[Function]"
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}email
{
"path": "email",
"instance": "String",
"options": {
"required": true,
"index": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
name
{
"path": "name",
"instance": "String",
"options": {
"required": true,
"index": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
remote_user_id
{
"path": "remote_user_id",
"instance": "String",
"options": {},
"validators": []
}role
{
"path": "role",
"instance": "String",
"options": {},
"validators": []
}status
{
"path": "status",
"instance": "Boolean",
"options": {
"default": true
},
"validators": [],
"defaultValue": true
}tenant_id
{
"path": "tenant_id",
"instance": "Array",
"options": {
"type": [
{
"link": "ParkingTenant"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}user_id
{
"path": "user_id",
"instance": "ObjectID",
"options": {
"link": "User"
},
"validators": []
}