fix: update database URL to point to public directory

- Changed the SQLALCHEMY_DATABASE_URL to use the public directory for the SQLite database file, ensuring proper access and organization of database resources.
This commit is contained in:
Miu Li 2025-06-16 06:39:49 +08:00
parent e3b3b5a1f6
commit 7cb36eb1af

View File

@ -4,7 +4,7 @@ from sqlalchemy.orm import sessionmaker, relationship
from datetime import datetime, UTC
import json
SQLALCHEMY_DATABASE_URL = "sqlite:///./psychoscales.db"
SQLALCHEMY_DATABASE_URL = "sqlite:///./public/psychoscales.db"
engine = create_engine(
SQLALCHEMY_DATABASE_URL,