A
A
asel0000000000000002022-04-14 07:09:55
Database design
asel000000000000000, 2022-04-14 07:09:55

How to implement telegram bot step stack in database?

At the moment, a stack of bot states for each user is stored in a HashMap. If you remake the program to use the database, then what should be the structure of the tables? Is it possible to add a Stack class field in the User table? Need to add a Step table that will have the fields user_id, value, and sequence number on the stack?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question