feat(backend): add script interpreters

This commit is contained in:
2026-04-04 15:17:34 +03:00
parent e721cff3f8
commit f5b9b32a9f
5 changed files with 481 additions and 0 deletions
+11
View File
@@ -46,6 +46,17 @@ CREATE TABLE IF NOT EXISTS jobs (
);
`
const CreateScriptInterpretersTable = `
CREATE TABLE IF NOT EXISTS script_interpreters (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL UNIQUE,
label TEXT NOT NULL,
argv TEXT NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
`
const CreateLogsTable = `
CREATE TABLE IF NOT EXISTS logs (
timestamp DateTime64(3) DEFAULT now(),