The current implementation is that one User corresponds to one database. But I think it is also possible to add a User table and use foreign key association. Don't know which implementation is better? Are there any other ways to achieve this?
PHP中文网2017-05-16 13:35:38
From the perspective of easy upgrade, it is better to use 一个数据库+外键关联
, especially when using a third-party ORM.
漂亮男人2017-05-16 13:35:38
Same as the website backend, use User+foreign keys, as mentioned above, if you upgrade the table structure one by one, you will be exhausted.