diff --git a/models/resources/resource.go b/models/resources/resource.go index b001059..7cb79b5 100755 --- a/models/resources/resource.go +++ b/models/resources/resource.go @@ -21,11 +21,11 @@ import ( type AbstractResource struct { utils.AbstractObject // AbstractObject contains the basic fields of an object (id, name) - Type string `json:"type,omitempty" bson:"type,omitempty"` // Type is the type of the resource - Logo string `json:"logo,omitempty" bson:"logo,omitempty" validate:"required"` // Logo is the logo of the resource - Description string `json:"description,omitempty" bson:"description,omitempty"` // Description is the description of the resource - ShortDescription string `json:"short_description,omitempty" bson:"short_description,omitempty" validate:"required"` // ShortDescription is the short description of the resource - Owners []utils.Owner `json:"owners,omitempty" bson:"owners,omitempty"` // Owners is the list of owners of the resource + Type string `json:"type,omitempty" bson:"type,omitempty"` // Type is the type of the resource + Logo string `json:"logo,omitempty" bson:"logo,omitempty"` // Logo is the logo of the resource + Description string `json:"description,omitempty" bson:"description,omitempty"` // Description is the description of the resource + ShortDescription string `json:"short_description,omitempty" bson:"short_description,omitempty"` // ShortDescription is the short description of the resource + Owners []utils.Owner `json:"owners,omitempty" bson:"owners,omitempty"` // Owners is the list of owners of the resource UsageRestrictions string `bson:"usage_restrictions,omitempty" json:"usage_restrictions,omitempty"` AllowedBookingModes map[booking.BookingMode]*pricing.PricingVariation `bson:"allowed_booking_modes" json:"allowed_booking_modes"` }