diff --git a/models/resources/data.go b/models/resources/data.go index ed5d761..967ec28 100644 --- a/models/resources/data.go +++ b/models/resources/data.go @@ -14,7 +14,7 @@ import ( * it defines the resource data */ type DataResource struct { - AbstractIntanciatedResource[*ResourceInstance[*DataResourcePartnership]] + AbstractIntanciatedResource[*DataInstance] Type string `bson:"type,omitempty" json:"type,omitempty"` Source string `json:"source,omitempty" bson:"source,omitempty"` // Source is the source of the resource Quality string `bson:"quality,omitempty" json:"quality,omitempty"` @@ -48,6 +48,11 @@ func (abs *DataResource) ConvertToPricedResource( } } +type DataInstance struct { + ResourceInstance[*DataResourcePartnership] + Source string `json:"source,omitempty" bson:"source,omitempty"` // Source is the source of the data +} + type DataResourcePartnership struct { ResourcePartnerShip[*DataResourcePricingProfile] MaxDownloadableGbAllowed float64 `json:"allowed_gb,omitempty" bson:"allowed_gb,omitempty"`