1. Creating a User Profile Table
Backend DeveloperBackground
Setting up a new user authentication module for a web application.
Problem
Need to write a standard SQL table definition with ID, username, and email fields.
How to use
Set the table name to 'users', select MySQL, and input the column JSON defining the primary key and data types.
[{"name":"id","type":"INT","nullable":false,"primaryKey":true,"autoIncrement":true},{"name":"username","type":"VARCHAR(255)","nullable":false},{"name":"email","type":"VARCHAR(255)","nullable":false}]Outcome
A complete 'CREATE TABLE' SQL statement ready to be executed in the MySQL workbench.