quivr/backend/models/databases/supabase/supabase.py
Zineb El Bachiri 5bbc72eb09
feat: composite brains db (#1826)
# Description

- db for composite brains & repository
- composite brains creation
2023-12-06 08:40:18 +01:00

19 lines
500 B
Python

from logger import get_logger
from models.databases.supabase import BrainSubscription, File, UserUsage, Vector
logger = get_logger(__name__)
class SupabaseDB(
UserUsage,
File,
BrainSubscription,
Vector,
):
def __init__(self, supabase_client):
self.db = supabase_client
UserUsage.__init__(self, supabase_client)
File.__init__(self, supabase_client)
BrainSubscription.__init__(self, supabase_client)
Vector.__init__(self, supabase_client)