Model and publishing
The Model node brings the tables and relationships together, holds what gives the data business meaning, and publishes the application.
Measures, hierarchies and security
On the Model node, click Measures, hierarchies and security.
Fields
Shows the fields inherited from the tables, with their business name and description. To change a field, edit it on the Table node it comes from.
Measures
Measures are the application's KPIs: revenue, margin, average ticket. Each one has a name and a formula. They're what the AI uses when someone asks for a number, so it's worth defining your company's official KPIs here, with the right formula.
Hierarchies
A hierarchy is a drill-down path, such as year › quarter › month or region › branch › salesperson. Click + Hierarchy and enter the levels. On dashboards, it lets people go from one level down to the next.
Context for the AI
- Context the AI receives along with the model: write in plain language what the application covers, the period, the business rules and what shouldn't be confused.
- Synonyms: the other names people use for the same thing, like billing and revenue.
Who has access
Under Who has access to this application, add groups or people. With nobody on the list, only administrators see it. If the field is disabled, your role doesn't choose who has access: an administrator does that under Users and access.
Row-level security
Row-level security makes each person see only the rows that belong to them, for example their own region.
- Click Add key.
- Give the key a name, like Region, and choose the column that represents it.
- Choose what happens to people with no value assigned: no value sees everything or no value sees nothing.
Each person's values (who sees which region) are assigned under Users and access › Row-level security.
A table without the key
Someone with a value assigned reads nothing from a table that doesn't have the key's column. Check that the column exists in every table that person needs to query.
Click Save draft to save. None of this applies to other people until you publish.
Publish
- On the Model node, click Publish.
- Write the Version note (optional): what changed.
- Confirm.
Publishing saves the tables, the relationships, the context, who has access and the security keys. That's the version the analyses, dashboards, loads and the AI start reading. Each publication is kept as a version.
On the first publication, LumeDB creates the application's load pipeline, with no schedule. While nothing triggers the load, the application's page warns that it doesn't refresh on its own; the notice has the Schedule shortcut.
If the button shows Publishing blocked, the node says what to fix; it's usually a pending or red relationship (see Relationships).
If the button is disabled, your user doesn't have permission to publish models. Ask the administrator under Users and access.
Draft and published version
What you edit in Modeling is the draft. Other people, the loads and the AI stay on the last published version until you publish again.
Each person reads the data with their own permission, in any version.
Go back to an earlier version
The version list keeps every publication. On an earlier version, Restore to the draft brings that version back into the Modeling draft. That doesn't change what others see yet: check it and click Publish to make it count.
Old versions can be deleted. The published one and the most recent one are always kept.