mirror of
https://github.com/illian64/llm-translate.git
synced 2026-05-02 05:31:51 +00:00
16 lines
No EOL
552 B
SQL
16 lines
No EOL
552 B
SQL
CREATE TABLE IF NOT EXISTS cache_translate (
|
|
key TEXT NOT NULL,
|
|
created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
from_lang TEXT NOT NULL,
|
|
to_lang TEXT NOT NULL,
|
|
plugin TEXT NOT NULL,
|
|
model TEXT NOT NULL,
|
|
context_hash INTEGER NOT NULL,
|
|
value TEXT NOT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX IF NOT EXISTS idx_translate_cols
|
|
ON cache_translate (key, from_lang, to_lang, plugin, model, context_hash);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_created
|
|
ON cache_translate (created); |