Contacts

Contacts

An Contact is the database representation of a broker or real estate agent that we might be emailing.

The table is defined like such:

type Contact struct {
	BaseModel
	Tag           string  `json:"Id,omitempty"`
	AccountTag    string  `json:"AccountId,omitempty"`
	Email         *string `json:"Email,omitempty" gorm:"unique"`
	FirstName     string  `json:"FirstName,omitempty"`
	LastName      string  `json:"LastName,omitempty"`
	FullName      string  `json:"FullName,omitempty"`
	Phone         string  `json:"Phone,omitempty"`
	CompanyName   string  `json:"CompanyName,omitempty"`
	CompanyWebURL string  `json:"CompanyWebURL,omitempty"`
	LinkedINURL   string  `json:"LinkedINURL,omitempty"`
	ProfileURL    string  `json:"ProfileURL,omitempty"`
	ScrapedAt     time.Time
	EnrichedVia   string
	EnrichedAt    time.Time
	InvalidEmail  bool `gorm:"not null;default:false"`
 
	ScrapeJobID *uint `gorm:"default:NULL"`
	ScrapeJob   *ScrapeJob
 
	BlastContacts []BlastContact
	DoNotContacts []DoNotContact
}