How can the concept of normalization be applied to improve the structure of user-specific tables in PHP applications?

Issue: User-specific tables in PHP applications may suffer from redundancy and inefficiency if they are not properly normalized. Normalization can help improve the structure of these tables by reducing data redundancy and improving data integrity. Code snippet:

// Example of normalizing user-specific tables in a PHP application

// Create a users table to store user information
CREATE TABLE users (
    id INT PRIMARY KEY,
    username VARCHAR(50) UNIQUE,
    email VARCHAR(100) UNIQUE
);

// Create a user_details table to store additional user-specific details
CREATE TABLE user_details (
    id INT PRIMARY KEY,
    user_id INT,
    full_name VARCHAR(100),
    age INT,
    FOREIGN KEY (user_id) REFERENCES users(id)
);