Doctype with a table to store data

Dear colleagues,

I am looking for a solution for the following issue:
As far as i understand, every doctype in frappe framework is a single unit. So for example if your have to store message history, you have to create one doctype for every message.

Is there any way to store multiple entries in the doctype? For example, if a user on my website has a chat with chatgpt - can I store all message history (say several hundred messages) in one doctype for every user?

Thank you very much for your help in advance.

Hi @cainny:

Maybe you missunderstood this … One regular DocType will store infinite “documents”, like one table have multiple rows. In your case, DocType “Chat” could contains millions of messages.

Only if you select “Single” DocType it will just store one document.
Hope this helps.