-
Notifications
You must be signed in to change notification settings - Fork 0
Database Schema
Dayton Chen edited this page Mar 10, 2022
·
9 revisions

| column name | column type | constraints |
|---|---|---|
| id | integer | not null, primary key |
| username | varchar | not null, unique |
| password | string | not null |
| emailAddress | varchar | not null, unique |
| created_at | datetime | not null |
| updated_at | datetime | not null |
| column name | column type | constraints |
|---|---|---|
| id | integer | not null, primary key |
| title | varchar | not null |
| image | varchar | not null |
| year | integer | not null |
| cast | varchar | not null |
| plot | text | not null |
| column name | column type | constraints |
|---|---|---|
| id | integer | not null, primary key |
| review | text | not null |
| rating | numeric | |
| created_at | datetime | not null |
| updated_at | datetime | not null |
| user_Id | integer | not null |
| movie_Id | integer | not null |
-
user_Idreferencesuserstable -
movie_Idreferencesmoviestable
| column name | column type | constraints |
|---|---|---|
| id | integer | not null, primary key |
| watchstatus | varchar | not null |
| user_Id | integer | not null |
-
user_Idreferencesuserstable
| column name | column type | constraints |
|---|---|---|
| id | integer | not null, primary key |
| movie_Id | integer | not null |
| watchlist_Id | integer | not null |
-
movie_Idreferencesmoviestable -
watchlist_Idreferenceswatchliststable