astrbot_plugin_imagestudio/database/migrations/0012_config_snapshots.sql

10 行
304 B
SQL

CREATE TABLE IF NOT EXISTS config_snapshots (
snapshot_id TEXT PRIMARY KEY,
reason TEXT NOT NULL,
actor_id TEXT,
config_json TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX IF NOT EXISTS idx_config_snapshots_created
ON config_snapshots(created_at);