ImportLog schema for tracking CSV import history.
Fields
filename- Original filename (required)file_path- Server path to uploaded filestatus- pending | processing | completed | failedtotal_rows- Total rows in CSVprocessed_rows- Rows processed so farimported_count- New products createdupdated_count- Existing products updatedskipped_count- Products skipped (filtered)error_count- Products with errorsoptions- Import options (JSONB)error_details- List of error objectsstarted_at- Processing start timecompleted_at- Processing end timeuser_uuid- User who initiated import
Summary
Functions
Mark import as completed.
Changeset for creating a new import log.
Mark import as failed.
Check if import is finished (completed or failed).
Check if import is in progress.
Update progress during import.
Returns the percentage of completion.
Mark import as started.
Changeset for updating import log status and stats.
Functions
Mark import as completed.
Changeset for creating a new import log.
Mark import as failed.
Check if import is finished (completed or failed).
Check if import is in progress.
Update progress during import.
Returns the percentage of completion.
Mark import as started.
Changeset for updating import log status and stats.