Skip to content

app.sponsor_assets

TableRow level security on

Brand assets a sponsor entitlement needs (Section 4.4.4 Sponsor: asset approvals): logo, artwork, copy or video, approved or returned by someone other than the uploader. Files ride on attachments.

Primary key: id

Columns of app.sponsor_assets
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.sponsor_entitlements on insert; never accepted from the caller and never changed.References app.organizations.id
sponsor_entitlement_iduuidNoEntitlement the asset is for.References app.sponsor_entitlements.id
asset_kindapp.sponsor_asset_kindNoKind of asset.
titletextNoWhat the asset is.
usage_notetextYesWhere and how the asset is used.
due_ondateYesWhen the asset is needed.
revisionintegerNoRevision number, raised on each resubmission after a return.
asset_stateapp.review_stateNoReview state. Changes only through app.transition_sponsor_asset.
decided_byuuidYesPerson who last approved or returned the asset.References app.people.id
decided_attimestamp with time zoneYesWhen it was last approved or returned.
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id