projects
/
qomet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Start thinking about generalization format + parametrization
[qomet.git]
/
setup
/
database.js
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)
9
// assessments
10
// unique (cid, name)
11
// index (cid, name)
12
// db.assessments.createIndex( { cid: 1, name: 1 } );
13
// https://docs.mongodb.com/manual/core/index-compound/