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>
31 lines
528 B
SQL
31 lines
528 B
SQL
create foreign table public.subscriptions (
|
|
id text,
|
|
customer text,
|
|
currency text,
|
|
current_period_start timestamp,
|
|
current_period_end timestamp,
|
|
attrs jsonb
|
|
)
|
|
server stripe_server
|
|
options (
|
|
object 'subscriptions',
|
|
rowid_column 'id'
|
|
);
|
|
|
|
|
|
create foreign table public.products (
|
|
id text,
|
|
name text,
|
|
active bool,
|
|
default_price text,
|
|
description text,
|
|
created timestamp,
|
|
updated timestamp,
|
|
attrs jsonb
|
|
)
|
|
server stripe_server
|
|
options (
|
|
object 'products',
|
|
rowid_column 'id'
|
|
);
|