I've created a table for accounts/users with a primary key (UsersID, AccountsID) like below. Should I add the index for the Users table?
create table AccountsUsers ( AccountsID int unsigned not null, UsersID int unsigned not null, Roles bigint unsigned null, primary key (UsersID, AccountsID), constraint AccountsUsers_Accounts_ID_fk foreign key (AccountsID) references Accounts (ID) on update cascade on delete cascade, constraint AccountsUsers_Users_ID_fk foreign key (UsersID) references Users (ID) on update cascade on delete cascade ) engine=InnoDB ; create index AccountsUsers_Accounts_ID_fk on AccountsUsers (AccountsID) ;