app.person_calendar_feeds
TableRow level security on
A person's own iCalendar feed across every org they work with through an engagement (Section 4.5.8 Work, Upcoming; Section 4.6.5): their published shifts and the meetings, milestones and deadlines shared with them, read through the api_external projections. Only a SHA-256 hash of the token is kept; the token is shown once and can be rotated or revoked.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| person_id | uuid | No | Person who owns the feed; it shows what Gateway shows them.References app.people.id |
| token_hash | bytea | No | SHA-256 of the feed token. |
| token_hint | text | No | Last four characters of the token, to tell feeds apart. |
| last_accessed_at | timestamp with time zone | Yes | Last time a calendar fetched the feed. |
| rotated_at | timestamp with time zone | Yes | When the token was last replaced; the previous token stopped working then. |
| revoked_at | timestamp with time zone | Yes | When the feed was revoked; a revoked feed serves nothing and never comes back. |
| 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 |
| deleted_at | timestamp with time zone | Yes | Soft delete time. A row with deleted_at set is ignored by every access helper. |