update/student-locker-info

This commit is contained in:
SowinskiBraeden committed 2022-01-18 16:41:29 -08:00
1 parent 92ff358e3a
commit 1078b4f78a
3 files changed
+80 -5

No files matched your search

+6 -2
View File
@@ -2,6 +2,7 @@ package models
import (
"math/rand"
"school-management/database"
"strings"
"time"
"unicode"
@@ -9,8 +10,11 @@ import (
"golang.org/x/crypto/bcrypt"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
)
var lockerCollection *mongo.Collection = database.OpenCollection(database.Client, "lockers")
type Student struct {
ID primitive.ObjectID `bson:"_id"`
PersonalData struct {
@@ -32,8 +36,8 @@ type Student struct {
SID string `json:"sid"` // Student ID
PEN string `json:"ped"` // Personal Education Number
Homeroom string `json:"homeroom"`
Locker Locker `json:"locker"`
YOG int `json:"yog"` // Year of Graduation
Locker string `json:"locker"` // Locker ID
YOG int `json:"yog"` // Year of Graduation
Photo string `json:"photo"`
}
AccountData struct {