refactor README to simplify SQL table creation instructions
This commit is contained in:
13
README.md
13
README.md
@@ -26,16 +26,5 @@ This is an app which I am currently working on...
|
||||
('test1', 'John', 'Doe', 'jdoe@example.com', '1test'),
|
||||
('test2', 'Alice', 'Smith', 'asmith@example.com', '2test');
|
||||
```
|
||||
7. For that, just paste this command in the mysql command line:
|
||||
``` sql
|
||||
CREATE TABLE users (
|
||||
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
username VARCHAR(50) NOT NULL UNIQUE,
|
||||
first_name VARCHAR(50) NOT NULL,
|
||||
last_name VARCHAR(50) NOT NULL,
|
||||
email VARCHAR(100) NOT NULL UNIQUE,
|
||||
password VARCHAR(255) NOT NULL,
|
||||
created TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
||||
```
|
||||
7. For that, just paste the command shown above in the mysql command line.
|
||||
8. If you are confident with sql you can change the mock data, and create your own user.
|
Reference in New Issue
Block a user