Associates
An Associate is the database representation of one of a company's real-estate associates / employees.
If a user/employee sending from multiple "companies" (such as Gorjian, and Bluestar Buildings), this means they will have two
Associates in the database.
The Associates page (opens in a new tab) gives users the ability to View/Edit settings about an Associate.
Admin users also have the ability to queue emails from this page, create a new Associate, delete an existing Associate, and perform
spam checks.
The table is defined like such:
type Associate struct {
BaseModel
Name string `gorm:"unique;not null"`
DailyLimit int `gorm:"not null;default:0"`
SendDelaySeconds int `gorm:"not null;default:30"`
SendDelayVariability int `gorm:"not null;default:5"`
AutoInitial bool `gorm:"not null;default:false"`
AutoDrip bool `gorm:"not null;default:false"`
AutoFollowUp bool `gorm:"not null;default:false"`
CachedSentToday int `gorm:"not null;default:0"`
CachedDrippedToday int `gorm:"not null;default:0"`
CachedRespondedToday int `gorm:"not null;default:0"`
CachedDripRespondedToday int `gorm:"not null;default:0"`
CachedUndeliverableToday int `gorm:"not null;default:0"`
CachedUnsubscribesToday int `gorm:"not null;default:0"`
CachedUnreadCount int `gorm:"not null;default:0"`
CachedSpamBlocksToday int `gorm:"not null;default:0"`
BlockedCities pq.StringArray `gorm:"type:text[];default:NULL"`
BlockedStates pq.StringArray `gorm:"type:text[];default:NULL"`
PhoneNumber string
JobTitle string
Website string
SignatureColor string
SignatureFont FontFamily `gorm:"not null;default:Calibri"`
SignatureStyle SignatureStyle `gorm:"not null;default:html"`
SignatureWebsiteEnabled bool `gorm:"not null;default:true"`
SignaturePhoneEnabled bool `gorm:"not null;default:true"`
SignatureJobTitleEnabled bool `gorm:"not null;default:true"`
SignatureUnsubscribeEnabled bool `gorm:"not null;default:true"`
SignatureCompanyNameEnabled bool `gorm:"not null;default:true"`
User *User `gorm:"foreignKey:UserID"`
UserID *uint `gorm:"default:NULL"`
MasterOutlookID *uint
Scripts []Script
OutlookLogins []OutlookLogin
BrokerInteractions []BrokerInteraction
BlastContacts []BlastContact
DoNotContacts []DoNotContact
BlastUpdates []BlastUpdate
}