package dns import ( "gorm.io/gorm" ) type CNAMERecord struct { gorm.Model DomainID uint `gorm:"not null;index" json:"domain_id"` Name string `gorm:"not null" json:"name"` Target string `gorm:"not null" json:"target"` TTL uint32 `gorm:"not null;default:1" json:"ttl"` }