2016-12-02 105 views

回答

0

不要讓事情複雜:

管理兩個表中的登錄訪問:

角色:

This should include all role types 

用戶:

This should include at least login information like username/email, password etc. 

很顯然作出這樣的關係:

Users belongs to Roles , means each user has different role. 

您可以根據自己的角色(see here)分別管理登錄。在這樣做的時候,你不需要從不同的桌子登錄他們。我敢打賭,讓事情變得複雜。

+0

非常感謝,親愛的,它幫助我很多。 –

相關問題