misc update for develop-xorm
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
46095f778c
commit
1868bb2ea4
@ -248,13 +248,13 @@ func (ip *APIIP) BeforeInsert() (err error) {
|
|||||||
|
|
||||||
type IP struct {
|
type IP struct {
|
||||||
ID int `xorm:"pk autoincr"`
|
ID int `xorm:"pk autoincr"`
|
||||||
IP string `xorm:"text notnull unique"`
|
IP string `xorm:"text notnull"`
|
||||||
Rdns sql.NullString `xorm:"text default ''"`
|
Rdns sql.NullString `xorm:"text default ''"`
|
||||||
AutonomousSystem *AutonomousSystem `xorm:"as_id int index default NULL"`
|
AutonomousSystem *AutonomousSystem `xorm:"as_id int index default null"`
|
||||||
City *City `xorm:"city_id int index default NULL"`
|
City *City `xorm:"city_id int index default null"`
|
||||||
Country *Country `xorm:"country_id int index default NULL"`
|
Country *Country `xorm:"country_id int index default null"`
|
||||||
Src *Src `xorm:"src_id int index default NULL"`
|
Src *Src `xorm:"src_id int index default null"`
|
||||||
Host *Host `xorm:"host_id int index default NULL"`
|
Host *Host `xorm:"host_id int index default null"`
|
||||||
Whois string `xorm:"text index default null"`
|
Whois string `xorm:"text index default null"`
|
||||||
Created time.Time `xorm:"created notnull"`
|
Created time.Time `xorm:"created notnull"`
|
||||||
Updated time.Time `xorm:"updated notnull"`
|
Updated time.Time `xorm:"updated notnull"`
|
||||||
|
Loading…
Reference in New Issue
Block a user