aboutsummaryrefslogtreecommitdiff
path: root/models/dns/srv.go
blob: 1994f0d9274ef7efa9ec6cdd2b97da50ddd6802f (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:1" json:"ttl"`
}