user_group.go 1.1 KB

123456789101112131415161718192021222324252627
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package entity
  5. import (
  6. "time"
  7. )
  8. const TableNameUserGroup = "user_group"
  9. // UserGroup mapped from table <user_group>
  10. type UserGroup struct {
  11. UID int64 `gorm:"column:uid;type:bigint;primaryKey" json:"uid"` // 用户ID
  12. Groups string `gorm:"column:groups;type:text;not null" json:"groups"` // 分组权限
  13. OperatorUID int64 `gorm:"column:operator_uid;type:bigint;not null" json:"operator_uid"` // 操作人
  14. Status int64 `gorm:"column:status;type:tinyint;not null;default:1" json:"status"` // 状态
  15. CreateAt time.Time `gorm:"column:create_at;type:timestamp;not null" json:"create_at"` // 添加时间
  16. UpdateAt time.Time `gorm:"column:update_at;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"update_at"` // 更新时间
  17. }
  18. // TableName UserGroup's table name
  19. func (*UserGroup) TableName() string {
  20. return TableNameUserGroup
  21. }