I guys i am playing around with Active Record for PHP(php-activerecord from composer/packagist).
I am building an application where once the user register a new table with his username will be created.
Assuming that 1000 users will register to my application 1000 tables will be created, but all the tables will be of the same type(structure?), should i instead use one table and put everything in?.
And if create 1000 tab do i need to create 1000 models? Is there a way to tell active record to handle all those tables of the same type with one model?
Please let me know if i confuse you i’ll try to explain better.
Thanks
We can handle multiple tables in a single model.
It is a good practice to put logically related querying into the same model.
The primary question why do need 1000 tables why not create 1000 rows?