package dns import ( "gorm.io/gorm" ) type ARecord struct { gorm.Model DomainID uint `gorm:"not null;index" json:"domain_id"` Name string `gorm:"not null;default:@" json:"name"` Address string `gorm:"not null" json:"address"` Port int `gorm:"default:0" json:"port"` TTL uint32 `gorm:"not null;default:300" json:"ttl"` }