Attempt to resurrect qomet code - need some rewrite
[qomet.git] / setup / database.js
... / ...
CommitLineData
1use qomet
2db.createCollection("users")
3db.createCollection("courses")
4db.createCollection("evaluations")
5db.users.createIndex({ initials: 1, email: 1 }, { unique: true } )
6db.courses.createIndex({ code: 1, uid: 1 }, { unique: true } )
7db.evaluations.createIndex({ cid: 1, name: 1 }, { unique: true } )