package models

type Ip struct {
	ID            int64  `gorm:"id;primary_key;auto_increment"`
	As            string `gorm:"as"`
	Asname        string `gorm:"asname"`
	City          string `gorm:"city"`
	Continent     string `gorm:"continent"`
	ContinentCode string `gorm:"continent_code"`
	Country       string `gorm:"country"`
	CountryCode   string `gorm:"country_code"`
	Currency      string `gorm:"currency"`
	District      string `gorm:"district"`
	Hosting       int64  `gorm:"hosting"`
	Isp           string `gorm:"isp"`
	Lat           string `gorm:"lat"`
	Lon           string `gorm:"lon"`
	Mobile        int64  `gorm:"mobile"`
	Offset        string `gorm:"offset"`
	Org           string `gorm:"org"`
	Proxy         int64  `gorm:"proxy"`
	Query         string `gorm:"query"`
	Region        string `gorm:"region"`
	RegionName    string `gorm:"region_name"`
	Timezone      string `gorm:"timezone"`
	Zip           string `gorm:"zip"`
	UpdateTime    int64  `gorm:"update_time"`
	CreateTime    int64  `gorm:"create_time"`
}

// 实现 TableName 方法指定表名
func (Ip) TableName() string {
	return "ar_ip"
}
