magic_user_action_log.go 957 B

12345678910111213141516171819202122
  1. package app
  2. // 引入关联包
  3. type MagicUserActionLog struct {
  4. Id int64 `json:"id" gorm:"column:id;type:bigint;comment:id;primarykey;NOT NULL"`
  5. CreatedAt int64 `json:"createdAt" gorm:"column:created_at;type:bigint;comment:创建时间"`
  6. UpdatedAt int64 `json:"updatedAt" gorm:"column:updated_at;type:bigint;comment:更新时间"`
  7. UserId int64 `json:"userId" gorm:"column:user_id;type:bigint;comment:用户ID"`
  8. Uid string `json:"uid" gorm:"column:uid;type:varchar(64);comment:用户UID"`
  9. Source string `json:"source" gorm:"column:source;type:text;comment:原信息"`
  10. Target string `json:"target" gorm:"column:target;type:text;comment:目标信息"`
  11. Action string `json:"action" gorm:"column:action;type:varchar(42);comment:变更类型:修改地址 重置上级 修改上级"`
  12. }
  13. func (*MagicUserActionLog) TableName() string {
  14. return "magic_user_action_log"
  15. }
  16. func NewMagicUserActionLog() *MagicUserActionLog {
  17. return &MagicUserActionLog{}
  18. }