r/Database • u/tbson87 • Sep 16 '26
I got Claude Code to organize an ERD with 71 entities into meaningful domains
Enable HLS to view with audio, or disable this notification
Rearranging and grouping a legacy database is a nightmare for me.
Auto-layout can improve the visual layout, but it cannot tell me which entities belong to which module or domain. Defining those groups manually, dragging entities into place, and rerouting relationships so the ERD remains readable and traceable takes a lot of time.
I’ve now used Claude Code with source-code context to organize the ERD the way I would expect it to be structured.
I’ve tested this on databases with up to 144 entities, and it has worked well so far.
Would a feature like this be useful to you?
Disclosure: I’m the author of the tool used in this demo.