app.certification_shares
TableRow level security on
A person sharing one profile certification with an org, under a profile_sharing consent record (ADR 0019 carry-over). The org may record its own holder row from it; revoking stops further use and the org keeps only what it recorded.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Org the certification is shared with.References app.organizations.id |
| person_certification_id | uuid | No | Certification shared.References app.person_certifications.id |
| consent_record_id | uuid | No | Consent the person gave for the share.References app.consent_records.id |
| shared_at | timestamp with time zone | No | When it was shared. |
| revoked_at | timestamp with time zone | Yes | When the person revoked the share. |
| accepted_holder_id | uuid | Yes | Holder record the org created from the share; NULL until the org records it.References app.certification_holders.id |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Yes | Person who inserted the row, or null for a platform process. Set by the database.References app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Yes | Person who last changed the row, or null for a platform process. Set by the database.References app.people.id |