Model files
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| setup | x | x | x | x |
| admin | x | x | x | x |
| api | | x | | |
| all | | | | |
Fields
| Name | Type | Link | Maps To | Default | Indexed? | Unique? | Required? |
|---|
| __v | Number | | | | | | |
| _deleted | Boolean | | | false | x | | |
| _id | ObjectID | | | [Function] | | | |
| _owner_id | ObjectID | | | | | | |
| _updated_by_id | ObjectID | User | _updated_by | | x | | |
| _version | Number | | | 0 | | | |
| content_type | String | | | | | | |
| createdAt | Date | | | | | | |
| date_created | Date | | | [Function] | | | |
| force_download | Boolean | | | false | | | |
| local_filename | String | | | | | | |
| original_filename | String | | | | x | | x |
| preview_filename | String | | | | | | |
| public | Boolean | | | false | | | |
| updatedAt | Date | | | | | | |
| urlid | String | | | | x | | |
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": {},
"validators": []
}_updated_by_id
{
"path": "_updated_by_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"validators": []
}_version
{
"path": "_version",
"instance": "Number",
"options": {
"default": 0
},
"validators": [],
"defaultValue": 0
}content_type
{
"path": "content_type",
"instance": "String",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}date_created
{
"path": "date_created",
"instance": "Date",
"options": {},
"validators": [],
"defaultValue": "[Function]"
}force_download
{
"path": "force_download",
"instance": "Boolean",
"options": {
"default": false
},
"validators": [],
"defaultValue": false
}local_filename
{
"path": "local_filename",
"instance": "String",
"options": {},
"validators": []
}original_filename
{
"path": "original_filename",
"instance": "String",
"options": {
"required": true,
"index": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
preview_filename
{
"path": "preview_filename",
"instance": "String",
"options": {},
"validators": []
}public
{
"path": "public",
"instance": "Boolean",
"options": {
"default": false
},
"validators": [],
"defaultValue": false
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}urlid
{
"path": "urlid",
"instance": "String",
"options": {
"index": {
"unique": true
}
},
"validators": []
}