Repository navigation
Database Schema
Jacob Nicotra edited this page Jan 19, 2022
·
6 revisions
| Column name | Data Type | Details |
|---|---|---|
| id | int | not null, primary key |
| username | string(255) | not null, unique |
| string(255) | not null, unique | |
| hashedPassword | string.binary | not null |
| cityId | int | foreign key |
| authority | int |
-
cityIdreferencesCitiestable
| Column name | Data Type | Details |
|---|---|---|
| id | int | not null, primary key |
| title | string(100) | not null |
| userId | int | not null, foreign key |
| cityId | int | foreign key |
| pieceCount | int | |
| image | text | |
| description | text |
-
userIdreferencesUserstable -
cityIdreferencesCitiestable
| Column name | Data Type | Details |
|---|---|---|
| id | int | not null, primary key |
| userId | int | not null, foreign key |
| givePuzzleInstanceId | int | not null, foreign key |
| getPuzzleInstanceId | int | not null, foreign key |
| message | text |
-
userIdreferencesUserstable -
givePuzzleInstanceIdreferencesPuzzleInstancestable -
getPuzzleInstanceIdreferencesPuzzleInstancestable
| Column name | Data Type | Details |
|---|---|---|
| id | int | not null, primary key |
| userId | int | not null, foreign key |
| puzzleId | int | not null, foreign key |
| rating | int | not null |
| description | text |
-
userIdreferencesUserstable -
puzzleIdreferencesPuzzlestable
| Column name | Data Type | Details |
|---|---|---|
| id | int | not null, primary key |
| puzzleId | int | not null, foreign key |
-
puzzleIdreferencesPuzzlestable
| Column name | Data Type | Details |
|---|---|---|
| id | int | not null, primary key |
| userId | int | not null, foreign key |
| puzzleId | int | not null, foreign key |
-
userIdreferencesUserstable -
puzzleIdreferencesPuzzlestable
| Column name | Data Type | Details |
|---|---|---|
| id | int | not null, primary key |
| title | string(100) | not null |
