feat: enhance revision logic with fuzzy matching, dynamic material loading, and schema automation

- Improved RevisionComparator with fuzzy matching (RapidFuzz) and dynamic DB material loading
- Enhanced regex patterns for better size/material extraction
- Initialized Alembic for schema migrations and created baseline migration
- Added entrypoint.sh for automated migrations in Docker
- Fixed SyntaxError in fitting_classifier.py
- Updated test suite with new functionality tests
This commit is contained in:
Hyungi Ahn
2026-01-09 09:36:40 +09:00
parent afea8428b2
commit f16bc662ad
11 changed files with 1575 additions and 76 deletions

13
backend/entrypoint.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -e
# Wait for DB to be ready (optional, but good practice if not handled by docker-compose)
# /wait-for-it.sh db:5432 --
# Run migrations
echo "Running database migrations..."
alembic upgrade head
# Start application
echo "Starting application..."
exec "$@"