enroll controller + db connection
This commit is contained in:
1 parent
b069ee1aa2
commit
f8d006fe8b
12 files changed
+186
-48
No files matched your search
@@ -1,6 +1,10 @@
|
||||
package models
|
||||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
import (
|
||||
"time"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
)
|
||||
|
||||
type Teacher struct {
|
||||
ID primitive.ObjectID `bson:"_id"`
|
||||
@@ -17,4 +21,6 @@ type Teacher struct {
|
||||
PC string `json:"pc"` // Postal Code
|
||||
DOB string `json:"dob" validate:"required"`
|
||||
Photo string `json:"string"`
|
||||
Created_at time.Time `json:"created_at"`
|
||||
Updated_at time.Time `json:"updated_at"`
|
||||
}
|
||||
Reference in new issue
Block a user