19 lines
429 B
Python
19 lines
429 B
Python
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||
|
|
|
||
|
|
|
||
|
|
class Settings(BaseSettings):
|
||
|
|
"""Application configuration loaded from environment / .env."""
|
||
|
|
|
||
|
|
database_url: str = (
|
||
|
|
"postgresql+asyncpg://postgres:postgres@localhost:5432/operation_room"
|
||
|
|
)
|
||
|
|
|
||
|
|
model_config = SettingsConfigDict(
|
||
|
|
env_file=".env",
|
||
|
|
env_file_encoding="utf-8",
|
||
|
|
extra="ignore",
|
||
|
|
)
|
||
|
|
|
||
|
|
|
||
|
|
settings = Settings()
|