Convex schema for mastra and ai-sdk v5

I'm trying to design my backend schema using convex for an ai chat application with mastra as my ai backend.

I did some research with claude for how my schema should look like.

And I'm wondering if this is too much, am I complicating it, can/should it be simpler?

I need some guidance here.
message.txt37.23KB
Was this page helpful?