From 365a1d670ce4d197567f05cf720c6d98321c71c6 Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 23 Apr 2026 11:19:23 +0200 Subject: [PATCH] from_nano for booking --- models/booking/booking.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/models/booking/booking.go b/models/booking/booking.go index 785f5d9..758316d 100644 --- a/models/booking/booking.go +++ b/models/booking/booking.go @@ -13,8 +13,10 @@ import ( * Booking is a struct that represents a booking */ type Booking struct { - utils.AbstractObject // AbstractObject contains the basic fields of an object (id, name) - PricedItem map[string]interface{} `json:"priced_item,omitempty" bson:"priced_item,omitempty"` // We need to add the validate:"required" tag once the pricing feature is implemented, removed to avoid handling the error + utils.AbstractObject // AbstractObject contains the basic fields of an object (id, name) + + FromNano bool `json:"from_nano,omitempty" bson:"priced_item,omitempty"` + PricedItem map[string]interface{} `json:"priced_item,omitempty" bson:"priced_item,omitempty"` // We need to add the validate:"required" tag once the pricing feature is implemented, removed to avoid handling the error ResumeMetrics map[string]map[string]models.MetricResume `json:"resume_metrics,omitempty" bson:"resume_metrics,omitempty"` ExecutionMetrics map[string][]models.MetricsSnapshot `json:"metrics,omitempty" bson:"metrics,omitempty"`