quivr/supabase/seed.sql

300 lines
31 KiB
MySQL
Raw Normal View History

2024-01-03 23:53:37 +03:00
SET session_replication_role = replica;
2024-01-03 23:53:37 +03:00
--
-- PostgreSQL database dump
--
-- Dumped from database version 15.1 (Ubuntu 15.1-1.pgdg20.04+1)
-- Dumped by pg_dump version 15.5 (Ubuntu 15.5-1.pgdg20.04+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Data for Name: audit_log_entries; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
INSERT INTO "auth"."audit_log_entries" ("instance_id", "id", "payload", "created_at", "ip_address") VALUES
('00000000-0000-0000-0000-000000000000', '84e89c28-6f5f-4e24-a03b-68cdaa90b3f2', '{"action":"user_signedup","actor_id":"00000000-0000-0000-0000-000000000000","actor_username":"service_role","actor_via_sso":false,"log_type":"team","traits":{"user_email":"admin@quivr.app","user_id":"39418e3b-0258-4452-af60-7acfcc1263ff","user_phone":""}}', '2024-01-22 22:27:00.164777+00', ''),
('00000000-0000-0000-0000-000000000000', 'ac1d43e6-2b2a-4af1-bdd1-c03907e7ba5a', '{"action":"login","actor_id":"39418e3b-0258-4452-af60-7acfcc1263ff","actor_username":"admin@quivr.app","actor_via_sso":false,"log_type":"account","traits":{"provider":"email"}}', '2024-01-22 22:27:50.16388+00', ''),
('00000000-0000-0000-0000-000000000000', 'e86de23b-ea26-408e-8e8c-a97d2f1f259c', '{"action":"login","actor_id":"39418e3b-0258-4452-af60-7acfcc1263ff","actor_username":"admin@quivr.app","actor_via_sso":false,"log_type":"account","traits":{"provider":"email"}}', '2024-02-06 04:08:08.378325+00', '');
2024-01-03 23:53:37 +03:00
--
-- Data for Name: flow_state; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
--
-- Data for Name: users; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
INSERT INTO "auth"."users" ("instance_id", "id", "aud", "role", "email", "encrypted_password", "email_confirmed_at", "invited_at", "confirmation_token", "confirmation_sent_at", "recovery_token", "recovery_sent_at", "email_change_token_new", "email_change", "email_change_sent_at", "last_sign_in_at", "raw_app_meta_data", "raw_user_meta_data", "is_super_admin", "created_at", "updated_at", "phone", "phone_confirmed_at", "phone_change", "phone_change_token", "phone_change_sent_at", "email_change_token_current", "email_change_confirm_status", "banned_until", "reauthentication_token", "reauthentication_sent_at", "is_sso_user", "deleted_at") VALUES
('00000000-0000-0000-0000-000000000000', '39418e3b-0258-4452-af60-7acfcc1263ff', 'authenticated', 'authenticated', 'admin@quivr.app', '$2a$10$vwKX0eMLlrOZvxQEA3Vl4e5V4/hOuxPjGYn9QK1yqeaZxa.42Uhze', '2024-01-22 22:27:00.166861+00', NULL, '', NULL, '', NULL, '', '', NULL, '2024-02-06 04:08:08.379821+00', '{"provider": "email", "providers": ["email"]}', '{}', NULL, '2024-01-22 22:27:00.158026+00', '2024-02-06 04:08:08.38296+00', NULL, NULL, '', '', NULL, '', 0, NULL, '', NULL, false, NULL);
2024-01-03 23:53:37 +03:00
--
-- Data for Name: identities; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
INSERT INTO "auth"."identities" ("provider_id", "user_id", "identity_data", "provider", "last_sign_in_at", "created_at", "updated_at", "id") VALUES
('39418e3b-0258-4452-af60-7acfcc1263ff', '39418e3b-0258-4452-af60-7acfcc1263ff', '{"sub": "39418e3b-0258-4452-af60-7acfcc1263ff", "email": "admin@quivr.app", "email_verified": false, "phone_verified": false}', 'email', '2024-01-22 22:27:00.163787+00', '2024-01-22 22:27:00.163855+00', '2024-01-22 22:27:00.163855+00', '35f91d2f-db60-474c-8dd2-3fcbed9869bd');
2024-01-03 23:53:37 +03:00
--
-- Data for Name: instances; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
--
-- Data for Name: sessions; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
2024-01-04 16:28:08 +03:00
INSERT INTO "auth"."sessions" ("id", "user_id", "created_at", "updated_at", "factor_id", "aal", "not_after", "refreshed_at", "user_agent", "ip", "tag") VALUES
('99541374-fc9d-4f5b-b0f6-ff092a455a60', '39418e3b-0258-4452-af60-7acfcc1263ff', '2024-01-22 22:27:50.165335+00', '2024-01-22 22:27:50.165335+00', NULL, 'aal1', NULL, NULL, 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36', '192.168.65.1', NULL),
('52f4a82d-9e1f-4beb-9548-61f894563ce9', '39418e3b-0258-4452-af60-7acfcc1263ff', '2024-02-06 04:08:08.379919+00', '2024-02-06 04:08:08.379919+00', NULL, 'aal1', NULL, NULL, 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36', '192.168.65.1', NULL);
2024-01-03 23:53:37 +03:00
--
-- Data for Name: mfa_amr_claims; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
2024-01-04 16:28:08 +03:00
INSERT INTO "auth"."mfa_amr_claims" ("session_id", "created_at", "updated_at", "authentication_method", "id") VALUES
('99541374-fc9d-4f5b-b0f6-ff092a455a60', '2024-01-22 22:27:50.170258+00', '2024-01-22 22:27:50.170258+00', 'password', 'ecaccc76-7e60-4cac-8472-c104837906cd'),
('52f4a82d-9e1f-4beb-9548-61f894563ce9', '2024-02-06 04:08:08.383754+00', '2024-02-06 04:08:08.383754+00', 'password', '481e338a-dbff-45e3-9e5f-18ae4d96a9c8');
2024-01-03 23:53:37 +03:00
--
-- Data for Name: mfa_factors; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
--
-- Data for Name: mfa_challenges; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
--
-- Data for Name: refresh_tokens; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
2024-01-04 16:28:08 +03:00
INSERT INTO "auth"."refresh_tokens" ("instance_id", "id", "token", "user_id", "revoked", "created_at", "updated_at", "parent", "session_id") VALUES
('00000000-0000-0000-0000-000000000000', 1, 'qusbTEienvum2hAm8cjwzw', '39418e3b-0258-4452-af60-7acfcc1263ff', false, '2024-01-22 22:27:50.167806+00', '2024-01-22 22:27:50.167806+00', NULL, '99541374-fc9d-4f5b-b0f6-ff092a455a60'),
('00000000-0000-0000-0000-000000000000', 2, 'GgZ5ahBDWrTNx5RyrsRjIA', '39418e3b-0258-4452-af60-7acfcc1263ff', false, '2024-02-06 04:08:08.381408+00', '2024-02-06 04:08:08.381408+00', NULL, '52f4a82d-9e1f-4beb-9548-61f894563ce9');
2024-01-03 23:53:37 +03:00
--
-- Data for Name: sso_providers; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
--
-- Data for Name: saml_providers; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
--
-- Data for Name: saml_relay_states; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
--
-- Data for Name: sso_domains; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
--
-- Data for Name: prompts; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: brains; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "public"."brains" ("brain_id", "name", "status", "model", "max_tokens", "temperature", "description", "prompt_id", "last_update", "brain_type", "openai_api_key", "meaning", "tags") VALUES
('2db343ed-f650-4e3c-a527-db7829829bee', 'Default brain', 'private', NULL, 256, 0, 'This is a description', NULL, '2024-01-22 22:27:50.799964', 'doc', NULL, '[-0.0033153512,0.023352485,-0.004903887,-0.007629018,0.014502554,0.010779108,-0.022475585,0.0006897145,-0.019777436,-0.018279964,-0.0068533,0.021639159,-0.006927499,0.011865113,-0.016607111,0.013065789,0.01624286,0.004387866,0.0034418271,0.007271513,0.0045565,-0.0032613883,0.01587861,0.019008463,-0.0040067523,-0.006634075,0.011156849,-0.009996644,0.010401366,0.0009772361,0.030947777,0.017753825,0.007096133,-0.01984489,0.034266498,0.009018565,-0.00405397,0.0032934288,0.025956199,-0.0029123153,0.018725159,0.008978093,0.008863421,-0.006306925,-0.0061652716,-0.018603742,-0.008978093,-0.015824648,-0.010711654,0.0048094518,0.008795967,0.028843218,-0.012445215,0.022084353,-0.009193945,-0.0020168668,-0.010347404,0.0138819795,0.040526208,-0.008168648,0.005558188,-0.021706613,-0.024040513,-0.011156849,-0.006310297,-0.014664443,0.0022647593,0.017807787,-0.008883658,-0.008930875,0.0265363,-0.014799351,0.0054468894,-0.0047453707,0.018077603,0.0013760562,-0.013247915,0.011521099,-0.0009797656,0.003608775,0.01697136,-0.016256351,-0.03159533,0.020964622,0.012397997,-0.004711644,-0.00812143,0.012418234,-0.014151795,-0.012775738,-0.0074806195,-0.0041686413,0.00473188,0.011278265,-0.009126491,0.025160246,-0.0031180491,0.01911639,0.013106261,-0.031811185,0.026037144,-0.0094570145,-0.016350787,-0.02091066,-0.017564954,-0.009166963,0.0028684703,0.008640824,0.01092076,-0.007426657,-0.0010817894,0.005645878,-0.013767309,-0.029544737,0.005794276,0.0005050599,0.019629039,-0.0014822959,-0.0006020246,-0.016364276,0.02506581,0.021760575,0.011379446,-0.023028707,-0.0049814587,0.023919096,-0.010293441,-0.013052299,-0.0032984877,0.0031062446,0.019790927,-0.0024586888,0.010664436,0.00086425105,-0.016337296,0.02270493,-0.023959568,0.016580129,-0.028060755,0.011325483,0.005885339,0.030597016,-0.014516044,0.0025986554,-0.0014713347,0.023096161,-0.0083710095,0.014003396,0.015338981,-0.010118061,0.00032335636,0.008822949,0.033133276,-0.007959541,-0.003038791,0.0031146763,0.008478935,0.03825976,-0.0055716787,-0.0075008557,0.002450257,-0.00013174559,-0.006634075,-0.029706627,0.05029351,0.038880337,0.008964602,-0.018091094,0.018333927,-0.03623615,0.0034704949,0.025902236,-0.041767355,0.017713351,-0.013490748,0.02002027,0.03205402,-0.018644214,-0.013774053,-0.018333927,-0.034941036,-0.019736964,-0.009659375,0.0025750466,0.0028364297,-0.0250793,0.013072534,-0.037935983,0.013814526,0.011109631,0.014232739,0.020654336,-0.0023946078,0.0058010216,-0.67777514,-0.02271842,-0.01515011,-0.014570008,0.006994953,0.02830359,-0.0031753848,-0.006775728,0.009072528,0.008161902,-0.007925814,-0.0013903902,-0.0061618993,0.004590227,-0.013659382,-0.026617246,0.002655991,0.014151795,-0.0064688134,0.012559886,-0.008930875,0.023177104,-0.012202381,-0.0067082746,-0.019494131,0.018279964,0.012148418,-0.016188897,-0.0038954534,0.014016887,-0.040876966,0.00405397,0.008526153,-0.014596989,0.041956227,0.010239477,-0.02147727,0.014192266,0.0003697308,0.0023575083,-0.025497513,-0.0027824668,0.0017807788,-0.026482338,-0.027898867,0.017443538,0.009396306,0.009733574,-0.009989899,-0.02270493,0.022853326,0.007736944,0.002617205,0.0046070903,0.007615527,-0.0012799347,0.039662797,-0.008094449,0.0076020365,-0.0048836507,-0.0057706675,0.037018612,-0.015028693,-0.005075894,-0.004603718,0.013436785,-0.009038801,-0.00427994,-0.0018617233,-0.043224357,0.020317066,0.007993268,0.017200703,0.0022597003,0.025511004,-0.00051138364,0.022070864,-0.000117938645,-0.00048861804,0.023177104,-0.0015244546,0.000328837,-0.0038516086,-0.036290113,0.011757187,-0.014543026,-0.006873536,-0.007811143,0.004502537,0.0016197329,-0.00053541403,-0.005264764,-0.010023626,-0.0041113053,-0.001354977,0.00096290215,0.0015573382,0.0032934288,0.02596969,0.011757187,0.00015050615,-0.0060168738,-0.007885342,0.027790941,0.0064182235,0.009854991,-0.027683014,0.03933902,0.046030432,-0.006323788,-0.0045834817,0.0044620647,-0.008924129,0.0073524574,0.00055565016,-0.032782517,0.018779
2024-01-03 23:53:37 +03:00
--
-- Data for Name: api_brain_definition; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: api_keys; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: brain_subscription_invitations; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: brains_users; Type: TABLE DATA; Schema: public; Owner: postgres
--
2024-01-04 16:28:08 +03:00
INSERT INTO "public"."brains_users" ("brain_id", "rights", "default_brain", "user_id") VALUES
('2db343ed-f650-4e3c-a527-db7829829bee', 'Owner', true, '39418e3b-0258-4452-af60-7acfcc1263ff');
2024-01-03 23:53:37 +03:00
--
-- Data for Name: vectors; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: brains_vectors; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: chats; Type: TABLE DATA; Schema: public; Owner: postgres
--
2024-01-04 16:28:08 +03:00
INSERT INTO "public"."chats" ("chat_id", "user_id", "creation_time", "history", "chat_name") VALUES
2024-01-23 06:45:50 +03:00
('482872e4-91fe-4f4b-8331-882954711fc9', '39418e3b-0258-4452-af60-7acfcc1263ff', '2024-01-22 22:28:02.175246', NULL, 'What is quivr'),
('3e3b4c4a-e606-4366-acfc-873e777cf53f', '39418e3b-0258-4452-af60-7acfcc1263ff', '2024-01-23 03:35:49.634698', NULL, 'What os quivr'),
('4aa85022-8162-4b39-b7c8-cfb2a0e3fd7c', '39418e3b-0258-4452-af60-7acfcc1263ff', '2024-01-23 03:38:28.700781', NULL, 'What is quivr?');
2024-01-03 23:53:37 +03:00
--
-- Data for Name: chat_history; Type: TABLE DATA; Schema: public; Owner: postgres
--
2024-01-23 06:45:50 +03:00
INSERT INTO "public"."chat_history" ("message_id", "chat_id", "user_message", "assistant", "message_time", "brain_id", "prompt_id", "metadata", "user_feedback") VALUES
('af99ce12-1080-426c-acaf-3c6c09cdbecb', '4aa85022-8162-4b39-b7c8-cfb2a0e3fd7c', 'What is quivr ? ', 'Quivr is a virtual reality archery game that allows players to experience the thrill of archery in a simulated environment. Players use motion controllers to aim, draw, and release their virtual bow to hit targets and complete challenges. The game provides a realistic and immersive archery experience for VR enthusiasts.', '2024-01-23 03:43:54.416148', '2db343ed-f650-4e3c-a527-db7829829bee', NULL, '{"close_brains": [{"id": "2db343ed-f650-4e3c-a527-db7829829bee", "name": "Default brain", "similarity": 0.717073075073519}], "follow_up_questions": ["Use simpler language", "Provide pros and cons", "Elaborate on a specific point"]}', NULL);
2024-01-03 23:53:37 +03:00
--
-- Data for Name: composite_brain_connections; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: integrations; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "public"."users" ("id", "email") VALUES
('39418e3b-0258-4452-af60-7acfcc1263ff', 'admin@quivr.app');
--
-- Data for Name: integrations_user; Type: TABLE DATA; Schema: public; Owner: postgres
--
2024-01-03 23:53:37 +03:00
--
-- Data for Name: knowledge; Type: TABLE DATA; Schema: public; Owner: postgres
--
2024-01-04 16:28:08 +03:00
--
-- Data for Name: models; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "public"."models" ("name", "price", "max_input", "max_output") VALUES
('gpt-3.5-turbo-0125', 1, 2000, 1000);
2024-01-04 16:28:08 +03:00
2024-01-03 23:53:37 +03:00
--
-- Data for Name: notifications; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: onboardings; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "public"."onboardings" ("user_id", "onboarding_a", "onboarding_b1", "onboarding_b2", "onboarding_b3", "creation_time") VALUES
('39418e3b-0258-4452-af60-7acfcc1263ff', true, true, true, true, '2024-01-22 22:27:00.156859');
2024-01-03 23:53:37 +03:00
2024-01-04 16:28:08 +03:00
--
-- Data for Name: product_to_features; Type: TABLE DATA; Schema: public; Owner: postgres
--
2024-01-03 23:53:37 +03:00
--
-- Data for Name: user_daily_usage; Type: TABLE DATA; Schema: public; Owner: postgres
--
2024-01-23 06:45:50 +03:00
INSERT INTO "public"."user_daily_usage" ("user_id", "email", "date", "daily_requests_count") VALUES
('39418e3b-0258-4452-af60-7acfcc1263ff', 'admin@quivr.app', '20240123', 1);
2024-01-03 23:53:37 +03:00
--
-- Data for Name: user_identity; Type: TABLE DATA; Schema: public; Owner: postgres
--
--
-- Data for Name: user_settings; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO "public"."user_settings" ("user_id", "models", "max_brains", "max_brain_size", "is_premium", "api_access", "monthly_chat_credit") VALUES
('39418e3b-0258-4452-af60-7acfcc1263ff', '["gpt-3.5-turbo-0125"]', 3, 50000000, false, false, 100);
2024-01-03 23:53:37 +03:00
--
-- Name: refresh_tokens_id_seq; Type: SEQUENCE SET; Schema: auth; Owner: supabase_auth_admin
2024-01-03 23:53:37 +03:00
--
SELECT pg_catalog.setval('"auth"."refresh_tokens_id_seq"', 2, true);
2024-01-03 23:53:37 +03:00
--
-- Name: integrations_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
2024-01-03 23:53:37 +03:00
--
SELECT pg_catalog.setval('"public"."integrations_user_id_seq"', 1, false);
2024-01-03 23:53:37 +03:00
2024-01-04 16:28:08 +03:00
--
-- Name: product_to_features_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('"public"."product_to_features_id_seq"', 1, false);
2024-01-03 23:53:37 +03:00
--
-- PostgreSQL database dump complete
--
RESET ALL;