A Property is the database representation of a property that we have scraped
and are potentially going to be emailing Contacts about.
The table is defined like such:
type Property struct {
BaseModel
Tag string `json:"Id,omitempty"`
Name string `json:"Name,omitempty" gorm:"unique"`
Address string `json:"Street__c,omitempty" gorm:"uniqueIndex:idx_address_city_state"`
City string `json:"City__c,omitempty" gorm:"uniqueIndex:idx_address_city_state"`
State string `json:"State__c,omitempty" gorm:"uniqueIndex:idx_address_city_state"`
ZipCode string
SquareFootage int `json:"SF__c,omitempty"`
PropertyType string `json:"Property_Type__c,omitempty"`
ListingLink string `json:"Listing_Link,omitempty"`
AccountTag string `json:"Broker_Person__c,omitempty"`
BrokerAccountEmail string `json:"Related_Account_Email__c,omitempty"`
ContactTag string `json:"Broker__c,omitempty"`
IsRental bool
Latitude float64
Longitude float64
Description string
ListingURL string
ScrapedAt time.Time
ScrapeJobID *uint `gorm:"default:NULL"`
ScrapeJob *ScrapeJob
BlastContacts []BlastContact
}