@lotics/cli 0.313.0 → 0.313.1
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 +59 -70
- package/docs/data_model.md +8 -6
- package/package.json +1 -1
package/docs/data_model.md
CHANGED
|
@@ -169,12 +169,14 @@ inside it. Each type takes only its own:
|
|
|
169
169
|
- **boolean** — `default_value?` (`true` | `false`).
|
|
170
170
|
- **select** — `options` `[{ name, color?, mark? }]`, `multi?`, `default_value?`. An option stated without a `color` gets one no sibling option holds.
|
|
171
171
|
- **select_member** — `multi?`, `default_value?` (member ids).
|
|
172
|
-
- **select_record_link** — `table_id`, `
|
|
173
|
-
|
|
174
|
-
the
|
|
175
|
-
link
|
|
176
|
-
|
|
177
|
-
|
|
172
|
+
- **select_record_link** — `table_id`, `sync_both_ways?`, `cardinality?`, `paired_field_name?`. A
|
|
173
|
+
link shows the row it names by the one field its table names its rows by — the table's
|
|
174
|
+
`title_field_key`, stated when the table is made or changed, or by `records.<entity>.title` in the
|
|
175
|
+
model; a link states no display fields of its own, and a combined name is a formula field named there.
|
|
176
|
+
`sync_both_ways: true` on an existing one-way link makes it two-way — never add a second link for
|
|
177
|
+
that. `cardinality: "one"` holds a single row, paired or not; a paired partner of a `"one"` side
|
|
178
|
+
lists that side's rows as its children. Two paired sides cannot both be `"one"`. `paired_field_name`
|
|
179
|
+
names the back-reference the target gets.
|
|
178
180
|
- **files** — no properties.
|
|
179
181
|
- **autonumber** — `template` (`"INV-{YEAR}-{N:4}"`; tokens `{N}`, `{N:W}` zero-padded to W,
|
|
180
182
|
`{YEAR}`, `{YEAR:2}`, `{MONTH}`, `{DAY}`), or `prefix` + `padding` (1–20) for `PREFIX-0001`.
|