Files
OmniRoute/src/lib/db/migrations/031_create_eval_suites.sql
diegosouzapw 01dd72cf1f feat(dashboard): add custom CLI builder and eval suite management
Introduce a custom CLI tools card that generates OpenAI-compatible
env vars and JSON config, and add a cost overview tab with pricing
source visibility.

Add persisted custom eval suites with authenticated CRUD routes and
validation, plus new translator stream transformation tooling and
richer live monitor routing details.

Improve localization coverage across dashboard flows and add unit
tests for custom CLI config, pricing sources, eval suites, and
stream transformation.
2026-04-23 16:57:43 -03:00

28 lines
697 B
SQL

CREATE TABLE IF NOT EXISTS eval_suites (
id TEXT PRIMARY KEY,
name TEXT NOT NULL,
description TEXT,
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS eval_cases (
id TEXT PRIMARY KEY,
suite_id TEXT NOT NULL,
sort_order INTEGER NOT NULL DEFAULT 0,
name TEXT NOT NULL,
model TEXT,
input_json TEXT NOT NULL,
expected_strategy TEXT NOT NULL,
expected_value TEXT,
tags_json TEXT,
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS idx_eval_suites_updated_at
ON eval_suites(updated_at DESC);
CREATE INDEX IF NOT EXISTS idx_eval_cases_suite_order
ON eval_cases(suite_id, sort_order ASC, created_at ASC);