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

import (
	"gorm.io/gorm"
)

type TXTRecord struct {
	gorm.Model
	DomainID uint   `gorm:"not null;index" json:"domain_id"`
	Name     string `gorm:"not null;default:@" json:"name"`
	Content  string `gorm:"not null" json:"content"`
	TTL      uint32 `gorm:"not null;default:1" json:"ttl"`
}