Model mailruns


Permissions

User GroupCreate?Read?Update?Delete?
adminxxxx
ownerxxxx
userxx
all

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?
__vNumber
_deletedBooleanfalsex
_idObjectIDfunction defaultId() { return new oid(); }
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
codeStringxx
createdAtDate
dataMixed
end_timeDate
failed_reader_idsArrayfunction() { // Leave it up to `cast()` to convert the array return fn ? defaultArr.call(this) : defaultArr != null ? [].concat(defaultArr) : []; }
nameString
queued_reader_idsArrayfunction() { // Leave it up to `cast()` to convert the array return fn ? defaultArr.call(this) : defaultArr != null ? [].concat(defaultArr) : []; }
sent_reader_idsArrayfunction() { // Leave it up to `cast()` to convert the array return fn ? defaultArr.call(this) : defaultArr != null ? [].concat(defaultArr) : []; }
start_timeDateFri Dec 20 2024 14:00:45 GMT+0000 (Coordinated Universal Time)
stateString
touchbasetransactional_idObjectIDtouchbasetransactional
updatedAtDate

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
}