-
Notifications
You must be signed in to change notification settings - Fork 1
Database schema
Arnold Cabang Jr edited this page Aug 23, 2021
·
2 revisions
| column name | datatype | details |
|---|---|---|
| id | integer | not null, primary key |
| username | String | not null, unique |
| firstName | String | not null |
| lastName | String | not null |
| String | not null, unique | |
| hashedPassword | String | not null |
| created_at | timestamp | not null |
| updated_at | timestamp | not null |
- Email
unique: true - hashedPassword
unique: true
| column name | datatype | details |
|---|---|---|
| id | integer | not null, primary key |
| title | String | not null, unique |
| studio | String | not null |
| avgCleanRating | int | not null |
| description | String | not null |
| releaseDate | varchar | not null |
| created_at | timestamp | not null |
| updated_at | timestamp | not null |
| column name | datatype | details |
|---|---|---|
| id | integer | not null, primary key |
| name | String | not null |
| userId | Integer | not null, foreign key |
| created_at | timestamp | not null |
| updated_at | timestamp | not null |
-
userIdreferencesuserstable
| column name | datatype | details |
|---|---|---|
| id | integer | not null, primary key |
| gameId | Integer | foreign key |
| shelfId | Integer | not null, foreign key |
| created_at | timestamp | not null |
| updated_at | timestamp | not null |
-
gameIdreferencesgamestable -
shelfIdreferencesshelvestable
| column name | datatype | details |
|---|---|---|
| id | integer | not null, primary key |
| rating | Integer | not null |
| userId | Integer | not null, foreign key |
| gameId | Integer | not null, foreign key |
| created_at | timestamp | not null |
| updated_at | timestamp | not null |
-
userIdreferencesuserstable -
gameIdreferencesgamestable
| column name | datatype | details |
|---|---|---|
| id | integer | not null, primary key |
| like | boolean | not null |
| reviewsId | Integer | not null, foreign key |
| userId | Integer | not null, foreign key |
| created_at | timestamp | not null |
| updated_at | timestamp | not null |
-
userIdreferencesuserstable -
reviewsIdreferencesreviewstable
| column name | datatype | details |
|---|---|---|
| id | integer | not null, primary key |
| title | varchar | not null |
| content | varchar | not null |
| userId | Integer | not null, foreign key |
| gameId | Integer | not null, foreign key |
| created_at | timestamp | not null |
| updated_at | timestamp | not null |
-
userIdreferencesuserstable -
gameIdreferencesgamestable