aboutsummaryrefslogtreecommitdiff
path: root/models/dns/a.go
blob: b3c7f38aa9415467227616e6fe679023e6a72cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"`
}