blob: 2049767acc445ad9a76f61e27c5752e075cd461d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package dns
import (
"gorm.io/gorm"
)
type MXRecord struct {
gorm.Model
DomainID uint `gorm:"not null;index" json:"domain_id"`
Name string `gorm:"not null;default:@" json:"name"`
Target string `gorm:"not null" json:"target"`
Priority uint16 `gorm:"not null;default:10" json:"priority"`
TTL uint32 `gorm:"not null;default:1" json:"ttl"`
}
|