log_operate.gen.go 783 B

12345678910111213141516171819202122232425
  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 model
  5. import (
  6. "time"
  7. )
  8. const TableNameLogOperate = "log_operate"
  9. // LogOperate mapped from table <log_operate>
  10. type LogOperate struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  12. Context string `gorm:"column:context" json:"context"` // 日志内容
  13. Appid int32 `gorm:"column:appid" json:"appid"` // 所属APP id
  14. Usrname string `gorm:"column:usrname" json:"usrname"` // 操作用户名
  15. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 操作时间
  16. }
  17. // TableName LogOperate's table name
  18. func (*LogOperate) TableName() string {
  19. return TableNameLogOperate
  20. }