@lotics/cli 0.321.85 → 0.321.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli.js +11 -16
- package/docs/data_model.md +4 -16
- package/package.json +1 -1
package/docs/data_model.md
CHANGED
|
@@ -91,23 +91,11 @@ Anything that imports, reconciles or de-duplicates has to decide identity, and w
|
|
|
91
91
|
comparing displayed text — which is how one company arrives three times under three spellings. Name the key: a reference
|
|
92
92
|
number, a tax id, a link plus a period. Then match on record ids and option aliases, never on rendered labels.
|
|
93
93
|
|
|
94
|
-
##
|
|
95
|
-
|
|
96
|
-
A row that belongs to another by what it holds states a link the platform fills (`reference/link`, `fill`): a lesson to
|
|
97
|
-
its teacher's month, a reading to the price in force on its day, a line arriving with a code to the row that code names.
|
|
98
|
-
The link's `options_where` reads the row's own fields as `{ "$expr": "record.<field>" }`, and the platform keeps the link
|
|
99
|
-
as either row changes:
|
|
100
|
-
|
|
101
|
-
```json
|
|
102
|
-
"month": { "type": "link", "label": "Month", "table": "teacher_months", "multi": false, "pair": "lessons", "fill": true,
|
|
103
|
-
"options_where": { "node_type": "group", "logic": "and", "children": [
|
|
104
|
-
{ "node_type": "condition", "field_key": "teacher", "operator": "has_any_of", "value": { "$expr": "record.teacher" } },
|
|
105
|
-
{ "node_type": "condition", "field_key": "month", "operator": "on", "value": { "$expr": "record.starts_at" } } ] } }
|
|
106
|
-
```
|
|
94
|
+
## A row that belongs to another by its VALUES holds a link
|
|
107
95
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
96
|
+
An adjustment belongs to its person's month, a payment to its customer's statement: the row holds an ordinary link to
|
|
97
|
+
that row, set when the row is made — by the screen that adds it under its parent, or by a table workflow that finds the
|
|
98
|
+
parent from the row's values. A rollup through the link then reads live, and the link stays a person's to correct.
|
|
111
99
|
|
|
112
100
|
## A stage's moment is a date on the row
|
|
113
101
|
|