wiki:LogicalPhysicalDesign

Version 13 (modified by 221296, 5 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

  1. USER(User_ID, First_Name, Last_Name, Email, Password)
  1. Instructor (Instructor_ID, Bio, Expertise)
  1. Administrator (Admin_ID, Admin_Level)
  1. Category (Category_ID, Name, Description)
  1. Course (Course_ID, Name, Price, Status, Category_ID*(Category), Instructor_ID*(Instructor))
  1. Module (Module_id, Title, Description, Course_ID*(Course))
  1. Lesson (lesson_ID, TItle, Material, Module_id*(Module))
  1. Quiz (Quiz_ID, Total_points, Passing_score, lesson_ID*(Lesson))
  1. Enrollment (Enrollment_ID, Enroll_date, Completion_Status, Progress_percentage,User_id*(User),Course_ID*(Course))
  1. Certificate (Certificate_ID, Issue_date, Certificate_code, Status, Enrollment_id*(Enrollment))
  1. SupportTicket (Ticket_ID, Subject, Description, Status, Created_at, User_ID*(User), Admin_ID*(Administrator))
  1. SubscriptionPlan (Plan_ID, Name, Price, Duration_months, Description, Access_type
  1. UserSubscription(Subscription_ID, Start_date, End_date, Status, User_ID*(User), Plan_ID(SubscriptionPlan))
  1. Payment (Payment_ID, Amount, User_ID*(User), Subscription_ID(UserSubscription))
  1. QuizAttempt (Аttempt_ID, Attempt_date, Score,User_id*(User), Quiz_ID*(Quiz))

DDL script for creating and dropping database tables

OPLMS_DDL.sql

DML script for inserting data into database tables

OPLMS_DML.sql

Relational database diagram generated using DBeaver

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.