Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One possible schema design for individuals with multiple usernames but no userIDs in MYSQL could involve creating two tables: one for users and one for usernames.

The first table for users would include columns for relevant personal information, such as name, email, and any other identifying details. The second table for usernames would have columns for the usernames themselves, and a foreign key linking them to the corresponding user in the first table.

For example:

Table: users -columns: -id (primary key) -name -email -other identification details

Table: usernames -columns: -id (primary key) -username -user_id (foreign key linking to 'id' in 'users' table)

This design allows for multiple usernames to be associated with a single user, while still maintaining the necessary data structure and relationships in a relational database.