Overview
Nightshift uses SQLite. The database is a single file at/opt/nightshift/nightshift.db.
Database schema
| Table | Contents |
|---|---|
agents | id, tenant_id, name, source_filename, function_name, config_json, storage_path, created_at, updated_at. UNIQUE on (tenant_id, name). |
runs | id, agent_id, tenant_id, prompt, status (started/completed/error), created_at, completed_at, error. |
api_keys | key_hash (SHA-256, primary key), tenant_id, label, created_at. |
Database backup
- Manual
- Automated (cron)
Safe while the server is running:
