package activeemea

import (
	"time"

	"github.com/tidbcloud/devops/models/base"
)

type CompanyDomainEnrichment struct {
	base.Updatable

	Domain                 string     `gorm:"type:VARCHAR(255);not null;uniqueIndex"`
	CompanyName            string     `gorm:"type:VARCHAR(255);not null"`
	Headquarter            string     `gorm:"type:VARCHAR(255);not null"`
	HeadquarterCountryCode string     `gorm:"type:VARCHAR(16);not null"`
	HeadquarterRegion      string     `gorm:"type:VARCHAR(32);not null"`
	Vertical               string     `gorm:"type:VARCHAR(255);not null"`
	BusinessModel          string     `gorm:"type:VARCHAR(255);not null"`
	ConfidenceLevel        string     `gorm:"type:VARCHAR(32);not null"`
	RawEnrichment          string     `gorm:"type:TEXT;not null"`
	Source                 string     `gorm:"type:VARCHAR(64);not null"`
	SchemaVersion          string     `gorm:"type:VARCHAR(32);not null"`
	ExpiresAt              *time.Time `gorm:"index"`
}

func (CompanyDomainEnrichment) TableName() string {
	return "company_domain_enrichments"
}
