ProductImages table
The ProductImages table in the FitStack - V2 schema has 13 columns, keyed by Id, with 2 foreign keys to Media and Products. 3 columns in BoundingBoxes, NutriScanJobs and DatasetImages reference it.
Columns (13)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| ImageId | uuid | not null, references Media.Id | |
| ProductId | uuid | references Products.Id | |
| ImageHeight | integer | not null | |
| ImageWidth | integer | not null | |
| CorrelationId | uuid | ||
| UploadStatus | integer | not null | `UploadStatus` — Pending, Uploading, Completed, Failed. |
| GcsObjectName | text | ||
| UploadExpiresAt | 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 (2)
(ImageId)unique (IX_ProductImages_ImageId)(ProductId)(IX_ProductImages_ProductId)
Relationships
ProductImages.ImageIdreferencesMedia.IdProductImages.ProductIdreferencesProducts.IdBoundingBoxes.ProductImageIdreferencesProductImagesNutriScanJobs.ProductImageIdreferencesProductImagesDatasetImages.ProductImageIdreferencesProductImages