app.integration_calendar_targets
TableRow level security on
Where a calendar connection syncs one kind of item: Meetings, Events or Shifts of the whole org (no project) or one project, into one provider calendar. Inbound changes move the XOS item's times; the conflict policy decides when both sides changed.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.integration_connections on insert; never accepted from the caller and never changed.References app.organizations.id |
| integration_connection_id | uuid | No | Calendar connection.References app.integration_connections.id |
| project_id | uuid | Yes | Project whose items sync, or NULL for every project of the org.References app.projects.id |
| sync_kind | app.calendar_sync_kind | No | Meeting, Event or Shift. |
| external_calendar_id | text | No | Provider calendar identifier. |
| direction | app.integration_sync_direction | No | Outbound (XOS to calendar), Inbound (calendar time changes into XOS) or Two Way. |
| conflict_policy | app.calendar_conflict_policy | No | XOS Wins, Provider Wins or Latest Wins when both sides changed. |
| 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 |