0fa30edb82
Resolve config/db.py (artifacts + ynab models) and regenerate the YNAB migration with aerich as 18 on top of main's 17_add_artifacts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
768 B
Python
30 lines
768 B
Python
import os
|
|
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
DATABASE_URL = os.getenv(
|
|
"DATABASE_URL", "postgres://raggr:raggr_dev_password@localhost:5432/raggr"
|
|
)
|
|
|
|
TORTOISE_CONFIG = {
|
|
"connections": {"default": DATABASE_URL},
|
|
"apps": {
|
|
"models": {
|
|
"models": [
|
|
"blueprints.conversation.models",
|
|
"blueprints.users.models",
|
|
"blueprints.email.models",
|
|
"blueprints.scheduled_messages.models",
|
|
"blueprints.cron.models",
|
|
"blueprints.beli.models",
|
|
"blueprints.artifacts.models",
|
|
"blueprints.ynab.models",
|
|
"aerich.models",
|
|
],
|
|
"default_connection": "default",
|
|
},
|
|
},
|
|
}
|