user.go 1.2 KB

12345678910111213141516171819202122232425
  1. // Code generated by sql2gorm. DO NOT EDIT.
  2. package gorm_model
  3. import (
  4. "time"
  5. )
  6. type User struct {
  7. ID int64 `gorm:"column:id;primary_key;AUTO_INCREMENT"` // 用户表id
  8. User string `gorm:"column:user"` // 账号
  9. Username string `gorm:"column:username"` // 后台用户名
  10. Password string `gorm:"column:password"` // 用户密码
  11. RealName string `gorm:"column:real_name"` // 真实姓名
  12. Role string `gorm:"column:role"` // 角色 1,超级管理员; 2,管理员;3,企业用户
  13. Phone string `gorm:"column:phone"` // 绑定手机
  14. Email string `gorm:"column:email"` // 电子邮件
  15. LastLogintime time.Time `gorm:"column:last_login_time"` // 最后一次登录时间
  16. UserState string `gorm:"column:user_state"` // 0,禁用,1,正常
  17. CreatedAt time.Time `gorm:"column:created_at"` // 创建时间
  18. UpdatedAt time.Time `gorm:"column:updated_at"` // 更新时间
  19. }
  20. func (m *User) TableName() string {
  21. return "user"
  22. }