sys_param.gen.go 1.6 KB

1234567891011121314151617181920212223242526272829303132
  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 TableNameSysParam = "sys_param"
  9. // SysParam mapped from table <sys_param>
  10. type SysParam struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  12. Sysname string `gorm:"column:sysname" json:"sysname"` // 系统名称
  13. Logo string `gorm:"column:logo" json:"logo"` // logo图标全路径
  14. Expiretime int32 `gorm:"column:expiretime" json:"expiretime"` // 记录日期超期时间,超过自动删除历史数据
  15. Recordcount int32 `gorm:"column:recordcount" json:"recordcount"` // 单表存储条数超限,自动删除历史数据
  16. Cpuusage int32 `gorm:"column:cpuusage" json:"cpuusage"` // CPU占用率告警阈值
  17. Diskusage int32 `gorm:"column:diskusage" json:"diskusage"` // 磁盘空间剩余容量告警阈值(MB)
  18. Memusage int32 `gorm:"column:memusage" json:"memusage"` // 内存占用率告警阈值
  19. Bencryption int32 `gorm:"column:bencryption" json:"bencryption"` // 使能mqtt加密,1-禁止 2-使能
  20. Heartbeat int32 `gorm:"column:heartbeat" json:"heartbeat"` // APP心跳周期,默认60秒一次
  21. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
  22. UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
  23. }
  24. // TableName SysParam's table name
  25. func (*SysParam) TableName() string {
  26. return TableNameSysParam
  27. }