Skip to content

app.asset_custody

TableRow level security on

Append-only custody ledger: each row hands an asset unit to a person or place, optionally for a project. The current custodian is the latest row.

Primary key: id

Columns of app.asset_custody
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.asset_units on insert; never accepted from the caller and never changed.References app.organizations.id
asset_unit_iduuidNoAsset unit.References app.asset_units.id
custodian_membership_iduuidYesMember who holds the asset.References app.memberships.id
project_iduuidYesProject the asset is out for.References app.projects.id
venue_iduuidYesPlace the asset is kept.References app.venues.id
notetextYesHandover note.
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
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
custodian_engagement_iduuidYesExternal engagement (crew, staff, vendor) that holds the asset. Never set together with custodian_membership_id.References app.engagements.id