- Created tables for AI benchmark runs and results to facilitate model evaluation. - Added expected answers column to benchmark results. - Introduced tables for internet connection change cases and vTiger archive management, including records, relations, and checkpoints. - Implemented triggers to enforce append-only behavior for vTiger archive records and files. - Enhanced solution management with soft delete capabilities for sag_solutions and knowledge_articles. feat(scripts): add CRM benchmarking script for Ollama models - Developed a Python script to benchmark CRM models exposed through Ollama, including various test cases and scoring mechanisms. test(tests): add comprehensive tests for new features - Implemented tests for internet change case service, vTiger archive functionality, and sag solution knowledge management. - Ensured coverage for edge cases and error handling in the new features.
15 lines
676 B
SQL
15 lines
676 B
SQL
CREATE TABLE IF NOT EXISTS vtiger_archive_transfers (
|
|
id BIGSERIAL PRIMARY KEY,
|
|
direction VARCHAR(10) NOT NULL CHECK (direction IN ('export','import')),
|
|
bundle_sha256 VARCHAR(64),
|
|
through_version_id BIGINT,
|
|
source_instance VARCHAR(255),
|
|
status VARCHAR(20) NOT NULL CHECK (status IN ('running','completed','failed')),
|
|
counts JSONB NOT NULL DEFAULT '{}'::jsonb,
|
|
error_message TEXT,
|
|
initiated_by INTEGER REFERENCES users(user_id) ON DELETE SET NULL,
|
|
started_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
completed_at TIMESTAMPTZ
|
|
);
|
|
CREATE INDEX IF NOT EXISTS idx_vtiger_archive_transfers_started ON vtiger_archive_transfers(started_at DESC);
|