ProductAnnotations table
The ProductAnnotations table in the FitStack - V2 schema has 13 columns, keyed by Id, with 3 foreign keys to Products and Users.
Human correction queue. Drives annotator pay via Users.PayRate (01).
Columns (13)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| ProductId | uuid | not null, references Products.Id | |
| AnnotatorUserId | character varying(450) | not null, references Users.Id | |
| ReviewedByUserId | character varying(450) | references Users.Id | |
| EditedAt | timestamp with time zone | not null | |
| FieldsChangedJson | jsonb | not null | |
| ReviewStatus | integer | not null | `AnnotationReviewStatus` — Pending 0, Verified 1, Rejected 2. Declared INLINE in ProductAnnotation.cs, not in Domain/Enums. |
| ReviewedAt | timestamp with time zone | ||
| RejectionNote | character varying(1000) | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (4)
(ProductId, EditedAt)(IX_ProductAnnotations_ProductId_EditedAt)(AnnotatorUserId, ReviewStatus)(IX_ProductAnnotations_AnnotatorUserId_ReviewStatus)(ReviewStatus, EditedAt)(IX_ProductAnnotations_ReviewStatus_EditedAt)(ReviewedByUserId)(IX_ProductAnnotations_ReviewedByUserId)
Relationships
ProductAnnotations.ProductIdreferencesProducts.IdProductAnnotations.AnnotatorUserIdreferencesUsers.IdProductAnnotations.ReviewedByUserIdreferencesUsers.Id