1
0
forked from Eeveid/lightOps

实现 LightOps 运维面板基础功能

This commit is contained in:
2026-05-25 01:13:03 +08:00
commit d3bb9f45a6
84 changed files with 23505 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
CREATE TABLE IF NOT EXISTS app_store_installs (
id TEXT PRIMARY KEY,
agent_id TEXT NOT NULL,
slug TEXT NOT NULL,
name TEXT NOT NULL,
project TEXT NOT NULL,
status TEXT NOT NULL,
params_json TEXT NOT NULL DEFAULT '{}',
result_json TEXT,
error TEXT,
created_at TEXT NOT NULL DEFAULT (datetime('now')),
updated_at TEXT NOT NULL DEFAULT (datetime('now')),
FOREIGN KEY(agent_id) REFERENCES agents(id) ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS idx_app_store_installs_agent ON app_store_installs(agent_id, updated_at DESC);
CREATE INDEX IF NOT EXISTS idx_app_store_installs_slug ON app_store_installs(slug, updated_at DESC);