Skip to content
This repository has been archived by the owner on Mar 22, 2020. It is now read-only.

Latest commit

 

History

History
executable file
·
71 lines (54 loc) · 1.32 KB

schema.md

File metadata and controls

executable file
·
71 lines (54 loc) · 1.32 KB

📚 => collection/subcollection

📔 => document

📁 => array

property => defined in source material

property => computed by Cloud Functions

property => references another document

📚 catalog

  • 📔 MATH 2331
    • department
    • catalogNumber
    • description
    • cumulativeGPAmin
    • cumulativeGPAmax
    • cumulativeGPA
    • sectionCount
    • 📚 sections
      • 📔 201303-1 (generated)
        • term
        • termString
        • sectionNumber
        • instructorFirstName
        • instructorLastName
        • semesterGPA
        • A
        • B
        • C
        • D
        • F
        • Q
        • instructor
        • instructorTermGPAmin
        • instructorTermGPAmax
        • instructorTermGPA
          • average of other sections taught by prof this term
        • instructorTermSectionsTaught
          • number of other sections taught by prof this term
      • ...
  • 📔 COSC 1430
    • ...

📚 instructors

  • 📔 Lovelace, Ada
    • firstName
    • lastName
    • 📁 courses
      • catalog/MATH 2331
      • ...
    • 📁 sections
      • catalog/MATH 2331/sections/abcdef
      • ...
exports.computeSpecialFields = functions.firestore.document('catalog/{courseId}/sections/{sectionId}').onCreate((change, context) => {
    // do thing
})