feat: database models and Alembic migrations — User, Recording, Transcription, Protocol, PromptTemplate, ExportFile

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 22:03:20 +05:00
parent 296538b0ea
commit 5b92553148
14 changed files with 344 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
database_url: str = "postgresql+asyncpg://meetproto:changeme@db:5432/meetproto"
redis_url: str = "redis://redis:6379/0"
jwt_secret: str = "change-this-to-a-random-secret"
jwt_algorithm: str = "HS256"
jwt_expire_minutes: int = 1440
whisper_model: str = "large-v3"
whisper_device: str = "cuda"
whisper_compute_type: str = "float16"
litellm_model: str = "openrouter/meta-llama/llama-3.1-70b-instruct"
litellm_api_key: str = ""
litellm_api_base: str = ""
upload_dir: str = "/app/uploads"
export_dir: str = "/app/exports"
retention_days: int = 90
telegram_bot_token: str = ""
telegram_webhook_url: str = ""
app_host: str = "0.0.0.0"
app_port: int = 8000
app_url: str = "http://localhost:8000"
model_config = {"env_file": ".env", "extra": "ignore"}
settings = Settings()