Model segmentations
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
| user | | 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 | | |
| code | String | | | | | x | x |
| createdAt | Date | | | | | | |
| dirty | Boolean | | | true | | | |
| labels_and_id | Array of ObjectID | | | [Function] | | | |
| labels_not_id | Array of ObjectID | | | [Function] | | | |
| last_count | Number | | | | | | |
| last_count_date | Date | | | | | | |
| name | String | | | | | x | 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": []
}code
{
"path": "code",
"instance": "String",
"options": {
"unique": true,
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}dirty
{
"path": "dirty",
"instance": "Boolean",
"options": {
"default": true
},
"validators": [],
"defaultValue": true
}labels_and_id
{
"path": "labels_and_id",
"instance": "Array",
"options": {
"type": [
{
"link": "label",
"map_to": "labels_and"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}labels_not_id
{
"path": "labels_not_id",
"instance": "Array",
"options": {
"type": [
{
"link": "label",
"map_to": "labels_not"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}last_count
{
"path": "last_count",
"instance": "Number",
"options": {},
"validators": []
}last_count_date
{
"path": "last_count_date",
"instance": "Date",
"options": {},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {
"unique": true,
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}