Model pins
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| api | x | x | x | x |
| owner | | | | |
| admin | x | x | x | x |
| all | | | | |
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 | | |
| createdAt | Date | | | | | | |
| pin | Number | | | | x | x | |
| type | String | | | | | | x |
| 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": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}pin
{
"path": "pin",
"instance": "Number",
"options": {
"index": true,
"unique": true
},
"validators": []
}type
{
"path": "type",
"instance": "String",
"options": {
"enum": [
"user",
"organisation"
],
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
},
{
"message": "`{VALUE}` is not a valid enum value for path `{PATH}`."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
- : `{VALUE}` is not a valid enum value for path `{PATH}`.
updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}