feat(demo): add crm-orders collection definition files with single-file order_details subcollection#30
Merged
trakhimenok merged 4 commits intomainfrom Mar 4, 2026
Conversation
Co-authored-by: trakhimenok <533159+trakhimenok@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add markdown specification for demo ingitdb schema
docs: add CRM orders demo schema specification
Mar 4, 2026
Co-authored-by: trakhimenok <533159+trakhimenok@users.noreply.github.com>
Copilot
AI
changed the title
docs: add CRM orders demo schema specification
docs(demo): add CRM/orders schema spec; change order_details to single-file storage
Mar 4, 2026
Co-authored-by: trakhimenok <533159+trakhimenok@users.noreply.github.com>
Copilot
AI
changed the title
docs(demo): add CRM/orders schema spec; change order_details to single-file storage
feat(demo): add crm-orders collection definition files with single-file order_details subcollection
Mar 4, 2026
trakhimenok
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bootstraps the
demo-dbs/crm-ordersdatabase with machine-readable.collection/definition.yamlfiles for all 15 collections and the.ingitdb/root config. Theorder_detailssubcollection stores all line items per order in a singledetails.json(no{key}placeholder) using[]map[string]any.Structure added
.ingitdb/root-collections.yaml— registers all 14 root collections.ingitdb/settings.yaml— setsdefault_namespace: crm-orders{key}.yaml/map[string]anyper-record filesorders/.collection/subcollections/order_details/definition.yaml—details.json/[]map[string]any(single file per order)order_details record_file
Path on disk:
orders/$records/{order-id}/order_details/details.jsonUnimplemented ColumnDef constraints
Constraints present in the README schema but not yet in
ColumnDefare included as commented-out YAML with# TODO: needs implementationmarkers:regex— pattern validation (e.g.^[A-Z]{3}$for currency codes, email patterns)min/max— numeric value bounds (prices, quantities, percentages)enum— allowed value sets (e.g.orders.status,shipping_options.service_level)required(e.g.promotions.currency_idrequired only whendiscount_type=fixed)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.