They asked me to design a database schema for an AI chat-based application where multiple users can participate in chats, exchange messages, and select different AI models.
Anónimo
I explained the schema by defining separate entities for users, chats, chat participants, messages, and AI models. I discussed relationships, foreign keys, and scalability considerations like indexing and message history growth.