add last online ip #24
This commit is contained in:
@@ -13,6 +13,7 @@ type Peer struct {
|
||||
UserId uint `json:"user_id" gorm:"default:0;not null;index"`
|
||||
User *User `json:"user,omitempty"`
|
||||
LastOnlineTime int64 `json:"last_online_time" gorm:"default:0;not null;"`
|
||||
LastOnlineIp string `json:"last_online_ip" gorm:"default:'';not null;"`
|
||||
TimeModel
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user