-
Notifications
You must be signed in to change notification settings - Fork 0
feat(profiles): add profile_assets as the canonical owned asset join #1064
Copy link
Copy link
Open
Description
Parent epic: #1063
Summary
Add profile_assets as the canonical owned asset join for Profile records.
This should cover people, organizations, and bots through the shared Profile primitive rather than splitting asset ownership across STI subclasses.
Why
Person,Organization, andBotare STI subclasses ofProfile- profile media is primitive-owned, not a generic/provenance association
- this keeps ownership aligned with the same rule as
content_assets
Scope
- add
ProfileAssetmodel withtableName: 'profile_assets' - add
ProfileAssetCollection - support
profileId,assetId,relationship,sortOrder, and tenant scoping as appropriate - add helpers on
Profile/ProfileCollectionfor attaching, listing, and removing assets - add tests and docs
Examples
avatarheadshotlogofor organization profiles- resume / portfolio assets
Done when
Profilehas a canonical owned asset join table- profile-owned media no longer requires generic
AssetAssociation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels