/**
 * SQLite database schema for the PocketCoder daemon.
 * Matches PRD.md Section 5 exactly.
 */
export declare const SCHEMA_SQL = "\n-- Registered projects\nCREATE TABLE IF NOT EXISTS projects (\n  project_id TEXT PRIMARY KEY,\n  name TEXT NOT NULL,\n  path TEXT NOT NULL UNIQUE,\n  created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n  last_opened_at DATETIME\n);\n\n-- Filesystem watcher state (only seq for sync)\nCREATE TABLE IF NOT EXISTS fs_state (\n  project_id TEXT PRIMARY KEY REFERENCES projects(project_id) ON DELETE CASCADE,\n  last_seq INTEGER NOT NULL DEFAULT 0\n);\n\n-- Command execution history\nCREATE TABLE IF NOT EXISTS command_runs (\n  request_id TEXT PRIMARY KEY,\n  project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,\n  command TEXT NOT NULL,\n  started_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n  ended_at DATETIME,\n  exit_code INTEGER,\n  truncated BOOLEAN DEFAULT FALSE,\n  output_preview TEXT\n);\n\n-- Terminal session tracking\nCREATE TABLE IF NOT EXISTS terminal_sessions (\n  terminal_id TEXT PRIMARY KEY,\n  project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,\n  pid INTEGER,\n  created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n  closed_at DATETIME\n);\n\n-- Indexes for frequently queried columns\nCREATE INDEX IF NOT EXISTS idx_projects_path ON projects(path);\nCREATE INDEX IF NOT EXISTS idx_command_runs_project ON command_runs(project_id);\nCREATE INDEX IF NOT EXISTS idx_command_runs_started ON command_runs(started_at);\nCREATE INDEX IF NOT EXISTS idx_terminal_sessions_project ON terminal_sessions(project_id);\nCREATE INDEX IF NOT EXISTS idx_terminal_sessions_created ON terminal_sessions(created_at);\n";
//# sourceMappingURL=schema.d.ts.map