added admin verification for updating and creating functions

This commit is contained in:
SowinskiBraeden committed 2021-10-12 22:54:27 -07:00
1 parent b20e1f04c5
commit dea4654cb1
4 files changed
+475 -80

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
package models
import (
"go.mongodb.org/mongo-driver/bson/primitive"
)
type Id struct {
ID primitive.ObjectID `bson:"_id"`
CID string `bson:"cid"` // custom id for admin, teahcer or student
}