Minor updates and comments
This commit is contained in:
1 parent
ff65d9eadc
commit
0a95f847d4
5 files changed
+14
-3
No files matched your search
@@ -4,6 +4,16 @@ import (
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
/*
|
||||
This is a stupid Idea but in the cids collection
|
||||
is a list of all id's (student id's [sid], teacher
|
||||
id's [tid], or admin id's [aid]) this way when
|
||||
generating a new id for a new user, only the cids
|
||||
collection has to be searched to see the id is
|
||||
already in use. Rather than looking in the admin,
|
||||
teacher, and student collections to check an id.
|
||||
*/
|
||||
|
||||
type Id struct {
|
||||
ID primitive.ObjectID `bson:"_id"`
|
||||
CID string `bson:"cid"` // custom id for admin, teahcer or student
|
||||
|
||||
Reference in new issue
Block a user