# `PhoenixKitEcommerce.ImportLog`
[🔗](https://github.com/BeamLabEU/phoenix_kit_ecommerce/blob/v0.1.8/lib/phoenix_kit_ecommerce/schemas/import_log.ex#L1)

ImportLog schema for tracking CSV import history.

## Fields

- `filename` - Original filename (required)
- `file_path` - Server path to uploaded file
- `status` - pending | processing | completed | failed
- `total_rows` - Total rows in CSV
- `processed_rows` - Rows processed so far
- `imported_count` - New products created
- `updated_count` - Existing products updated
- `skipped_count` - Products skipped (filtered)
- `error_count` - Products with errors
- `options` - Import options (JSONB)
- `error_details` - List of error objects
- `started_at` - Processing start time
- `completed_at` - Processing end time
- `user_uuid` - User who initiated import

# `complete_changeset`

Mark import as completed.

# `create_changeset`

Changeset for creating a new import log.

# `fail_changeset`

Mark import as failed.

# `finished?`

Check if import is finished (completed or failed).

# `in_progress?`

Check if import is in progress.

# `progress_changeset`

Update progress during import.

# `progress_percent`

Returns the percentage of completion.

# `start_changeset`

Mark import as started.

# `update_changeset`

Changeset for updating import log status and stats.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
