-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel.go
27 lines (24 loc) · 802 Bytes
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package rds
import "database/sql"
type Domain struct {
ID uint `gorm:"primary_key"`
Name string `gorm:"type:varchar(255);not null"`
Master sql.NullString `gorm:"type:varchar(128)"`
LastCheck sql.NullInt64
Type string `gorm:"type:varchar(6);not null"`
NotifiedSerial sql.NullInt64
Account sql.NullString `gorm:"type:varchar(40)"`
}
type Record struct {
ID uint `gorm:"primary_key"`
DomainId sql.NullInt64
Name string `gorm:"type:varchar(255)"`
Type string `gorm:"type:varchar(10)"`
Content string `gorm:"type:varchar(64000)"`
Ttl uint32
Prio int
ChangDate int
Disabled bool
//ordername VARCHAR(255) BINARY DEFAULT NULL,
//auth TINYINT(1) DEFAULT 1,
}