mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-27 13:22:44 +03:00
20 lines
526 B
SQL
20 lines
526 B
SQL
-- Assuming you have a table named "prompts" with columns: "title", "content", "status"
|
|
|
|
CREATE TABLE IF NOT EXISTS user_settings (
|
|
user_id UUID PRIMARY KEY,
|
|
models JSONB DEFAULT '["gpt-3.5-turbo"]'::jsonb,
|
|
max_requests_number INT DEFAULT 50,
|
|
max_brains INT DEFAULT 5,
|
|
max_brain_size INT DEFAULT 10000000
|
|
);
|
|
|
|
|
|
-- Update migrations table
|
|
INSERT INTO migrations (name)
|
|
SELECT '202309127004032_add_user_limits'
|
|
WHERE NOT EXISTS (
|
|
SELECT 1 FROM migrations WHERE name = '202309127004032_add_user_limits'
|
|
);
|
|
|
|
COMMIT;
|