package dns import ( "gorm.io/gorm" ) type SRVRecord 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"` Priority uint16 `gorm:"not null;default:0" json:"priority"` Weight uint16 `gorm:"not null;default:0" json:"weight"` Port uint16 `gorm:"not null" json:"port"` Protocol string `gorm:"not null;default:tcp" json:"protocol"` TTL uint32 `gorm:"not null;default:1" json:"ttl"` }