fasten-onprem/backend/pkg/models/resource_association.go

17 lines
733 B
Go

package models
//this model is used by the Webserver (see RelatedResource for db model)
type ResourceAssociation struct {
SourceID string `json:"source_id"`
SourceResourceType string `json:"source_resource_type"`
SourceResourceID string `json:"source_resource_id"`
OldRelatedSourceID string `json:"old_related_source_id"`
OldRelatedSourceResourceType string `json:"old_related_source_resource_type"`
OldRelatedSourceResourceID string `json:"old_related_source_resource_id"`
NewRelatedSourceID string `json:"new_related_source_id"`
NewRelatedSourceResourceType string `json:"new_related_source_resource_type"`
NewRelatedSourceResourceID string `json:"new_related_source_resource_id"`
}