'update'
[qomet.git] / setup / database.js
CommitLineData
e99c53fb
BA
1// TODO: createCollections users, courses, assessments
2// with:
3// users
4// unique initials, email
5// index initials, email
6// courses
7// unique (code,uid)
8// index (code,uid)
a3080c33 9// evaluations
e99c53fb
BA
10// unique (cid, name)
11// index (cid, name)
a3080c33 12// db.evaluations.createIndex( { cid: 1, name: 1 } );
e99c53fb 13// https://docs.mongodb.com/manual/core/index-compound/