Enhance database schemas, API endpoints, and repository cleanup#35
Merged
ben-AI-cybersec merged 7 commits intoRedback-Operations:mainfrom Aug 22, 2025
Merged
Conversation
…e changes in profile.py
…changes in goals.py
…models and add new API modules; add *.db to .gitignore Once running, the backend will be available at: `http://localhost:5000` <<<<<<< HEAD The Environment used in the backend are available for reference in the .env.example file located inside the Backend folder. ======= >>>>>>> a0a7347 (Update README and app.py; remove old DB script and goals.db; improve models and add new API modules; add *.db to .gitignore)
test_vul.py is triggering bandit scan and is slowing down workflow. I have saved the file to my system as a backup.
The script and command to initialise database is redundant as we use flask for this project. Removing this step will increase clarity.
Forcing a new security scan
🔒 Security Scan Results✅ No critical security issues detected. The code has passed all critical security checks. |
ben-AI-cybersec
approved these changes
Aug 22, 2025
Member
ben-AI-cybersec
left a comment
There was a problem hiding this comment.
All changes look good to me
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added four new database schemas to support athlete activity data, tested with mock data.
Created a README in models/ with guidance on using a database inspection tool for troubleshooting.
Updated .gitignore to exclude all database files (*.db) to prevent accidental commits of test data.
Changed default local database filename to reflexionpro_backend.db for clarity, replacing the outdated goals.db.
Removed obsolete “Initialise Database” README step and deprecated standalone SQLite script under /scripts, as SQLAlchemy manages database setup within the app.
Implemented two new API endpoints for activity and body_insight tables, tested via Postman and integrated with the local database.
Verified frontend functionality by displaying a real-time mock VO₂ max value fetched dynamically from the database (local edits to frontend).