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)

Columns of the ProductImages table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
ImageIduuidnot null, references Media.Id
ProductIduuidreferences Products.Id
ImageHeightintegernot null
ImageWidthintegernot null
CorrelationIduuid
UploadStatusintegernot null`UploadStatus` — Pending, Uploading, Completed, Failed.
GcsObjectNametext
UploadExpiresAttimestamp with time zone
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (2)

  • (ImageId) unique (IX_ProductImages_ImageId)
  • (ProductId) (IX_ProductImages_ProductId)

Relationships