Topological graph sorting
Subveil reads your foreign keys and builds a dependency graph, then orders tables so every parent is loaded before its children. Row selection follows the same edges, so a slice includes exactly the rows it references and no dangling keys. Add a table or column and the order updates itself on the next run.
- pass 1tenants
- pass 2usersplans
- pass 3orders
- pass 4payments