any way to keep a schema in the project?
I usually do supabase with prisma, going for raw Supabase made it hard to feed context to the AI, what is the recommended way to keep a snapshot of our db schema so AI always know the db state?
3 Replies
I'm curious how fellows do, but I'm using this to get fresh code in my supabase/schemas
https://github.com/idea-garage/supatool
I think if you use declarative schemas you would have the db schema in your project. Also can't AI just read the migrations? or you can just create a db dump of the schema ever so often for the sake of AI.
Note I don't use AI tools so my suggestions may be off as they are not from experience but from what I think would work.
"but from what I think would work" Just like an AI would do...