updated README.md

master
Vic 2 years ago
parent a36bd2d803
commit 38a562e234

@ -79,7 +79,7 @@ Note : If needed you can reset the tables by closing the app and running the fol
- Products : - Products :
| Column | Type | | Column | Type |
|---------------+-------------------------------------------| |:-------------:|:------------------------------------------|
| id | SERIAL PRIMARY KEY | | id | SERIAL PRIMARY KEY |
| name | VARCHAR(250) NOT NULL | | name | VARCHAR(250) NOT NULL |
| price | INTEGER NOT NULL | | price | INTEGER NOT NULL |
@ -87,7 +87,7 @@ Note : If needed you can reset the tables by closing the app and running the fol
- Users : - Users :
| Column | Type | | Column | Type |
|---------------+-------------------------------------------| |:-------------:|:------------------------------------------|
| id | SERIAL PRIMARY KEY | | id | SERIAL PRIMARY KEY |
| firstName | VARCHAR(250) NOT NULL | | firstName | VARCHAR(250) NOT NULL |
| lastName | VARCHAR(250) NOT NULL | | lastName | VARCHAR(250) NOT NULL |
@ -96,7 +96,7 @@ Note : If needed you can reset the tables by closing the app and running the fol
- Orders : - Orders :
| Column | Type | | Column | Type |
|---------------+-------------------------------------------| |:-------------:|:------------------------------------------|
| id | SERIAL PRIMARY KEY | | id | SERIAL PRIMARY KEY |
| status | VARCHAR(15) | | status | VARCHAR(15) |
| user_id | INTEGER NOT NULL REFERENCES users(id) | | user_id | INTEGER NOT NULL REFERENCES users(id) |
@ -104,7 +104,7 @@ Note : If needed you can reset the tables by closing the app and running the fol
- Orders Products : - Orders Products :
| Column | Type | | Column | Type |
|---------------+-------------------------------------------| |:-------------:|:------------------------------------------|
| id | SERIAL PRIMARY KEY | | id | SERIAL PRIMARY KEY |
| quantity | INTEGER NOT NULL, | | quantity | INTEGER NOT NULL, |
| order_id | INTEGER NOT NULL REFERENCES orders(id) | | order_id | INTEGER NOT NULL REFERENCES orders(id) |

Loading…
Cancel
Save