| User Group | Create? | Read? | Update? | Delete? |
|---|---|---|---|---|
| admin | x | x | x | x |
| owner | x | x | x | x |
| user | x | |||
| all |
| 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 | ||||||
| date_completed | Date | x | |||||
| date_created | Date | [Function] | x | ||||
| date_modified | Date | [Function] | x | ||||
| date_paid | Date | x | |||||
| external_id | Number | x | |||||
| payment_method | String | x | |||||
| products | Array | [Function] | |||||
| provider | String | x | |||||
| reader_id | ObjectID | reader | x | ||||
| status | String | x | |||||
| total | Number | x | |||||
| updatedAt | Date |
{
"path": "__v",
"instance": "Number",
"options": {},
"validators": []
}{
"path": "_deleted",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}{
"path": "_id",
"instance": "ObjectID",
"options": {
"auto": true,
"type": "ObjectId"
},
"validators": [],
"defaultValue": "[Function]"
}{
"path": "_owner_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"validators": []
}{
"path": "_updated_by_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"validators": []
}{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}{
"path": "date_completed",
"instance": "Date",
"options": {
"index": true
},
"validators": []
}{
"path": "date_created",
"instance": "Date",
"options": {
"index": true
},
"validators": [],
"defaultValue": "[Function]"
}{
"path": "date_modified",
"instance": "Date",
"options": {
"index": true
},
"validators": [],
"defaultValue": "[Function]"
}{
"path": "date_paid",
"instance": "Date",
"options": {
"index": true
},
"validators": []
}{
"path": "external_id",
"instance": "Number",
"options": {
"index": true
},
"validators": []
}{
"path": "payment_method",
"instance": "String",
"options": {
"index": true
},
"validators": []
}{
"path": "products",
"instance": "Array",
"options": {
"type": [
{
"obj": {
"_deleted": {
"default": false,
"index": true
},
"_owner_id": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_updated_by_id": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"external_id": {
"index": true
},
"product_name": {
"index": true
},
"product_description": {
"index": true
},
"product_quantity": {
"index": true
},
"product_price": {
"index": true
}
},
"paths": {
"_deleted": {
"path": "_deleted",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_deleted"
],
"options": {
"default": false,
"index": true
},
"_index": true,
"defaultValue": false,
"$isUnderneathDocArray": true
},
"_owner_id": {
"path": "_owner_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_owner_id"
],
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_index": true,
"$isUnderneathDocArray": true
},
"_updated_by_id": {
"path": "_updated_by_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_updated_by_id"
],
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"_index": true,
"$isUnderneathDocArray": true
},
"external_id": {
"path": "external_id",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"external_id"
],
"options": {
"index": true
},
"_index": true,
"$isUnderneathDocArray": true
},
"product_name": {
"enumValues": [],
"regExp": null,
"path": "product_name",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"product_name"
],
"options": {
"index": true
},
"_index": true,
"$isUnderneathDocArray": true
},
"product_description": {
"enumValues": [],
"regExp": null,
"path": "product_description",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"product_description"
],
"options": {
"index": true
},
"_index": true,
"$isUnderneathDocArray": true
},
"product_quantity": {
"path": "product_quantity",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"product_quantity"
],
"options": {
"index": true
},
"_index": true,
"$isUnderneathDocArray": true
},
"product_price": {
"path": "product_price",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"product_price"
],
"options": {
"index": true
},
"_index": true,
"$isUnderneathDocArray": true
},
"_id": {
"path": "_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [
null
],
"_presplitPath": [
"_id"
],
"options": {
"auto": true,
"type": "ObjectId"
},
"_index": null,
"$isUnderneathDocArray": true
},
"createdAt": {
"path": "createdAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [
null,
null
],
"_presplitPath": [
"createdAt"
],
"options": {
"immutable": true
},
"_index": null,
"$immutable": true,
"$isUnderneathDocArray": true
},
"updatedAt": {
"path": "updatedAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"updatedAt"
],
"options": {},
"_index": null,
"$isUnderneathDocArray": true
}
},
"aliases": {},
"subpaths": {},
"virtuals": {
"_owner": {
"path": "_owner",
"getters": [],
"setters": [
null
],
"options": {
"ref": "User",
"localField": "_owner_id",
"foreignField": "_id",
"justOne": true,
"options": {}
}
},
"_updated_by": {
"path": "_updated_by",
"getters": [],
"setters": [
null
],
"options": {
"ref": "User",
"localField": "_updated_by_id",
"foreignField": "_id",
"justOne": true,
"options": {}
}
},
"id": {
"path": "id",
"getters": [
null
],
"setters": [],
"options": {}
}
},
"singleNestedPaths": {},
"nested": {},
"inherits": {},
"callQueue": [],
"_indexes": [
[
{
"createdAt": -1
},
{}
],
[
{
"updatedAt": -1
},
{}
]
],
"methods": {},
"methodOptions": {},
"statics": {},
"tree": {
"_deleted": {
"default": false,
"index": true
},
"_owner_id": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_updated_by_id": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"external_id": {
"index": true
},
"product_name": {
"index": true
},
"product_description": {
"index": true
},
"product_quantity": {
"index": true
},
"product_price": {
"index": true
},
"_id": {
"auto": true,
"type": "ObjectId"
},
"createdAt": {
"immutable": true
},
"_owner": {
"path": "_owner",
"getters": [],
"setters": [
null
],
"options": {
"ref": "User",
"localField": "_owner_id",
"foreignField": "_id",
"justOne": true,
"options": {}
}
},
"_updated_by": {
"path": "_updated_by",
"getters": [],
"setters": [
null
],
"options": {
"ref": "User",
"localField": "_updated_by_id",
"foreignField": "_id",
"justOne": true,
"options": {}
}
},
"id": {
"path": "id",
"getters": [
null
],
"setters": [],
"options": {}
}
},
"query": {},
"childSchemas": [],
"plugins": [
{
"opts": {
"deduplicate": true
}
},
{
"opts": {
"deduplicate": true
}
},
{
"opts": {
"deduplicate": true
}
},
{
"opts": {
"deduplicate": true
}
},
{
"opts": {
"deduplicate": true
}
}
],
"$id": 27,
"mapPaths": [],
"s": {
"hooks": {
"_pres": {},
"_posts": {}
}
},
"_userProvidedOptions": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
},
"_perms": {
"admin": "",
"owner": "",
"user": "",
"all": ""
}
},
"options": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
},
"typeKey": "type",
"id": true,
"_id": true,
"validateBeforeSave": true,
"read": null,
"shardKey": null,
"discriminatorKey": "__t",
"autoIndex": null,
"minimize": true,
"optimisticConcurrency": false,
"versionKey": "__v",
"capped": false,
"bufferCommands": true,
"strictQuery": true,
"strict": true,
"_perms": {
"admin": "",
"owner": "",
"user": "",
"all": ""
}
},
"$timestamps": {
"createdAt": "createdAt",
"updatedAt": "updatedAt"
},
"opts": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
}
},
"definition": {
"_deleted": {
"default": false,
"index": true
},
"_owner_id": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_updated_by_id": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"external_id": {
"index": true
},
"product_name": {
"index": true
},
"product_description": {
"index": true
},
"product_quantity": {
"index": true
},
"product_price": {
"index": true
}
},
"$globalPluginsApplied": true,
"_requiredpaths": []
}
]
},
"validators": [],
"defaultValue": "[Function]"
}{
"path": "provider",
"instance": "String",
"options": {
"index": true,
"enum": [
"woocommerce",
"whitebeard"
]
},
"validators": [
{
"message": "`{VALUE}` is not a valid enum value for path `{PATH}`."
}
]
}{
"path": "reader_id",
"instance": "ObjectID",
"options": {
"link": "reader",
"index": true
},
"validators": []
}{
"path": "status",
"instance": "String",
"options": {
"index": true
},
"validators": []
}{
"path": "total",
"instance": "Number",
"options": {
"index": true
},
"validators": []
}{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}