This commit is contained in:
parent
9e5ffdd6b6
commit
491718ff80
@ -295,7 +295,7 @@ func (ip *APIIP) BeforeInsert() (err error) {
|
||||
|
||||
type IP struct {
|
||||
ID int `xorm:"pk autoincr"`
|
||||
IP string `xorm:"text notnull"`
|
||||
IP string `xorm:"text notnull unique"`
|
||||
Rdns sql.NullString `xorm:"text index default ''"`
|
||||
AutonomousSystem *AutonomousSystem `xorm:"as_id int index default null"`
|
||||
City *City `xorm:"city_id int index default null"`
|
||||
|
Loading…
Reference in New Issue
Block a user