Skip to content

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

Columns of app.import_job_sheets
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.import_jobs on insert; never accepted from the caller and never changed.References app.organizations.id
import_job_iduuidNoImport whose workbook holds the sheet.References app.import_jobs.id
sheet_nametextNoSheet name as the workbook spells it.
sheet_indexsmallintNoZero-based position of the sheet in the workbook.
header_rowintegerYesOne-based row of the headers, or NULL for an empty sheet.
first_data_rowintegerYesFirst row with data below the headers, or NULL when there is none.
last_rowintegerYesLast row with any text.
column_countintegerNoColumns in the header row.
data_row_countintegerNoNon-blank rows below the headers.
proposed_target_codetextYesTarget the worker proposes for the sheet, or NULL when none fits.References private.import_targets.code
proposed_from_playbookbooleanNoTrue when the proposal came from the Playbook sheet of the same name; false when it came from the headers.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.