The database (DB) of the Survey Back API is designed to store user comments, feedback form presentation rules, and survey report-related data.
Table: Comment
+----------------+-------------------+---------------------------------------+
| Column | Type | Description |
+----------------+-------------------+---------------------------------------+
| id | Integer (PK) | Unique identifier for the comment |
| project_id | Integer (FK) | ID of the associated project |
| user_id | Integer | Identifier of the user who posted |
| timestamp | DateTime | Timestamp of the comment |
| feature_url | String | URL of the associated feature |
| rating | Integer | Rating given by the user |
| comment | Text | Text of the comment |
+----------------+-------------------+---------------------------------------+
Table: Display
+----------------+-------------------+---------------------------------------+
| Column | Type | Description |
+----------------+-------------------+---------------------------------------+
| id | Integer (PK) | Unique identifier for the display |
| project_id | Integer (FK) | ID of the associated project |
| user_id | Integer | Identifier of the user |
| timestamp | DateTime | Timestamp of the display |
| feature_url | String | URL of the associated feature |
+----------------+-------------------+---------------------------------------+
Table: Project
+----------------+-------------------+---------------------------------------+
| Column | Type | Description |
+----------------+-------------------+---------------------------------------+
| id | Integer (PK) | Unique identifier for the project |
| project_name | String | Name of the project |
+----------------+-------------------+---------------------------------------+
Table: ProjectEncryption
+----------------+-------------------+---------------------------------------+
| Column | Type | Description |
+----------------+-------------------+---------------------------------------+
| id | Integer (PK) | Unique identifier for the encryption |
| project_id | Integer (FK) | ID of the associated project |
| encryption_key | String | Encryption key for the project |
+----------------+-------------------+---------------------------------------+
This represents the tables Comment
, Display
, Project
, and ProjectEncryption
with their respective columns. Each column represents a specific attribute of the data stored in the database.
The Survey Back API database includes the following relationships between tables:
-
Relationship between
Comment
andProject
tables:- Each comment in the
Comment
table is associated with a project from theProject
table. - The
project_id
column in theComment
table is a foreign key referencing theid
column in theProject
table.
- Each comment in the
-
Relationship between
Display
andProject
tables:- Each display in the
Display
table is associated with a project from theProject
table. - The
project_id
column in theDisplay
table is a foreign key referencing theid
column in theProject
table.
- Each display in the
-
Relationship between
ProjectEncryption
andProject
tables:- Each project encryption record in the
ProjectEncryption
table is associated with a project from theProject
table. - The
project_id
column in theProjectEncryption
table is a foreign key referencing theid
column in theProject
table.
- Each project encryption record in the