-
Notifications
You must be signed in to change notification settings - Fork 2
Database Schema
Michael edited this page Jul 19, 2022
·
1 revision

| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| profile_pic | varchar | |
| first_name | varchar | not null |
| last_name | varchar | not null |
| user_name | varchar | not null |
| varchar | not null | |
| address | varchar | not null |
| hashed_password | varchar | not null |
| createdAt | timestamp | |
| updatedAt | timestamp |
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| user_id | integer | not null |
| snack_id | integer | not null |
| comment | text | not null |
| created_at | timestamp | |
| updatedAt | timestamp |
-
user_idreferences theUserstable -
snack_idreferences theSnackstable
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| user_id | integer | not null |
| total | integer | not null |
| created_at | timestamp | |
| updatedAt | timestamp |
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| shopping-cart-id | integer | not null |
| snack_id | integer | not null |
| quanity | integer | not null |
| created_at | timestamp | |
| updatedAt | timestamp |
-
shopping-cart-idreferences theShopping Carttable -
snack_idreferences theSnackstable
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| user_id | integer | not null |
| cover_pic | varchar | not null |
| title | varchar | not null |
| description | text | not null |
| price | integer | not null |
| category | varchar | not null |
| created_at | timestamp | |
| updated_at | timestamp |
-
user_idreferences theUserstable