DOCS / DATA-CATALOGUE

Data catalogue

Every table and view in the warehouse, as DuckDB describes them, with the comments crates/warehouse/schema.sql gives them. Generated by cargo run -p tentzhen-warehouse -- catalogue; the test the_catalogue_is_current fails when this file differs from what that would write. Change the schema, not this file.

Lineage

crates/warehouse loads bronze and silver from the records. An arrow runs from what is read to what reads it: a view's SQL, or a crate's source.

flowchart LR
  subgraph bronze
    bronze_record["bronze.record"]
    bronze_record_hash["bronze.record_hash"]
  end
  subgraph silver
    silver_part["silver.part"]
    silver_build_version["silver.build_version"]
    silver_line["silver.line"]
    silver_uses["silver.uses"]
    silver_firmware["silver.firmware"]
    silver_pin["silver.pin"]
    silver_step["silver.step"]
    silver_trusted_entry["silver.trusted_entry"]
    silver_claim["silver.claim"]
    silver_claim_value["silver.claim_value"]
    silver_lab_limit["silver.lab_limit"]
    silver_lab_limit_input["silver.lab_limit_input"]
    silver_lab_limit_rests_on["silver.lab_limit_rests_on"]
    silver_lab_limit_at_most["silver.lab_limit_at_most"]
    silver_lab_target["silver.lab_target"]
    silver_lab_log_entry["silver.lab_log_entry"]
    silver_lab_log_value["silver.lab_log_value"]
    silver_measurement["silver.measurement"]
    silver_measurement_device["silver.measurement_device"]
    silver_measurement_tool["silver.measurement_tool"]
    silver_measurement_value["silver.measurement_value"]
    silver_sourcing["silver.sourcing"]
    silver_fab_row["silver.fab_row"]
    silver_fab_side["silver.fab_side"]
    silver_fab_route_with["silver.fab_route_with"]
    silver_referent["silver.referent"]
  end
  subgraph gold
    gold_latest["gold.latest"]
    gold_claim_grades["gold.claim_grades"]
    gold_claim_values["gold.claim_values"]
    gold_grade_coverage["gold.grade_coverage"]
    gold_build_tree["gold.build_tree"]
    gold_bom_exploded["gold.bom_exploded"]
    gold_where_used["gold.where_used"]
    gold_bench["gold.bench"]
    gold_bench_line["gold.bench_line"]
    gold_sourcing_status["gold.sourcing_status"]
    gold_limit_grades["gold.limit_grades"]
    gold_page["gold.page"]
    gold_page_line["gold.page_line"]
    gold_page_uses["gold.page_uses"]
    gold_page_used_in["gold.page_used_in"]
    gold_page_firmware["gold.page_firmware"]
    gold_page_pin["gold.page_pin"]
    gold_page_step["gold.page_step"]
    gold_page_parts["gold.page_parts"]
    gold_page_parts_used_in["gold.page_parts_used_in"]
    gold_page_fab["gold.page_fab"]
    gold_legal["gold.legal"]
    gold_doc["gold.doc"]
    gold_doc_image["gold.doc_image"]
  end
  bronze -. crates/warehouse .-> silver
  bronze_record --> bronze_record_hash
  silver_build_version --> gold_latest
  silver_claim --> gold_claim_grades
  silver_referent --> gold_claim_grades
  silver_claim_value --> gold_claim_values
  gold_claim_grades --> gold_grade_coverage
  silver_build_version --> gold_build_tree
  silver_uses --> gold_build_tree
  gold_build_tree --> gold_bom_exploded
  silver_line --> gold_bom_exploded
  gold_bom_exploded --> gold_where_used
  gold_latest --> gold_bench
  silver_uses --> gold_bench
  gold_bench --> gold_bench_line
  gold_build_tree --> gold_bench_line
  silver_line --> gold_bench_line
  silver_lab_log_entry --> gold_sourcing_status
  silver_measurement --> gold_sourcing_status
  silver_sourcing --> gold_sourcing_status
  gold_claim_grades --> gold_limit_grades
  silver_lab_limit --> gold_limit_grades
  silver_lab_limit_input --> gold_limit_grades
  silver_lab_limit_rests_on --> gold_limit_grades
  bronze_record --> gold_page
  bronze_record_hash --> gold_page
  gold_latest --> gold_page
  silver_build_version --> gold_page
  silver_line --> gold_page_line
  silver_part --> gold_page_line
  silver_uses --> gold_page_uses
  silver_uses --> gold_page_used_in
  silver_firmware --> gold_page_firmware
  silver_pin --> gold_page_pin
  silver_step --> gold_page_step
  gold_bench_line --> gold_page_parts
  gold_sourcing_status --> gold_page_parts
  silver_part --> gold_page_parts
  gold_bench_line --> gold_page_parts_used_in
  silver_fab_route_with --> gold_page_fab
  silver_fab_row --> gold_page_fab
  silver_fab_side --> gold_page_fab
  bronze_record --> gold_legal
  bronze_record --> gold_doc
  bronze_record --> gold_doc_image
  crates_records(["crates/records"])
  gold_page_fab --> crates_records
  crates_site(["crates/site"])
  gold_claim_grades --> crates_site
  gold_claim_values --> crates_site
  gold_page --> crates_site
  gold_page_line --> crates_site
  gold_page_uses --> crates_site
  gold_page_used_in --> crates_site
  gold_page_firmware --> crates_site
  gold_page_pin --> crates_site
  gold_page_step --> crates_site
  gold_page_parts --> crates_site
  gold_page_parts_used_in --> crates_site
  gold_page_fab --> crates_site
  gold_legal --> crates_site
  gold_doc --> crates_site
  gold_doc_image --> crates_site

bronze

bronze.record (table)

Every file the loader read, exactly as read: records, drawings, site documents, the lab's limits, the lab-target list, the lab log and measurement records.

columntypenullabout
pathVARCHARnoThe file's path, relative to the repo root.
bodyVARCHARno

Constraints:

Read by: bronze.record_hash, gold.page, gold.legal, gold.doc, gold.doc_image.

bronze.record_hash (view)

Lineage: the sha256 of each file's text.

columntype
pathVARCHAR
sha256VARCHAR

Reads: bronze.record.

Read by: gold.page.

silver

silver.part (table)

Each part record in parts/.

columntypenullabout
partVARCHARno
kindVARCHARno
whatVARCHARnoThe record's is: what the part is.
authorized_onlyBOOLEANno
datasheetVARCHARyes
recordVARCHARnoThe file in bronze.record this row came from.

Constraints:

Read by: gold.page_line, gold.page_parts.

silver.build_version (table)

Each version of each build, from builds//v.toml.

columntypenullabout
buildVARCHARno
versionINTEGERno
statusVARCHARno
doesVARCHARno
changesVARCHARyes
drawingVARCHARyes
never_a_lab_targetVARCHARyesWhy no board of this build, or of a build that uses it, may be a lab target; NULL if it may. crates/records refuses such a target; the database does not.
recordVARCHARnoThe file in bronze.record this row came from.

Constraints:

Read by: gold.latest, gold.build_tree, gold.page.

silver.line (table)

A build version's bill of materials: a part or a commodity on each line, and how many.

columntypenullabout
buildVARCHARno
versionINTEGERno
line_noINTEGERno
partVARCHARyes
commodityVARCHARyes
formVARCHARyes
classVARCHARnoThe letter a schematic labels the thing with (R resistor, U integrated circuit, A a board or module), as crates/records lists them. crates/records holds that one thing has one class in every build version that writes it; the database does not.
qtyINTEGERno

Constraints:

Read by: gold.bom_exploded, gold.bench_line, gold.page_line.

silver.uses (table)

Another build version a build version is made from, and how many.

columntypenullabout
buildVARCHARno
versionINTEGERno
uses_noINTEGERno
uses_buildVARCHARno
uses_versionINTEGERno
qtyINTEGERno

Constraints:

Read by: gold.build_tree, gold.bench, gold.page_uses, gold.page_used_in.

silver.firmware (table)

The firmware a build version runs, pinned by its sha256.

columntypenullabout
buildVARCHARno
versionINTEGERno
nameVARCHARno
licenseVARCHARno
sourceVARCHARno
releaseVARCHARno
fileVARCHARno
sha256VARCHARno
pin_mapVARCHARyes

Constraints:

Read by: gold.page_firmware.

silver.pin (table)

A build version's pin assignments.

columntypenullabout
buildVARCHARno
versionINTEGERno
pin_noINTEGERno
nameVARCHARno
board_pinINTEGERno
netVARCHARno
requiredBOOLEANno

Constraints:

Read by: gold.page_pin.

silver.step (table)

A build version's steps, in order.

columntypenullabout
buildVARCHARno
versionINTEGERno
step_noINTEGERno
instructionVARCHARnoThe record's do.
runVARCHARyes
expectVARCHARyes
agentVARCHARyes

Constraints:

Read by: gold.page_step.

silver.trusted_entry (table)

The trusted base, from trusted-base.toml: what is assumed, not shown. A trusted referent names an entry by its id.

columntypenullabout
entryVARCHARnoIts id.
entry_noINTEGERnoIts place in the file, from 1.
assumesVARCHARno
recordVARCHARnoThe file in bronze.record this row came from.

Constraints:

silver.claim (table)

What a part or a build version claims. Its grades come from its referents, never typed.

columntypenullabout
claimVARCHARnoHow it is cited: #, or /v#.
partVARCHARyes
buildVARCHARyes
versionINTEGERyes
claim_noINTEGERnoIts place in its record, from 1.
idVARCHARno
saysVARCHARno

Constraints:

Read by: gold.claim_grades.

silver.claim_value (table)

The numbers a claim states.

columntypenullabout
claimVARCHARno
nameVARCHARnoEnds in its unit: min_volts, input_ratio.
amountDOUBLEno

Constraints:

Read by: gold.claim_values.

silver.lab_limit (table)

Each limit and its basis: a person's decision (policy), a copy of another value (same_as), or a rule in crates/lab (rule).

columntypenullabout
pathVARCHARnoWhere the value sits in the file, as table.key.
amountDOUBLEyes
unitVARCHARyes
choiceVARCHARyes
basisVARCHARno
policyVARCHARyes
ruleVARCHARyes
recordVARCHARnoThe file in bronze.record this row came from.

Constraints:

Read by: gold.limit_grades.

silver.lab_limit_input (table)

The values each limit comes from: the original it copies, or its rule's inputs.

columntypenullabout
pathVARCHARno
inputVARCHARno

Constraints:

Read by: gold.limit_grades.

silver.lab_limit_rests_on (table)

The claims a limit relies on to do its job.

columntypenullabout
pathVARCHARno
claimVARCHARno

Constraints:

Read by: gold.limit_grades.

silver.lab_limit_at_most (table)

A number a limit may not exceed: a value of a claim it rests on. crates/lab holds the limit to it.

columntypenullabout
pathVARCHARno
claimVARCHARno
nameVARCHARnoThe claim's value, in silver.claim_value.

Constraints:

silver.lab_target (table)

Each board an agent may flash without asking first: one physical board, a part or a build version. crates/records holds each flash in the lab log to it.

columntypenullabout
targetVARCHARnoIts id, written on a label on the board.
partVARCHARyes
buildVARCHARyes
versionINTEGERyes
serialVARCHARnoThe serial the board reports, which no other target's is.
listedDATEnoThe first UTC day it may be flashed.
approved_byVARCHARnoOn whose decision it was listed: a person's, as person:. The writer's word.
retiredDATEyesThe UTC day it stops being a target, once it has.
recordVARCHARnoThe file in bronze.record this row came from.

Constraints:

silver.lab_log_entry (table)

Each hardware action in the lab log, numbered in the log's order. Each entry names the sha256 of the line before it.

columntypenullabout
seqINTEGERnoIts place in the log, from 1.
logged_atTIMESTAMPnoThe entry's at, in UTC.
by_kindVARCHARnoWho acted, from the entry's by: a person or an agent.
by_nameVARCHARno
whatVARCHARnoThe action, such as supply.set.
limits_sha256VARCHARnoThe sha256 of lab/limits.toml as the host read it when the entry was written. Nothing checks that it names a version of that file.
sha256VARCHARnoThe sha256 of the entry's line, which the next entry names as its prev.
prevVARCHARyesThe sha256 of the line before it; NULL only for the first entry. Unique, so the log cannot fork.
recordVARCHARnoThe file in bronze.record this row came from.

Constraints:

Read by: gold.sourcing_status.

silver.lab_log_value (table)

What each action was asked to do (params) and what happened (result): each a number, a word or a yes/no.

columntypenullabout
seqINTEGERno
sideVARCHARno
nameVARCHARnoA number's name ends in its unit: set_volts.
amountDOUBLEyes
textVARCHARyes
flagBOOLEANyes

Constraints:

silver.measurement (table)

Each measurement record: one experiment on the bench, and the lab-log entries it came from. A claim's record referent names one.

columntypenullabout
measurementVARCHARnoIts id, the file's name: -, the UTC day of its first log entry.
measuresVARCHARnoWhat was measured.
setupVARCHARnoHow it was wired and set.
log_firstVARCHARnoIts first lab-log entry, by the sha256 of its line.
log_lastVARCHARnoIts last lab-log entry, by the sha256 of its line. crates/records holds it at or after the first.
recordVARCHARnoThe file in bronze.record this row came from.

Constraints:

Read by: gold.sourcing_status.

silver.measurement_device (table)

What each experiment measured (device) and what read it (meter): a part or a build version, with the hashes of the code it ran.

columntypenullabout
measurementVARCHARno
roleVARCHARno
device_noINTEGERnoIts place among the record's devices, or its meters, from 1.
partVARCHARyes
buildVARCHARyes
versionINTEGERyes
revisionVARCHARyesA part's hardware revision, as marked on it. A build's is its version.
firmware_sha256VARCHARyes
gateware_sha256VARCHARyes
accuracyVARCHARyesA meter's: the claim on its own record that gives its accuracy.

Constraints:

silver.measurement_tool (table)

The tools each experiment used, and their versions.

columntypenullabout
measurementVARCHARno
toolVARCHARno
versionVARCHARno

Constraints:

silver.measurement_value (table)

What each experiment found: each a number, a word or a yes/no.

columntypenullabout
measurementVARCHARno
nameVARCHARnoA number's name ends in its unit: input_volts. A raw ADC code, input_codes, sits beside the value converted from it; crates/records holds that.
amountDOUBLEyes
textVARCHARyes
flagBOOLEANyes

Constraints:

silver.sourcing (table)

Where the lab buys each thing its builds need, and which stages it has reached, each on the UTC day in its _on column when the file gives one. A thing with no row, or a row that has reached no stage, is specced.

columntypenullabout
line_noINTEGERnoIts place in the file, from 1.
partVARCHARyes
formVARCHARyes
commodityVARCHARyes
shopVARCHARyes
storeVARCHARyesThe seller, as the listing names it, or, with no shop, its own name: a store in town, a thrift store, a person.
itemVARCHARyesThe shop's item number: on Amazon the ASIN, on LCSC the C number. crates/records holds its shape.
usedBOOLEANnoBought secondhand.
salvaged_fromVARCHARyesThe device a part was taken out of; used, and with no shop.
authorizedVARCHARyesWhere the maker lists the seller as an authorized distributor, or that the maker sold it itself, and when: a seller's, for a part sold new. crates/records holds that a part sold by authorized sellers only, or whose claims rest on maker-datasheets, gives it once a source or a stage is written.
listing_checkedBOOLEANnoA person checked the listing against the build.
in_cartBOOLEANno
orderedBOOLEANno
arrivedBOOLEANno
listing_checked_onDATEyes
in_cart_onDATEyes
ordered_onDATEyes
arrived_onDATEyes
passed_qaVARCHARyesThe measurement record of the incoming QA it passed. crates/records holds that it lists the part and is from on or after each day the stages give; the database holds that it exists.
recordVARCHARnoThe file in bronze.record this row came from.

Constraints:

Read by: gold.sourcing_status.

silver.fab_row (table)

One thing Hacker Fab's stack and the industry's are compared on, and Tentzhen's route across the gap between them: a proposal.

columntypenullabout
row_noINTEGERnoIts place in the file, from 1. A layer's rows are consecutive.
layerVARCHARno
measureVARCHARno
unitVARCHARyesThe SI unit of both sides' values: 1 for a count or ratio. NULL when neither side has a value.
betterVARCHARyesWhich way the measure improves, given when both sides have a value, so that gold.page_fab can work out the gap.
gapVARCHARyesThe gap in words, given when a side has no value.
routeVARCHARno
why_notVARCHARyesWhy the route is built with neither Rust nor CortenForge, when it is not.
recordVARCHARnoThe file in bronze.record this row came from.

Constraints:

Read by: gold.page_fab.

silver.fab_side (table)

Hacker Fab's side of a row, or the industry's: a value in the row's unit or the side in words, what has it, and the source's own words for it.

columntypenullabout
row_noINTEGERno
sideVARCHARno
valueDOUBLEyes
is_wordsVARCHARyes
toolVARCHARno
noteVARCHARyesThe conditions the source attaches to the figure.
quoteVARCHARnoThe source's own words, which hold the value. Nothing checks them against the source.
sourceVARCHARnoA URL, or owner/repo@sha:path for a file in a repository at a commit.
read_onDATEnoThe UTC day the source was read.

Constraints:

Read by: gold.page_fab.

silver.fab_route_with (table)

What a row's route is built with, in the file's order: Rust, CortenForge, Amaranth, KiCad, or bought.

columntypenullabout
row_noINTEGERno
with_noINTEGERno
toolVARCHARno

Constraints:

Read by: gold.page_fab.

silver.referent (table)

What shows a claim: a proof, a bounded check or a test in simulation; a bench measurement record; or an entry in the trusted base.

columntypenullabout
claimVARCHARno
kindVARCHARno
evidenceVARCHARyesThe proof, check or test, as the claim names it. Nothing checks that it exists.
trustedVARCHARyesFor a trusted referent, the entry in the trusted base that assumes the claim.
measurementVARCHARyesFor a record referent, the measurement record that shows the claim. crates/records holds that the record measured the claim's subject.

Constraints:

Read by: gold.claim_grades.

gold

gold.latest (view)

The newest version of each build.

columntype
buildVARCHAR
versionINTEGER

Reads: silver.build_version.

Read by: gold.bench, gold.page.

gold.claim_grades (view)

Every claim on a part or a build version, with its grade on each axis: in simulation (proven, checked, tested) and on the bench (measured, trusted), each the strongest its referents give. No referent reads 'unknown'.

columntype
claimVARCHAR
partVARCHAR
buildVARCHAR
versionINTEGER
claim_noINTEGER
idVARCHAR
saysVARCHAR
sim_gradeVARCHAR
sim_evidenceVARCHAR
bench_gradeVARCHAR
bench_evidenceVARCHAR

Reads: silver.claim, silver.referent.

Read by: gold.grade_coverage, gold.limit_grades, crates/site.

gold.claim_values (view)

The numbers each claim states, for readers that write them into the claim's words.

columntype
claimVARCHAR
nameVARCHAR
amountDOUBLE

Reads: silver.claim_value.

Read by: crates/site.

gold.grade_coverage (view)

How much of each part and build version is shown, and how.

columntype
subjectVARCHAR
claimsBIGINT
shown_in_simBIGINT
measuredBIGINT
trustedBIGINT
unknownBIGINT

Reads: gold.claim_grades.

Read by: no crate yet.

gold.build_tree (view)

Every build version each build version is made of, itself included, and how many of it, through every build it uses. The records forbid uses loops, so the recursion ends.

columntype
root_buildVARCHAR
root_versionINTEGER
buildVARCHAR
versionINTEGER
qtyHUGEINT

Reads: silver.build_version, silver.uses.

Read by: gold.bom_exploded, gold.bench_line.

gold.bom_exploded (view)

Every part and commodity a build version needs, through every build it uses, with quantities multiplied down the tree.

columntype
buildVARCHAR
versionINTEGER
partVARCHAR
commodityVARCHAR
formVARCHAR
qtyHUGEINT

Reads: gold.build_tree, silver.line.

Read by: gold.where_used.

gold.where_used (view)

Where each part ends up, directly or inside another build.

columntype
partVARCHAR
buildVARCHAR
versionINTEGER
qtyHUGEINT

Reads: gold.bom_exploded.

Read by: no crate yet.

gold.bench (view)

The build versions the lab builds, each once: the newest version of every build, less one that the newest version of another build uses, which is built inside that one.

columntype
buildVARCHAR
versionINTEGER

Reads: gold.latest, silver.uses.

Read by: gold.bench_line.

gold.bench_line (view)

Every line the bench needs, in the build version that writes it, with how many: its qty times how many of that version the builds in gold.bench take. parts_no is its row on the parts list, shared by every line that buys the same thing (part and form, or commodity and form): the place of the first such line, by build, version and line.

columntype
buildVARCHAR
versionINTEGER
line_noINTEGER
partVARCHAR
formVARCHAR
commodityVARCHAR
classVARCHAR
qtyHUGEINT
parts_noBIGINT

Reads: gold.bench, gold.build_tree, silver.line.

Read by: gold.page_parts, gold.page_parts_used_in.

gold.sourcing_status (view)

Each line of the lab's sourcing with its status, the last stage it has reached, never typed, and since, the UTC day it reached that stage: for incoming QA, the day of its record's first lab-log entry; NULL while specced, or when the file gives no day for that stage.

columntype
line_noINTEGER
partVARCHAR
formVARCHAR
commodityVARCHAR
shopVARCHAR
storeVARCHAR
itemVARCHAR
usedBOOLEAN
salvaged_fromVARCHAR
authorizedVARCHAR
statusVARCHAR
sinceDATE
passed_qaVARCHAR

Reads: silver.lab_log_entry, silver.measurement, silver.sourcing.

Read by: gold.page_parts.

gold.limit_grades (view)

Each limit with the weakest bench grade (measured, trusted) among the claims it rests on, directly or through any value it comes from. NULL when it rests on no claim: nothing here claims it does its job.

columntype
pathVARCHAR
amountDOUBLE
unitVARCHAR
choiceVARCHAR
basisVARCHAR
weakest_gradeVARCHAR
rests_onVARCHAR

Reads: gold.claim_grades, silver.lab_limit, silver.lab_limit_input, silver.lab_limit_rests_on.

Read by: no crate yet.

gold.page (view)

One row per build version, with its newest sibling, its drawing and the hash of its record.

columntype
buildVARCHAR
versionINTEGER
statusVARCHAR
doesVARCHAR
changesVARCHAR
latestINTEGER
latest_changesVARCHAR
drawing_svgVARCHAR
recordVARCHAR
record_sha256VARCHAR

Reads: bronze.record, bronze.record_hash, gold.latest, silver.build_version.

Read by: crates/site.

gold.page_line (view)

A build page's bill of materials, with each part's datasheet and whether it must come from an authorized distributor.

columntype
buildVARCHAR
versionINTEGER
line_noINTEGER
qtyINTEGER
partVARCHAR
commodityVARCHAR
formVARCHAR
datasheetVARCHAR
authorized_onlyBOOLEAN

Reads: silver.line, silver.part.

Read by: crates/site.

gold.page_uses (view)

The build versions a build version is made from, for its page.

columntype
buildVARCHAR
versionINTEGER
uses_noINTEGER
uses_buildVARCHAR
uses_versionINTEGER
qtyINTEGER

Reads: silver.uses.

Read by: crates/site.

gold.page_used_in (view)

silver.uses read the other way: where each build version is used.

columntype
buildVARCHAR
versionINTEGER
in_buildVARCHAR
in_versionINTEGER
qtyINTEGER

Reads: silver.uses.

Read by: crates/site.

gold.page_firmware (view)

silver.firmware, for build pages.

columntype
buildVARCHAR
versionINTEGER
nameVARCHAR
licenseVARCHAR
sourceVARCHAR
releaseVARCHAR
fileVARCHAR
sha256VARCHAR
pin_mapVARCHAR

Reads: silver.firmware.

Read by: crates/site.

gold.page_pin (view)

silver.pin, for build pages.

columntype
buildVARCHAR
versionINTEGER
pin_noINTEGER
nameVARCHAR
board_pinINTEGER
netVARCHAR
requiredBOOLEAN

Reads: silver.pin.

Read by: crates/site.

gold.page_step (view)

silver.step, for build pages.

columntype
buildVARCHAR
versionINTEGER
step_noINTEGER
instructionVARCHAR
runVARCHAR
expectVARCHAR
agentVARCHAR

Reads: silver.step.

Read by: crates/site.

gold.page_parts (view)

The parts page: each thing the bench needs once, with its class, how many, where the lab buys it and how far it has got. No prices: CLAUDE.md keeps them out.

columntype
parts_noBIGINT
classVARCHAR
qtyHUGEINT
partVARCHAR
formVARCHAR
commodityVARCHAR
datasheetVARCHAR
authorized_onlyBOOLEAN
shopVARCHAR
storeVARCHAR
itemVARCHAR
usedBOOLEAN
salvaged_fromVARCHAR
authorizedVARCHAR
statusVARCHAR
sinceDATE
passed_qaVARCHAR

Reads: gold.bench_line, gold.sourcing_status, silver.part.

Read by: crates/site.

gold.page_parts_used_in (view)

The build versions that write each row of the parts page, and how many each needs.

columntype
parts_noBIGINT
buildVARCHAR
versionINTEGER
qtyHUGEINT

Reads: gold.bench_line.

Read by: crates/site.

gold.page_fab (view)

The fab page: each row with both sides, and, when both have a value, the gap as a factor: how many times better the industry's figure is than Hacker Fab's, below 1 where Hacker Fab's is better.

columntype
row_noINTEGER
layerVARCHAR
measureVARCHAR
unitVARCHAR
betterVARCHAR
gapVARCHAR
routeVARCHAR
why_notVARCHAR
built_withVARCHAR
hf_valueDOUBLE
hf_isVARCHAR
hf_toolVARCHAR
hf_noteVARCHAR
hf_quoteVARCHAR
hf_sourceVARCHAR
hf_readDATE
ind_valueDOUBLE
ind_isVARCHAR
ind_toolVARCHAR
ind_noteVARCHAR
ind_quoteVARCHAR
ind_sourceVARCHAR
ind_readDATE
factorDOUBLE

Reads: silver.fab_route_with, silver.fab_row, silver.fab_side.

Read by: crates/records, crates/site.

gold.legal (view)

The disclaimer, as the site's legal page shows it.

columntype
bodyVARCHAR

Reads: bronze.record.

Read by: crates/site.

gold.doc (view)

Each doc in docs/, in Markdown, by its name: the site makes a page of each.

columntype
nameVARCHAR
pathVARCHAR
bodyVARCHAR

Reads: bronze.record.

Read by: crates/site.

gold.doc_image (view)

Each drawing in docs/img/, which the doc pages show.

columntype
fileVARCHAR
bodyVARCHAR

Reads: bronze.record.

Read by: crates/site.

Written in docs/data-catalogue.md, on main; this page is made from it.