Relationship with array of ids

Hello,

I am trying to test Admin Forest for our company,
I am working with a database that is not so relational.

For example we have users and store and many users are related to the store, and for this we store an array of ids in the store table.

I am wondering how I could best use Admin Forest in this situation (disclaimer I do not have a lot of Sequelize experience) so I am having hard time trying to build this relationship (and the others).

Is it actually possible to do this with sequielize or would I need to use smart relationship?

Thanks for help in advance.

Have a good day

Hi :wave: @bjmrqspockee welcome to our community.
The better way to do this kind of stuff is to create in the database a join table, but is not the subject here.
As you said, actually the better way for you to achieve your goal is to create a smart relationship.
You can follow this documentation, and feel free to ask any question if you have any problems.
Let me know if it help.

Hello @Arnaud_Moncel thanks for helping me out on this!

I do agree with you unfortunately remodelling the database is not an option for now.

I’ll give the smart actions a try and comme back to you if I have any difficulty.

have a good day