2022-12-21 20:51:02 -07:00
|
|
|
package models
|
|
|
|
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
|
|
|
|
//this model is used by the DB (see ResourceAssociation for web model)
|
|
|
|
type RelatedResource struct {
|
2023-07-08 08:43:30 -06:00
|
|
|
ResourceBaseUserID uuid.UUID `gorm:"resource_base_user_id"`
|
|
|
|
ResourceBaseSourceID uuid.UUID `gorm:"resource_base_source_id"`
|
|
|
|
ResourceBaseSourceResourceType string `gorm:"resource_base_source_resource_type"`
|
|
|
|
ResourceBaseSourceResourceID string `gorm:"resource_base_source_resource_id"`
|
2022-12-21 20:51:02 -07:00
|
|
|
|
2023-07-08 08:43:30 -06:00
|
|
|
RelatedResourceUserID uuid.UUID `gorm:"related_resource_user_id"`
|
|
|
|
RelatedResourceSourceID uuid.UUID `gorm:"related_resource_source_id"`
|
|
|
|
RelatedResourceSourceResourceType string `gorm:"related_resource_source_resource_type"`
|
|
|
|
RelatedResourceSourceResourceID string `gorm:"related_resource_source_resource_id"`
|
2022-12-21 20:51:02 -07:00
|
|
|
}
|