feat(expenses): add transactional expense case events

This commit is contained in:
caoxiaozhu
2026-07-13 11:58:48 +08:00
parent 9a84e125d0
commit 661990b27b
21 changed files with 1973 additions and 63 deletions

View File

@@ -378,6 +378,12 @@ ensure_dependencies() {
info "Server dependencies are ready."
}
run_database_migrations() {
info "Applying database migrations..."
"$PYTHON_BIN" -m alembic -c "$SCRIPT_DIR/alembic.ini" upgrade head
info "Database migrations are up to date."
}
start_server() {
info "Starting FastAPI server..."
info "Access: http://$SERVER_HOST:$SERVER_PORT"
@@ -402,6 +408,7 @@ case "$MODE" in
;;
start)
ensure_dependencies
run_database_migrations
start_server
;;
*)