12345678910111213141516171819202122232425262728 |
- package entity
- import (
- "time"
- )
- const TableNameGroup = "group"
- type Group struct {
- GroupID int64 `gorm:"column:group_id;type:int;primaryKey;autoIncrement:true" json:"group_id"`
- GroupName string `gorm:"column:group_name;type:varchar(30);not null" json:"group_name"`
- Roles string `gorm:"column:roles;type:text;not null" json:"roles"`
- GroupStatus int64 `gorm:"column:group_status;type:tinyint;not null;default:1" json:"group_status"`
- OperatorUID int64 `gorm:"column:operator_uid;type:bigint;not null" json:"operator_uid"`
- CreateAt time.Time `gorm:"column:create_at;type:timestamp;not null" json:"create_at"`
- UpdateAt time.Time `gorm:"column:update_at;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"update_at"`
- }
- func (*Group) TableName() string {
- return TableNameGroup
- }
|