app.saved_searches
TableRow level security on
A Gateway user's saved marketplace search (Section 4.4.3 discovery); alerts go out by email and push. Owned by the person, not by an org.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | Yes | The org whose white-label Gateway the search is limited to (Section 4.4.7); NULL searches the whole marketplace.References app.organizations.id |
| person_id | uuid | No | Person who saved the search.References app.people.id |
| name | text | No | Search name. |
| role_type | app.external_role_type | Yes | External role type filter. |
| role_code | text | Yes | Canon role filter.References xpms.role.role_code |
| cat_urid | text | Yes | Canon URID category filter.References xpms.dim_category.cat_urid |
| jurisdiction_id | text | Yes | Jurisdiction filter, including those beneath it.References xpms.jurisdiction.jurisdiction_id |
| starts_after | date | Yes | Earliest start date. |
| ends_before | date | Yes | Latest end date. |
| min_rate_minor | bigint | Yes | Minimum posted pay in minor units. |
| currency_code | character(3) | Yes | Currency of the minimum pay.References private.currencies.currency_code |
| alerts_enabled | boolean | No | True when matches send alerts. |
| 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 |
| query_text | text | Yes | Words matched against the listing title and description; NULL matches every listing. |
| disc_code | text | Yes | Canon discipline filter: listings whose category belongs to this discipline (A89).References xpms.dim_discipline.disc_code |
| certification_name | text | Yes | Required certification filter: listings with a certification requirement of this name, ignoring case (A89). |
| near_label | text | Yes | Name of the place the distance filter measures from, as the person chose it. |
| near_latitude | double precision | Yes | Latitude in WGS 84 degrees of the place the distance filter measures from. |
| near_longitude | double precision | Yes | Longitude in WGS 84 degrees of the place the distance filter measures from. |
| radius_km | numeric(6,1) | Yes | Distance filter radius in kilometers, up to 500; a listing whose venue is not located never matches it. |