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

17 lines
733 B
Go
Raw Normal View History

2022-12-17 16:10:19 -07:00
package models
//this model is used by the Webserver (see RelatedResource for db model)
2022-12-17 16:10:19 -07:00
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"`
}