ProductVersions table

The ProductVersions table in the FitStack - V2 schema has 13 columns, keyed by Id, with 1 foreign key to Products.

Columns (13)

Columns of the ProductVersions table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
ProductIduuidnot null, references Products.Id
Versionintegernot null
ChangeReasoncharacter varying(500)not null
ChangedBycharacter varying(100)
Snapshotjsonbnot null
IsCurrentbooleannot null
DataSourcecharacter varying(40)not null
QualityTiertext
CreatedAttimestamp with time zonenot null
ModifiedAttimestamp with time zone
IsDeletedbooleannot null
DeletedAttimestamp with time zone

Indexes (2)

  • (ProductId, Version) unique (IX_ProductVersions_ProductId_Version)
  • (ProductId, IsCurrent) (IX_ProductVersions_ProductId_IsCurrent)

Relationships