Learning Activity: Make a data model for a college enrollment system.
Here's an example specification for creating a managed object model for a College Enrollment System with entities for students, classes, and enrollments:
1. Entity: Student
- Attributes:
- studentID: Integer (Unique identifier for each student)
- firstName: String (First name of the student)
- lastName: String (Last name of the student)
- dateOfBirth: Date (Date of birth of the student)
- email: String (Email address of the student)
- Relationships:
- enrollments (One-to-Many relationship with Enrollment entity; each student can have multiple enrollments in different classes)
2. Entity: Class
- Attributes:
- classID: Integer (Unique identifier for each class)
- className: String (Name/Title of the class)
- professor: String (Name of the professor teaching the class)
- room: String (Room number where the class takes place)
- Relationships:
- enrollments (One-to-Many relationship with Enrollment entity; each class can have multiple enrollments)
3. Entity: Enrollment
- Attributes:
- enrollmentID: Integer (Unique identifier for each enrollment)
- Relationships:
- student (One-to-One relationship with Student entity; each enrollment is associated with one student)
- class (One-to-One relationship with Class entity; each enrollment is associated with one class)
With this managed object model, you can represent the structure and relationships between students, classes, and enrollments in your College Enrollment System. This model allows you to store and retrieve data about students, classes, and the enrollments of students into classes.
The specific attributes and relationships can be customized based on the requirements of your system.