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"
