mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 18:52:12 +03:00
ca93cb9062
# Description - Added package manager - Added precommit checks - Rewrote dependency injection of Services and Repositories - Integrate async SQL alchemy engine - Migrate Chat repository to SQLModel - Migrated ChatHistory repository to SQLModel - User SQLModel - Unit test methodology with db rollback - Unit tests ChatRepository - Test ChatService get_history - Brain entity SQL Model - Promp SQLModel - Rewrite chat/{chat_id}/question route - updated docker files and docker compose in dev and production Added `quivr_core` subpackages: - Refactored KnowledgebrainQa - Added Rag service to interface with non-rag dependencies --------- Co-authored-by: aminediro <aminediro@github.com>
54 lines
1.5 KiB
SQL
54 lines
1.5 KiB
SQL
create table "public"."models" (
|
|
"name" text not null,
|
|
"price" integer default 1,
|
|
"max_input" integer default 2000,
|
|
"max_output" integer default 1000
|
|
);
|
|
|
|
|
|
CREATE UNIQUE INDEX models_pkey ON public.models USING btree (name);
|
|
|
|
alter table "public"."models" add constraint "models_pkey" PRIMARY KEY using index "models_pkey";
|
|
|
|
grant delete on table "public"."models" to "anon";
|
|
|
|
grant insert on table "public"."models" to "anon";
|
|
|
|
grant references on table "public"."models" to "anon";
|
|
|
|
grant select on table "public"."models" to "anon";
|
|
|
|
grant trigger on table "public"."models" to "anon";
|
|
|
|
grant truncate on table "public"."models" to "anon";
|
|
|
|
grant update on table "public"."models" to "anon";
|
|
|
|
grant delete on table "public"."models" to "authenticated";
|
|
|
|
grant insert on table "public"."models" to "authenticated";
|
|
|
|
grant references on table "public"."models" to "authenticated";
|
|
|
|
grant select on table "public"."models" to "authenticated";
|
|
|
|
grant trigger on table "public"."models" to "authenticated";
|
|
|
|
grant truncate on table "public"."models" to "authenticated";
|
|
|
|
grant update on table "public"."models" to "authenticated";
|
|
|
|
grant delete on table "public"."models" to "service_role";
|
|
|
|
grant insert on table "public"."models" to "service_role";
|
|
|
|
grant references on table "public"."models" to "service_role";
|
|
|
|
grant select on table "public"."models" to "service_role";
|
|
|
|
grant trigger on table "public"."models" to "service_role";
|
|
|
|
grant truncate on table "public"."models" to "service_role";
|
|
|
|
grant update on table "public"."models" to "service_role";
|