Automailer
Documentation for the Automailer database schema.
Fields
| Field | Data Type | Usage |
|---|---|---|
| companyId | ObjectId | Unique reference to company. |
| branchId | ObjectId | Unique reference to branch. |
| name | String | The name or title of the automailer. |
| from | String | Stores the from data. |
| to | [String] | Stores the to data. |
| cc | [String] | Stores the cc data. |
| bcc | [String] | Stores the bcc data. |
| employeeIds | [ObjectId] | Unique reference to employees. |
| subject | String | Stores the subject data. |
| content | String | Stores the content data. |
| attachments | [String] | Timestamp/Date for attachments. |
| reportContext | Number | Stores the report context data. |
| month | Number | Stores the month data. |
| year | Number | Stores the year data. |
| sendDay | Number | Stores the send day data. |
| min | String | Stores the min data. |
| max | String | Stores the max data. |
| validator | String | Unique reference to validator. |
| sendTime | String | Timestamp/Date for sendTime. |
| frequency | String | Stores the frequency data. |
| status | String | Timestamp/Date for status. |
| lastSent | Date | Stores the last sent data. |
| nextSend | Date | Stores the next send data. |
| isPaused | Boolean | Stores the is paused data. |
| sendLimit | Number | Stores the send limit data. |
| sendCount | Number | Stores the send count data. |
| extraAttachments | [Mixed] | Timestamp/Date for extraAttachments. |
| authorityType | String | Stores the authority type data. |
| createdBy | ObjectId | Timestamp/Date for createdBy. |
| metadata | Mixed | Timestamp/Date for metadata. |
| isDeleted | Boolean | Stores the is deleted data. |
| deletedBy | ObjectId | Stores the deleted by data. |
| deletedTime | Date | Timestamp/Date for deletedTime. |