quivr/backend/models/databases/supabase/supabase.py
Mamadou DICKO fbdc07af2c
feat: add onboarding table (#1327)
* feat: add onboarding table

* feat: add Onboarding repository

* feat: add onboarding controller
2023-10-05 09:47:29 +02:00

45 lines
1.1 KiB
Python

from logger import get_logger
from models.databases.supabase import (
ApiKeyHandler,
Brain,
BrainSubscription,
Chats,
File,
Knowledges,
Notifications,
Onboarding,
Prompts,
UserUsage,
Vector,
)
logger = get_logger(__name__)
class SupabaseDB(
Brain,
UserUsage,
File,
BrainSubscription,
ApiKeyHandler,
Chats,
Vector,
Onboarding,
Prompts,
Notifications,
Knowledges,
):
def __init__(self, supabase_client):
self.db = supabase_client
Brain.__init__(self, supabase_client)
UserUsage.__init__(self, supabase_client)
File.__init__(self, supabase_client)
BrainSubscription.__init__(self, supabase_client)
ApiKeyHandler.__init__(self, supabase_client)
Chats.__init__(self, supabase_client)
Vector.__init__(self, supabase_client)
Prompts.__init__(self, supabase_client)
Notifications.__init__(self, supabase_client)
Knowledges.__init__(self, supabase_client)
Onboarding.__init__(self, supabase_client)