uprm-inso4101-2024-2025-s1 / semester-project-regiupr

semester-project-regiupr created by GitHub Classroom
7 stars 1 forks source link

Implementation of the Students and Student Courses Tables in the Database #25

Closed J3SSY-ANDU closed 1 month ago

J3SSY-ANDU commented 1 month ago

Objective: Implement the students and student_courses tables from the provided schema in the database. The implementation should ensure proper integration with the rest of the database schema and provide support for CRUD (Create, Read, Update, Delete) operations using Python.

Description: This task involves implementing the students and student_courses tables as shown in the provided database schema. The students table will store student information such as student_id, name, email, birthdate, and other personal details, while the student_courses table will handle the many-to-many relationship between students and courses. This table will link students to specific courses and sections with an additional status field to track their enrollment status. The implementation should include setting up both tables in the database and ensuring that they integrate well with existing tables.

Furthermore, Python scripts will be implemented to facilitate CRUD operations (Create, Read, Update, Delete) for these two tables.

Requirements:

Set up the students table with the following fields:

Implement basic CRUD operations using Python scripts to interact with both tables:

Time Constraints: This task will begin on Monday, Sept. 9, and should be completed by Wednesday, Sept. 11.

Completion Criteria:

  1. The students and student_courses tables are successfully set up in the database with all fields and relationships correctly configured.
  2. Python scripts for CRUD operations are fully functional and tested.
  3. Documentation of the setup process, table relationships, and the CRUD operations is provided.

Difficulty: 4 - The task involves moderate complexity due to table relationships and secure handling of sensitive data.

Priority: 8 - This task is important for student data management and future integration within the project.

Recommended Assignees: 1x Developer to handle the database setup and the Python CRUD implementation.

J3SSY-ANDU commented 1 month ago

CRUD Functions for Students and Student_Courses Tables

I have implemented the CRUD (Create, Read, Update, Delete) functions for both the students and student_courses tables using the MySQL Connector/Python library. The connection to the MySQL database is managed via a .ini configuration file using the ConfigParser module, ensuring secure handling of credentials.

Additionally, I’ve added a comprehensive tester to validate each CRUD operation on both tables to ensure correct functionality and data integrity.

Let me know if any adjustments are needed.

nelson-escalona commented 1 month ago

Pulled code into local machine and checked functions. Looks good to me. Great work @J3SSY-ANDU