-- Modules (2026-10-31, ADR 0009): the title of a document and the order of the -- articles of each of its sections, voted like its articles. Additive only: -- every unit of before is an article, nothing else changes. -- -- A module is a unit of its own kind. Its versions are proposals, voted, -- counted, signed on the chain and brought into force like those of an -- article; their kind says what they hold: -- title — `title` is the title of the document in its source language; -- order — `body` is the order of the section, one article (unit id) per line. ALTER TABLE units ADD COLUMN kind TEXT NOT NULL DEFAULT 'article'; -- article | title | order -- The modules added to an existing document (src/module_amend.rs): decided -- once per document, from what it holds then (its title, the order of each -- section), never touching an article or a vote. Each decision is kept here: -- applied (and what was created), refused (and why), or present (the document -- was born with its modules). CREATE TABLE module_amendments ( amendment_id TEXT NOT NULL, doc_id TEXT NOT NULL REFERENCES documents(id), outcome TEXT NOT NULL, -- applied | refused | present reason TEXT, -- why it was refused created TEXT, -- JSON array of the codes of the modules created at TEXT NOT NULL, PRIMARY KEY (amendment_id, doc_id) );