| Version 21 (modified by , 3 days ago) ( diff ) |
|---|
Relational Design for OPLMS
Notation
- Primary keys are bolded and underlined.
- Foreign keys are marked with
*at the end of their name and the referenced entity is written in parentheses. - Complex attributes are bolded, and their containing attributes are following the, made italic.
- Multivalued attributes have their own table
Tables
- USER(User_ID, First_Name, Last_Name, Email, Password)
- Instructor (Instructor_ID, Bio, Expertise)
- Administrator (Admin_ID, Admin_Level)
- Category (Category_ID, Name, Description)
- Course (Course_ID, Name, Price, Status, Category_ID*(Category), Instructor_ID*(Instructor))
- Module (Module_id, Title, Description, Course_ID*(Course))
- Lesson (lesson_ID, TItle, Material, Module_id*(Module))
- Quiz (Quiz_ID, Total_points, Passing_score, lesson_ID*(Lesson))
- Enrollment (Enrollment_ID, Enroll_date, Completion_Status, Progress_percentage,User_id*(User),Course_ID*(Course))
- Certificate (Certificate_ID, Issue_date, Certificate_code, Status, Enrollment_id*(Enrollment))
- SupportTicket (Ticket_ID, Subject, Description, Status, Created_at, User_ID*(User), Admin_ID*(Administrator))
- SubscriptionPlan (Plan_ID, Name, Price, Duration_months, Description, Access_type
- UserSubscription(Subscription_ID, Start_date, End_date, Status, User_ID*(User), Plan_ID(SubscriptionPlan))
- Payment (Payment_ID, Amount, User_ID*(User), Subscription_ID(UserSubscription))
- QuizAttempt (Аttempt_ID, Attempt_date, Score,User_id*(User), Quiz_ID*(Quiz))
DDL script for creating and dropping database tables
DML script for inserting data into database tables
Relational database diagram generated using DBeaver
Attachments (3)
- OPLMS--DML.sql (3.3 KB ) - added by 4 days ago.
- OPLMS-create-DDL.sql (3.7 KB ) - added by 3 days ago.
- OPLMS.png (240.5 KB ) - added by 3 days ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.

