Do Not Contact
A DoNotContact is the database representation of one instance of a Contact
unsubscribing / blocking emails from an Associate.
If a DoNotContact is created for an Associate, where that Associate's user
has multiple Associates, the DoNotContact will be created for all other Associates
that share the same user. For example, if John Smith has associates John Doe and Jane Doe,
and a Contact unsubscribes from John Doe, Jane Doe will also have a DoNotContact created.
While DoNotContact tracking is semi-automatic, users can also manually create DoNotContacts
on the Do Not Contact page (opens in a new tab).
Users can create a DoNotContact for any/all Associate they have permission to view.
To create a DoNotContact for one specific email, you can enter the email as-is.
Alternatively, you can enter a "wildcard" email, which will block an entire domain.
For example, entering *@gorjianacq.com will block all emails being sent to the domain gorjianacq.com,
regardless of the username.
The table is defined like such:
type DoNotContact struct {
BaseModel
AssociateID uint `gorm:"not null;uniqueIndex:idx_associate_contact"`
Associate Associate
ContactID uint `gorm:"not null;uniqueIndex:idx_associate_contact"`
Contact Contact
}