Commit 14df0059 authored by Max Richter's avatar Max Richter

feat(model): add bson annotation to Building struct

parent 7f03058a
......@@ -12,11 +12,11 @@ import (
// singleton for now
type Building struct {
ID primitive.ObjectID
OpeningHour time.Time
ClosingHour time.Time
Workdays []time.Weekday
Rooms []*Room
ID primitive.ObjectID `bson:"_id"`
OpeningHour time.Time `bson:"openingHours"`
ClosingHour time.Time `bson:"closingHours"`
Workdays []time.Weekday `bson:"workDays"`
Rooms []*Room `bson:"rooms"`
}
// New creates a new building.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment