app.import_job_sheets
TableRow level security on
Every sheet the worker found in an import's workbook (Section 4.6.2 step 2): its header row, data range and the target the worker proposes, so each sheet can be imported into its own target.
Primary key: id
| Column | Type | Nullable | Description |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.import_jobs on insert; never accepted from the caller and never changed.References app.organizations.id |
| import_job_id | uuid | No | Import whose workbook holds the sheet.References app.import_jobs.id |
| sheet_name | text | No | Sheet name as the workbook spells it. |
| sheet_index | smallint | No | Zero-based position of the sheet in the workbook. |
| header_row | integer | Yes | One-based row of the headers, or NULL for an empty sheet. |
| first_data_row | integer | Yes | First row with data below the headers, or NULL when there is none. |
| last_row | integer | Yes | Last row with any text. |
| column_count | integer | No | Columns in the header row. |
| data_row_count | integer | No | Non-blank rows below the headers. |
| proposed_target_code | text | Yes | Target the worker proposes for the sheet, or NULL when none fits.References private.import_targets.code |
| proposed_from_playbook | boolean | No | True when the proposal came from the Playbook sheet of the same name; false when it came from the headers. |
| 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. |