aboutsummaryrefslogtreecommitdiff
path: root/models/dns/cname.go
blob: 5460f82fd04b22613e0502b5c7a08eb6c4a73c13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package dns

import (
	"gorm.io/gorm"
)

type CNAMERecord 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"`
	TTL      uint32 `gorm:"not null;default:300" json:"ttl"`
}