aboutsummaryrefslogtreecommitdiff
path: root/models/dns/mx.go
blob: ca1edb0007b8373cc8d19a252e4fd4ca20ee525d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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:300" json:"ttl"`
	IsManaged bool   `gorm:"not null;default:false" json:"is_managed"`
}