title: Design a document database schema
body: <p>I'm vainly attempting to learn how to use object databases.  In database textbooks the tradition seems to be to use the example of keeping track of students, courses and classes because it is so familiar and applicable.  What would this example look like as an object database?  The relational database would look something like</p>
  
  <pre><code>Student
    ID
    Name
    Address
  
  Course
    ID
    Name
    PassingGrade
  
  Class
    ID
    CourseID
    Name
    StartTime
  
  StudentClass
    ID
    ClassID
    StudentID
    Grade
  </code></pre>
  
  <p>Would you keep StudentClasses inside of Classes which is, in turn, inside Course and then keep Student as a top level entity?  </p>
  
  <pre><code>Student
    ID
    Name
    Address
  
  Course
    ID
    Name
    Classes[]
      Name
      StartTime
      Students[]
        StudentID
  </code></pre>