Model mailruns
Permissions
User Group | Create? | Read? | Update? | Delete? |
---|
admin | x | x | x | x |
owner | x | x | x | x |
user | x | x | | |
all | | | | |
Fields
Name | Type | Link | Maps To | Default | Indexed? | Unique? |
---|
__v | Number | | | | | |
_deleted | Boolean | | | false | x | |
_id | ObjectID | | | function defaultId() {
return new oid();
} | | |
_owner_id | ObjectID | User | _owner | | x | |
_updated_by_id | ObjectID | User | _updated_by | | x | |
code | String | | | | x | x |
createdAt | Date | | | | | |
data | Mixed | | | | | |
end_time | Date | | | | | |
failed_reader_ids | Array | | | function() {
// Leave it up to `cast()` to convert the array
return fn
? defaultArr.call(this)
: defaultArr != null
? [].concat(defaultArr)
: [];
} | | |
name | String | | | | | |
queued_reader_ids | Array | | | function() {
// Leave it up to `cast()` to convert the array
return fn
? defaultArr.call(this)
: defaultArr != null
? [].concat(defaultArr)
: [];
} | | |
sent_reader_ids | Array | | | function() {
// Leave it up to `cast()` to convert the array
return fn
? defaultArr.call(this)
: defaultArr != null
? [].concat(defaultArr)
: [];
} | | |
start_time | Date | | | Fri Dec 20 2024 14:00:45 GMT+0000 (Coordinated Universal Time) | | |
state | String | | | | | |
touchbasetransactional_id | ObjectID | touchbasetransactional | | | | |
updatedAt | Date | | | | | |
Raw definition
{
"path": "__v",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"__v"
],
"options": {},
"_index": null
}
{
"path": "_deleted",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_deleted"
],
"options": {
"default": false,
"index": true
},
"_index": true,
"defaultValue": false
}
{
"path": "_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [
null
],
"_presplitPath": [
"_id"
],
"options": {
"auto": true,
"type": "ObjectId"
},
"_index": null
}
{
"path": "_owner_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_owner_id"
],
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"_index": true
}
{
"path": "_updated_by_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"_updated_by_id"
],
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "code",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"code"
],
"options": {
"index": true,
"unique": true
},
"_index": {
"unique": true
}
}
{
"path": "createdAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [
null,
null
],
"_presplitPath": [
"createdAt"
],
"options": {
"immutable": true
},
"_index": null,
"$immutable": true
}
{
"path": "data",
"instance": "Mixed",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"data"
],
"options": {},
"_index": null
}
{
"path": "end_time",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"end_time"
],
"options": {},
"_index": null
}
{
"schemaOptions": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
},
"perms": {
"admin": "crud",
"owner": "crud",
"user": "cr",
"all": ""
},
"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": "crud",
"owner": "crud",
"user": "cr",
"all": ""
},
"pluralization": true
},
"caster": {
"path": "failed_reader_ids",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"failed_reader_ids"
],
"options": {
"link": "reader",
"map_to": "sent"
},
"_index": null,
"_arrayPath": "failed_reader_ids.$",
"_arrayParentPath": "failed_reader_ids"
},
"$embeddedSchemaType": {
"path": "failed_reader_ids",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"failed_reader_ids"
],
"options": {
"link": "reader",
"map_to": "sent"
},
"_index": null,
"_arrayPath": "failed_reader_ids.$",
"_arrayParentPath": "failed_reader_ids"
},
"$isMongooseArray": true,
"path": "failed_reader_ids",
"instance": "Array",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"failed_reader_ids"
],
"options": {
"type": [
{
"link": "reader",
"map_to": "sent"
}
]
},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "name",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"name"
],
"options": {},
"_index": null
}
{
"schemaOptions": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
},
"perms": {
"admin": "crud",
"owner": "crud",
"user": "cr",
"all": ""
},
"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": "crud",
"owner": "crud",
"user": "cr",
"all": ""
},
"pluralization": true
},
"caster": {
"path": "queued_reader_ids",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"queued_reader_ids"
],
"options": {
"link": "reader",
"map_to": "queued"
},
"_index": null,
"_arrayPath": "queued_reader_ids.$",
"_arrayParentPath": "queued_reader_ids"
},
"$embeddedSchemaType": {
"path": "queued_reader_ids",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"queued_reader_ids"
],
"options": {
"link": "reader",
"map_to": "queued"
},
"_index": null,
"_arrayPath": "queued_reader_ids.$",
"_arrayParentPath": "queued_reader_ids"
},
"$isMongooseArray": true,
"path": "queued_reader_ids",
"instance": "Array",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"queued_reader_ids"
],
"options": {
"type": [
{
"link": "reader",
"map_to": "queued"
}
]
},
"_index": null
}
{
"schemaOptions": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
},
"perms": {
"admin": "crud",
"owner": "crud",
"user": "cr",
"all": ""
},
"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": "crud",
"owner": "crud",
"user": "cr",
"all": ""
},
"pluralization": true
},
"caster": {
"path": "sent_reader_ids",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"sent_reader_ids"
],
"options": {
"link": "reader",
"map_to": "sent"
},
"_index": null,
"_arrayPath": "sent_reader_ids.$",
"_arrayParentPath": "sent_reader_ids"
},
"$embeddedSchemaType": {
"path": "sent_reader_ids",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"sent_reader_ids"
],
"options": {
"link": "reader",
"map_to": "sent"
},
"_index": null,
"_arrayPath": "sent_reader_ids.$",
"_arrayParentPath": "sent_reader_ids"
},
"$isMongooseArray": true,
"path": "sent_reader_ids",
"instance": "Array",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"sent_reader_ids"
],
"options": {
"type": [
{
"link": "reader",
"map_to": "sent"
}
]
},
"_index": null
}
{
"path": "start_time",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"start_time"
],
"options": {
"default": "2024-12-20T14:00:45.499Z"
},
"_index": null,
"defaultValue": "2024-12-20T14:00:45.499Z"
}
{
"enumValues": [
"due",
"running",
"complete",
"cancelled",
"paused",
"failed"
],
"regExp": null,
"path": "state",
"instance": "String",
"validators": [
{
"message": "`{VALUE}` is not a valid enum value for path `{PATH}`.",
"type": "enum",
"enumValues": [
"due",
"running",
"complete",
"cancelled",
"paused",
"failed"
]
}
],
"getters": [],
"setters": [],
"_presplitPath": [
"state"
],
"options": {
"enum": [
"due",
"running",
"complete",
"cancelled",
"paused",
"failed"
]
},
"_index": null
}
{
"path": "touchbasetransactional_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"touchbasetransactional_id"
],
"options": {
"link": "touchbasetransactional"
},
"_index": null
}
{
"path": "updatedAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"updatedAt"
],
"options": {},
"_index": null
}