Barcodes table
The Barcodes table in the FitStack - V2 schema has 11 columns, keyed by Id, with 1 foreign key to Products.
Columns (11)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| ProductId | uuid | references Products.Id | |
| Code | character varying(50) | not null | |
| Type | character varying(20) | not null | `BarcodeType` as TEXT. |
| IsPrimary | boolean | not null | |
| Source | character varying(100) | ||
| Confidence | numeric(18,4) | ||
| CreatedAt | timestamp with time zone | not null | |
| ModifiedAt | timestamp with time zone | ||
| IsDeleted | boolean | not null | |
| DeletedAt | timestamp with time zone |
Indexes (2)
(Code, Type)(IX_Barcodes_Code_Type)(ProductId)(IX_Barcodes_ProductId)
Relationships
Barcodes.ProductIdreferencesProducts.Id