Maintaining a codebase with mongodb db is already hard enough considering 99% of the time you need a relational db. It always end up as a mess.
But letting an llm doing this as well, ouch. I fear for the maintainability of the codebase in the long term.