{"id":22412457,"url":"https://github.com/tusharpamnani/dbms-lab-project","last_synced_at":"2025-09-16T18:27:54.575Z","repository":{"id":232543194,"uuid":"784593002","full_name":"tusharpamnani/DBMS-Lab-Project","owner":"tusharpamnani","description":"A mini project made for DBMS Lab. This implements the learnings of SQL ","archived":false,"fork":false,"pushed_at":"2024-05-11T15:38:30.000Z","size":7827,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T03:23:41.198Z","etag":null,"topics":["flask","project","sql"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tusharpamnani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-10T06:45:50.000Z","updated_at":"2024-05-11T15:38:33.000Z","dependencies_parsed_at":"2024-05-06T20:41:28.927Z","dependency_job_id":null,"html_url":"https://github.com/tusharpamnani/DBMS-Lab-Project","commit_stats":null,"previous_names":["tusharpamnani/dbms-lab-project"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tusharpamnani/DBMS-Lab-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FDBMS-Lab-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FDBMS-Lab-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FDBMS-Lab-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FDBMS-Lab-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tusharpamnani","download_url":"https://codeload.github.com/tusharpamnani/DBMS-Lab-Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharpamnani%2FDBMS-Lab-Project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275464646,"owners_count":25469881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","project","sql"],"created_at":"2024-12-05T14:08:55.023Z","updated_at":"2025-09-16T18:27:54.550Z","avatar_url":"https://github.com/tusharpamnani.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COVID Care Center Management Application\n\nThis Flask application facilitates the management of a COVID care center, enabling seamless registration, login, and bed booking functionalities for both patients and hospital staff.\n\n## Features:\n\n- **User Management:**\n  - Patients can register by providing their SRFID, email address, and date of birth.\n  - Hospital staff can register using their hospital code, email address, and password (hashed for security).\n  - Secure login mechanism for both patients and staff.\n- **Hospital Data Management:**\n  - Hospital staff can add, edit, and delete hospital information, including name and bed capacity (normal, HICU, ICU, ventilator).\n- **Patient Slot Booking:**\n  - Patients can search for available beds (normal, HICU, ICU, ventilator) across different hospitals.\n  - Patients can book a slot by specifying their SRFID, bed type, desired hospital (using the hospital code), and additional details (SPO2 level, name, phone number, address).\n  - The application updates hospital bed availability in real-time upon successful booking.\n\n## Dependencies:\n\n- Flask: A lightweight web framework for building Python web applications. ([https://flask.palletsprojects.com/](https://flask.palletsprojects.com/))\n- Flask-SQLAlchemy: Enables interaction with a relational database using SQLAlchemy. ([https://flask-sqlalchemy.palletsprojects.com/](https://flask-sqlalchemy.palletsprojects.com/))\n- Flask-Login: Implements user authentication functionalities for Flask applications. ([https://flask.palletsprojects.com/en/2.3.x/](https://flask.palletsprojects.com/en/2.3.x/))\n\n## Optional Dependencies: \n\n- Flask-Mail (for sending email notifications - not currently implemented)\n\n## Database:\n\nThe application leverages a MySQL database to store user information, hospital details, and patient bookings.\n\n## Getting Started:\n\n1. **Prerequisites:** Ensure you have Python and the required dependencies (Flask, Flask-SQLAlchemy, Flask-Login) installed.\n   - You can install them using `pip install Flask Flask-SQLAlchemy Flask-Login`.\n2. **Database Configuration:**\n   - Replace the placeholder connection details in the `app.config` section of `main.py` with your actual MySQL credentials (host, username, password, database name).\n3. **Run the Application:**\n   - Navigate to the application directory in your terminal and execute `flask run`. This will start the development server, and you can typically access the application at `http://127.0.0.1:5000/` (or the port specified in your configuration).\n\n## Additional Notes:\n\n- The provided code (`main.py`) includes comments to enhance readability and understanding.\n- Certain functionalities, such as email notifications, are commented out and require further configuration for activation.\n- Error handling and security measures can be further strengthened to ensure a robust application.\n\n## Database Schema (`covid.sql`):\n\nThe `covid.sql` script establishes the database structure for the application. Here's a breakdown of the tables:\n\n1. **user:** Stores patient data (SRFID, email, date of birth).\n2. **hospitaluser:** Manages hospital staff information (hospital code, email, hashed password).\n3. **hospitaldata:** Contains hospital details (code, name, bed capacity for normal, HICU, ICU, ventilator beds).\n4. **bookingpatient:** Tracks patient bed bookings (SRFID, bed type, hospital code, SPO2 level, patient name, phone number, address).\n5. **test:** Likely a temporary table used for testing purposes (contains names).\n6. **trig:** Stores triggers fired on insert, update, and delete operations on the `hospitaldata` table. It includes hospital code, bed capacity details, query type (INSERTED, UPDATED, DELETED), and timestamp.\n\nThese triggers maintain a log of hospital data modifications for auditing purposes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharpamnani%2Fdbms-lab-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftusharpamnani%2Fdbms-lab-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharpamnani%2Fdbms-lab-project/lists"}