| 304 | | Conects the surveys table to the questions table (Many-to-many relationship). Also, gives the questions a number. |
| 305 | | ||__Column__||__Type__||__Description__||__Foreign Key to table...__|| |
| 306 | | ||'''id'''||integer||Primary_Key |
| 307 | | ||'''survey_id'''||integer||The survey this question belongs||''surveys'' |
| | 304 | Connects the surveys table to the questions table (Many-to-many relationship). Also, gives the questions a number. |
| | 305 | ||__Column__||__Type__||__Description__||__Foreign Key to table...__|| |
| | 306 | ||'''id'''||integer||Primary_Key |
| | 307 | ||'''survey_id'''||integer||The survey this question belongs to.||''surveys'' |
| 311 | | == survey_groups == |
| | 311 | ||__Column__||__Type__||__Description__||__Foreign Key to table...__|| |
| | 312 | ||'''id'''||integer||Primary_Key |
| | 313 | ||'''survey_id'''||integer||The survey this answer belongs to.||''surveys'' |
| | 314 | ||'''user_id'''||integer||The ID of the user thats responding. |
| | 315 | ||'''question_id'''||integer||The question ID being answered.||''questions'' |
| | 316 | ||'''sub_id''||integer|| unused (?) |
| | 317 | ||'''response_text'''||string||If this was a text question, the answer is recoded here |
| | 318 | ||'''response_id'''||integer||Non-text responses are recorded here||''responses'' |
| | 319 | == survey_groups == |
| | 320 | ||__Column__||__Type__||__Description__||__Foreign Key to table...__|| |
| | 321 | ||'''id'''||integer||Primary_Key |
| | 322 | |