PK primary key
FK foreign key
{ } JSON column
foreign-key relation
reference inside JSON (not enforced)
Hover a table to highlight its relations.
Relationships
contracts1 — Ncontract_sectionsviacontract_id. Each contract has onemainsection and any number ofsubsections.contract_sections1 — Nuser_contractsviacontract_section_id, which always points to the main section.users1 — Nuser_contractsviauser_id(the contractor).user_contracts.sub_contract[].source_section_idpoints to the selected sub sections. It lives inside JSON, so the database doesn't enforce it.user_contracts1 — 1contract_detailsviauser_contract_id. Every template input key becomes a column there. Inputs from sub-sections areNULLwhen that sub-section isn't selected.