from pydantic_settings import BaseSettings
from typing import List

class Settings(BaseSettings):
    DATABASE_URL: str = "postgresql+asyncpg://poorav:poorav@localhost:5432/poorav"
    REDIS_URL: str = "redis://localhost:6379/0"
    SECRET_KEY: str = "change_me_in_production"
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 15
    REFRESH_TOKEN_EXPIRE_DAYS: int = 30
    CORS_ORIGINS: List[str] = ["http://localhost:3000", "https://platforms.pooravtech.in"]

    class Config:
        env_file = ".env"
        env_file_encoding = "utf-8"

settings = Settings()
