NutriScanJobs table
The NutriScanJobs table in the FitStack - V2 schema has 18 columns, keyed by Id, with 2 foreign keys to ProductSessions and ProductImages. 1 column in NutriScanTasks references it.
Columns (18)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| CorrelationId | uuid | not null | |
| ProductCreationSessionId | uuid | not null, references ProductSessions.Id | |
| ProductImageId | uuid | not null, references ProductImages.Id | |
| Status | text | not null | `NutriScanStatus` as TEXT. |
| GcsImagePath | character varying(500) | not null | |
| PendingBarcodeTask | boolean | not null | |
| PendingIngredientsTask | boolean | not null | |
| PendingNutritionTask | boolean | not null | |
| PendingBrandingTask | boolean | not null | |
| CompletedAt | timestamp with time zone | ||
| ErrorMessage | character varying(1000) | ||
| RetryCount | integer | not null | |
| LastRetryTimestamp | timestamp with time zone | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (3)
(CorrelationId)(IX_NutriScanJobs_CorrelationId)(ProductCreationSessionId)(IX_NutriScanJobs_ProductCreationSessionId)(ProductImageId)(IX_NutriScanJobs_ProductImageId)
Relationships
NutriScanJobs.ProductCreationSessionIdreferencesProductSessions.IdNutriScanJobs.ProductImageIdreferencesProductImages.IdNutriScanTasks.NutriScanJobIdreferencesNutriScanJobs