NutriScanTasks table
The NutriScanTasks table in the FitStack - V2 schema has 12 columns, keyed by Id, with 1 foreign key to NutriScanJobs.
One inference task per bounding-box category. The unique index makes retries idempotent. DbSet is named `ScanTasks`.
Columns (12)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| NutriScanJobId | uuid | not null, references NutriScanJobs.Id | |
| CorrelationId | uuid | not null | |
| Status | text | not null | |
| BoundingBoxCategory | text | not null | |
| ResultJson | jsonb | ||
| Error | character varying(1000) | ||
| CompletedAt | 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 (1)
(NutriScanJobId, BoundingBoxCategory)unique (IX_NutriScanTasks_NutriScanJobId_BoundingBoxCategory)
Relationships
NutriScanTasks.NutriScanJobIdreferencesNutriScanJobs.Id