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

feat(model): add bson annotation to Building struct

parent 7f03058a
...@@ -12,11 +12,11 @@ import ( ...@@ -12,11 +12,11 @@ import (
// singleton for now // singleton for now
type Building struct { type Building struct {
ID primitive.ObjectID ID primitive.ObjectID `bson:"_id"`
OpeningHour time.Time OpeningHour time.Time `bson:"openingHours"`
ClosingHour time.Time ClosingHour time.Time `bson:"closingHours"`
Workdays []time.Weekday Workdays []time.Weekday `bson:"workDays"`
Rooms []*Room Rooms []*Room `bson:"rooms"`
} }
// New creates a new building. // 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