Model whitebeardnewsletterevents
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
| owner | x | x | x | x |
| user | | 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 | | | | | | |
| event | String | | | | x | | |
| metadata | Mixed | | | | | | |
| newsletter_id | ObjectID | whitebeard_newsletters | | | x | | |
| reader_id | ObjectID | reader | | | x | | |
| timestamp | Date | | | [Function] | x | | |
| uid | 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": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}event
{
"path": "event",
"instance": "String",
"options": {
"index": true,
"enum": [
"subscribe",
"unsubscribe",
"click",
"open"
]
},
"validators": [
{
"message": "`{VALUE}` is not a valid enum value for path `{PATH}`."
}
]
}Validators
- : `{VALUE}` is not a valid enum value for path `{PATH}`.
metadata
{
"path": "metadata",
"instance": "Mixed",
"options": {},
"validators": []
}newsletter_id
{
"path": "newsletter_id",
"instance": "ObjectID",
"options": {
"link": "whitebeard_newsletters",
"index": true
},
"validators": []
}reader_id
{
"path": "reader_id",
"instance": "ObjectID",
"options": {
"link": "reader",
"index": true
},
"validators": []
}timestamp
{
"path": "timestamp",
"instance": "Date",
"options": {
"index": true
},
"validators": [],
"defaultValue": "[Function]"
}uid
{
"path": "uid",
"instance": "String",
"options": {
"index": true,
"unique": true
},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}