blob: 481ee7ea3f7922c3c289aeb33f579066d4dacb29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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:300" json:"ttl"`
}
|