group.go 1.2 KB

12345678910111213141516171819202122232425262728
  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 TableNameGroup = "group"
  9. // Group mapped from table <group>
  10. type Group struct {
  11. GroupID int64 `gorm:"column:group_id;type:int;primaryKey;autoIncrement:true" json:"group_id"`
  12. GroupName string `gorm:"column:group_name;type:varchar(30);not null" json:"group_name"` // 分组名称
  13. Roles string `gorm:"column:roles;type:text;not null" json:"roles"` // 权限,roles 的id,对应的模块
  14. GroupStatus int64 `gorm:"column:group_status;type:tinyint;not null;default:1" json:"group_status"` // 分组状态
  15. OperatorUID int64 `gorm:"column:operator_uid;type:bigint;not null" json:"operator_uid"` // 操作人
  16. CreateAt time.Time `gorm:"column:create_at;type:timestamp;not null" json:"create_at"` // 创建时间
  17. UpdateAt time.Time `gorm:"column:update_at;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"update_at"` // 更新时间
  18. }
  19. // TableName Group's table name
  20. func (*Group) TableName() string {
  21. return TableNameGroup
  22. }