sys_user.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
  3. // ==========================================================================
  4. package internal
  5. import (
  6. "github.com/gogf/gf/os/gtime"
  7. )
  8. // SysUser is the golang structure for table sys_user.
  9. type SysUser struct {
  10. Id uint64 `orm:"id,primary" json:"id"` //
  11. UserName string `orm:"user_name,unique" json:"userName"` // 用户名
  12. Mobile string `orm:"mobile,unique" json:"mobile"` // 中国手机不带国家代码,国际手机号格式为:国家代码-手机号
  13. UserNickname string `orm:"user_nickname" json:"userNickname"` // 用户昵称
  14. Birthday int `orm:"birthday" json:"birthday"` // 生日
  15. UserPassword string `orm:"user_password" json:"userPassword"` // 登录密码;cmf_password加密
  16. UserSalt string `orm:"user_salt" json:"userSalt"` // 加密盐
  17. UserStatus uint `orm:"user_status" json:"userStatus"` // 用户状态;0:禁用,1:正常,2:未验证
  18. UserEmail string `orm:"user_email" json:"userEmail"` // 用户登录邮箱
  19. Sex int `orm:"sex" json:"sex"` // 性别;0:保密,1:男,2:女
  20. Avatar string `orm:"avatar" json:"avatar"` // 用户头像
  21. DeptId uint64 `orm:"dept_id" json:"deptId"` // 部门id
  22. Remark string `orm:"remark" json:"remark"` // 备注
  23. IsAdmin int `orm:"is_admin" json:"isAdmin"` // 是否后台管理员 1 是 0 否
  24. Address string `orm:"address" json:"address"` // 联系地址
  25. Describe string `orm:"describe" json:"describe"` // 描述信息
  26. PhoneNum string `orm:"phone_num" json:"phoneNum"` // 联系电话
  27. LastLoginIp string `orm:"last_login_ip" json:"lastLoginIp"` // 最后登录ip
  28. LastLoginTime *gtime.Time `orm:"last_login_time" json:"lastLoginTime"` // 最后登录时间
  29. CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
  30. UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
  31. DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
  32. }