chore: sync local updates
This commit is contained in:
14
mengyaping-backend/storage/db_kv.go
Normal file
14
mengyaping-backend/storage/db_kv.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package storage
|
||||
|
||||
import "time"
|
||||
|
||||
// MonitorKV 键值配置(管理员令牌等),列名避开 MySQL 保留字 key/value
|
||||
type MonitorKV struct {
|
||||
CfgKey string `gorm:"primaryKey;size:128;column:cfg_key"`
|
||||
CfgValue string `gorm:"type:text;column:cfg_value"`
|
||||
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
||||
}
|
||||
|
||||
func (MonitorKV) TableName() string { return "monitor_kv" }
|
||||
|
||||
const kvKeyAdminToken = "admin_token"
|
||||
Reference in New Issue
Block a user