Classes in this class diagram
- User — 3 members
- Instructor — 2 members
- Student — 2 members
- Course — 4 members
- Module — 2 members
- Lesson — 3 members
- Quiz — 2 members
- Enrollment — 3 members
How to use this class diagram template
- Click Open in the editor. The class diagram opens on a new page in FlowDiagram — nothing is uploaded and there is no sign-up.
- Rename, add or delete shapes and drag them where you want; connectors stay attached as things move.
- Drop in vendor logos from the library — 1,160 of them, including every AWS, Azure and Google Cloud service icon — or restyle it with the colour and theme controls.
- Prefer text? Edit the Mermaid source below and paste it in through ☰ → Import diagram (see the Mermaid editor); it imports as an editable diagram.
- Export to PNG, SVG or PDF, or press Ctrl+L for a link that carries the whole diagram.
Mermaid source
The whole template is the text below. Paste it into FlowDiagram, keep it in Git next to the code it describes, or hand it to an AI assistant to extend.
classDiagram
class User {
+String id
+String email
+String name
}
class Instructor {
+String bio
+publish(Course c) void
}
class Student {
+enrol(Course c) Enrollment
+progress(Course c) float
}
class Course {
+String code
+String title
+bool published
+addModule(Module m) void
}
class Module {
+String title
+int position
}
class Lesson {
+String title
+String videoUrl
+int minutes
}
class Quiz {
+int passMark
+grade(Submission s) int
}
class Enrollment {
+Date enrolledOn
+float completion
+issueCertificate() void
}
User <|-- Instructor
User <|-- Student
Instructor "1" --> "*" Course : teaches
Course "1" *-- "1..*" Module : contains
Module "1" *-- "*" Lesson : contains
Module "1" --> "0..1" Quiz : ends with
Student "1" --> "*" Enrollment : has
Enrollment "*" --> "1" Course : in
Related: Mermaid editor · All uml: sequence, class & state templates · All 521 templates