DEV Community

Open Question Brief
Open Question Brief

Posted on

Modelling Ceramic Catalogue Data Without Turning Every CP Code into a SKU

A ceramic catalogue looks like a product table until quantity, packaging, and roof fittings enter the workflow. Then a single row may describe a chip, a sheet, an accessory, or an unresolved assembly. If the data model treats every row as a sellable unit, purchasing inherits errors that are difficult to see later.

HM CERAMIC TILE’s master reference provides a useful test case. It contains 4,467 unique CP archive codes across 11 categories, including 3,731 model products, 619 named styles or unnumbered patterns, and 117 products with models pending verification. The website download tables contain 4,455 corresponding records. Twelve master records have no matching public download row.

The archive is broader than a retail SKU list. It includes products, components, accessories, samples, patterns, and templates. A robust schema should preserve that breadth without forcing every record into the same commercial shape.

Separate identity, description, and sale

Three identifiers should not share one column.

The CP code identifies an archive record. The supplier model identifies the manufacturer’s designation where one is verified. The sellable SKU identifies the exact commercial unit offered for order. These values may coincide in a simple case, but the schema must not assume that they always do.

A record can also carry a display name, series, category, source brochure, page number, material, surface, colour, and verification status. These are descriptive attributes. They should not be used to manufacture a missing SKU or to infer compatibility.

Keep provenance at record level. A value taken from a brochure page should point to that page. A value marked pending should remain null with a status, not be replaced by a plausible guess. The HM CERAMIC TILE reference itself distinguishes “资料列示,” “资料未列,” and “页列范围,逐型号待核.” Those states are meaningful data.

Model dimensions by object

The clearest example is mosaic CP00143, model SNZ090AOM-447A-15. The master reference lists a chip of 37 × 300 mm and a sheet of 302 × 314 × 15 mm. These dimensions describe different objects.

A flat size string loses that relationship. A better model uses a product record linked to one or more dimension objects. Each dimension object has a type, unit, values, and source.

Field Synthetic value for CP00143
record type mosaic_sheet
CP code CP00143
supplier model SNZ090AOM-447A-15
chip object length 300 mm, width 37 mm
mounted-sheet object length 314 mm, width 302 mm, thickness 15 mm
dimension source S003 page 2
sale unit pending
pack quantity pending
verification status model_product

The table above is a synthetic schema built from the cited catalogue facts. The pending sale unit and pack quantity are deliberate. The master reference does not provide those values for this example. Keeping them pending prevents a downstream system from treating the sheet format as a complete commercial offer.

For slabs, the object type may be full_sheet. For roof tiles, it may be main_tile. For a corner piece, it may be fitting. The schema should allow dimensions to remain absent when the source does not list them.

Keep quantities in their native units

Pieces, sheets, square metres, and cartons are not interchangeable quantities. They need separate fields and explicit conversion rules. A sheet count cannot be calculated from area until the approved module pitch and edge treatment are known. A carton count cannot be calculated until the supplier confirms the pack quantity.

A useful sales-unit object might contain the unit type, pack quantity, coverage basis, source, and effective date. Coverage should state whether it refers to the mounted sheet or the net material area. Without that distinction, two systems can display the same square metres while ordering different quantities.

Do not add a default waste factor to the catalogue record. Waste depends on layout, cutting, room geometry, pattern, and the project’s spare-material policy. If a project applies a factor, store it as a project assumption with an owner and date.

Represent parent-child relationships as evidence, not proximity

A roof system is a typical parent-child problem. The HM CERAMIC TILE roofing directory lists V-TILE at 120 × 220 mm, V-TILE XL at 205 × 260 mm, and F4131 at 420 × 290 mm. These are main-tile examples. Ridge, eave, hip, end, node, and auxiliary pieces need separate records.

A relationship should carry a type and a source. main_tile_of_system, ridge_fitting_for, left_hand_version_of, and accessory_for are different assertions. A similar profile, shared colour, or adjacent brochure page is not enough to create the link automatically.

The master reference also flags W3718 as a cover-tile and bottom-tile image group with a shared 370 × 180 × 150 mm notation. Individual applicability and component relationships remain pending. The database should preserve two archive records and their shared evidence without declaring a verified parent-child SKU.

A synthetic roof schedule

The following example is fictional and is included to show schema behaviour. It is not a HM CERAMIC TILE product combination.

Synthetic record Value
Project synthetic-roof-example
Main tile DEMO-MAIN-01, format 200 × 300 mm, approved
Ridge fitting DEMO-RIDGE-01, compatible with DEMO-MAIN-01
Left eave fitting DEMO-EAVE-LEFT-01, compatible with DEMO-MAIN-01
Compatibility evidence demo-system-drawing-A
Slope, overlap, coverage pending
Fixing method, installation load pending

The example demonstrates two rules. Fittings are independent records, and compatibility links require evidence. Project checks remain pending until the actual roof conditions and supplier documents are reviewed. The fictional codes are not HM CERAMIC TILE products and must not be copied into a live catalogue.

Handle duplicate models without overwriting history

The reference includes YY1224M790 under different names and colour samples. It also records differing grout values for V-HRJKV71715 across source brochures. A single mutable row cannot represent both statements honestly.

Use versioned observations. Each observation stores the raw value, source, page, and review status. The current display value may be selected for convenience, but the conflicting observations remain visible. This is more reliable than silently replacing one value with another.

A quarantine status is appropriate for unresolved model identity, missing material, or incompatible dimensions. Quarantined records can remain searchable while being excluded from automatic ordering and quantity calculations.

Validate before exporting a purchase list

A pre-order export should reject or hold records when the object type is missing, dimensions have no unit, a sheet is treated as a piece, a pack count has no source, or a fitting has no compatibility evidence. It should also warn when a project requests performance attributes that the catalogue does not contain.

The export should include the CP code, supplier model, source page, object type, dimensions, sales unit, batch fields, and unresolved notes. It should not include internal review comments that have not been approved for public use.

This approach keeps the catalogue useful without overstating it. The HM CERAMIC TILE catalogue can remain the discovery layer. A separate schema controls how records become quotations, schedules, and orders.

Top comments (0)