package userbehavior

import "time"

type GTMEmailSuppression struct {
	ID           uint64     `gorm:"primarykey"`
	CreatedAt    time.Time  `gorm:"created_at;type:TIMESTAMP;not null;<-:create"`
	UpdatedAt    *time.Time `gorm:"updated_at;type:TIMESTAMP"`
	TenantID     uint64     `gorm:"not null;uniqueIndex:idx_gtm_email_suppression_tenant_campaign,priority:1;index:idx_gtm_email_suppression_tenant"`
	CampaignName string     `gorm:"size:100;not null;uniqueIndex:idx_gtm_email_suppression_tenant_campaign,priority:2"`
	Source       string     `gorm:"size:100;not null"`
	Reason       string     `gorm:"size:255;not null"`
}

func (GTMEmailSuppression) TableName() string {
	return "gtm_email_suppressions"
}
