-
Notifications
You must be signed in to change notification settings - Fork 0
Database Schema
will short edited this page Nov 15, 2021
·
19 revisions
(Click on image for link to dbdiagram.io)
column name | data type | details |
---|---|---|
id | integer | not null, pk |
name | varchar | not null |
username | varchar | not null |
varchar | not null, unique | |
hashed_password | bytea | not null |
profile_image | varchar | |
location | varchar | |
created_at | timestamp | not null |
updated_at | timestamp | not null |
column name | data type | details |
---|---|---|
id | integer | not null, pk |
description | varchar | |
image | varchar | |
rating | numeric | |
drink_id | integer | not null, fk |
location | varchar | |
owner_id | integer | not null, fk |
created_at | timestamp | not null |
updated_at | timestamp | not null |
-
owner_id
referencesUsers
table -
drink_id
referencesDrinks
table -
location_id
referencesLocations
table
column name | data type | details |
---|---|---|
id | integer | not null, pk |
name | varchar | not null |
description | varchar | not null |
image | varchar | |
ingredients | string | not null,fk |
created_at | timestamp | not null |
updated_at | timestamp | not null |
-
group_id
referencesGroup
table -
owner_id
referencesUsers
table -
ingredient_id
referencesingredients
table
column name | data type | details |
---|---|---|
id | integer | not null, pk |
content | varchar | not null |
owner_id | integer | not null, fk |
checkin_id | integer | not null, fk |
created_at | timestamp | not null |
updated_at | timestamp | not null |
-
owner_id
referencesUsers
table -
checkin_id
referencesCheckins
table