2889816bcebd3e0619ff1fd24bff84c0c06f2224
[qomet.git] / setup / database.js
1 use qomet
2 db.createCollection("users")
3 db.createCollection("courses")
4 db.createCollection("evaluations")
5 db.users.createIndex({ initials: 1, email: 1 }, { unique: true } )
6 db.courses.createIndex({ code: 1, uid: 1 }, { unique: true } )
7 db.evaluations.createIndex({ cid: 1, name: 1 }, { unique: true } )