simple/update/course model

This commit is contained in:
SowinskiBraeden committed 2022-02-16 17:09:43 -08:00
1 parent c3993a76e0
commit 857981510a
1 file changed
+4 -3
+4 -3
View File
@@ -9,9 +9,10 @@ import (
type Course struct { type Course struct {
ID primitive.ObjectID `bson:"_id"` ID primitive.ObjectID `bson:"_id"`
Name string `json:"name" validate:"required"` Name string `json:"name" validate:"required"`
Description string `json:"description"` Code string `json:"code" validate:"required"` // Short string to identify each class
Grade_level int `json:"grade_level" validate:"required"` GradeLevel int `json:"gradelevel" validate:"required"`
Credits int `json:"credits" validate:"required"` Credits int `json:"credits" default:"4"`
TotalRequest int `json:"totalRequest" default:"0"` // Amount of requests for this course
Created_at time.Time `json:"created_at"` Created_at time.Time `json:"created_at"`
Updated_at time.Time `json:"updated_at"` Updated_at time.Time `json:"updated_at"`
} }