1234567891011121314151617181920212223242526272829303132 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- )
- const TableNameSysParam = "sys_param"
- // SysParam mapped from table <sys_param>
- type SysParam struct {
- ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
- Sysname string `gorm:"column:sysname" json:"sysname"` // 系统名称
- Logo string `gorm:"column:logo" json:"logo"` // logo图标全路径
- Expiretime int32 `gorm:"column:expiretime" json:"expiretime"` // 记录日期超期时间,超过自动删除历史数据
- Recordcount int32 `gorm:"column:recordcount" json:"recordcount"` // 单表存储条数超限,自动删除历史数据
- Cpuusage int32 `gorm:"column:cpuusage" json:"cpuusage"` // CPU占用率告警阈值
- Diskusage int32 `gorm:"column:diskusage" json:"diskusage"` // 磁盘空间剩余容量告警阈值(MB)
- Memusage int32 `gorm:"column:memusage" json:"memusage"` // 内存占用率告警阈值
- Bencryption int32 `gorm:"column:bencryption" json:"bencryption"` // 使能mqtt加密,1-禁止 2-使能
- Heartbeat int32 `gorm:"column:heartbeat" json:"heartbeat"` // APP心跳周期,默认60秒一次
- CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
- UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
- }
- // TableName SysParam's table name
- func (*SysParam) TableName() string {
- return TableNameSysParam
- }
|