面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
587 B

  1. package model
  2. import (
  3. "time"
  4. )
  5. type UserLog struct {
  6. Id int64 `json:"id" xorm:"pk BIGINT(20)"`
  7. Uid int `json:"uid" xorm:"not null default 0 comment('用户ID') INT(11)"`
  8. Ip string `json:"ip" xorm:"not null default '' comment('ip') VARCHAR(15)"`
  9. Platform string `json:"platform" xorm:"not null default '' comment('平台') VARCHAR(32)"`
  10. Device string `json:"device" xorm:"not null default '' comment('设备') VARCHAR(64)"`
  11. CreateAt time.Time `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP comment('创建时间') TIMESTAMP"`
  12. }