Skip to content
Yonjuni edited this page Nov 13, 2014 · 5 revisions

Structure

As Django was used to program the project, the database structure can be found in models.py.

Task

A task contains a description, which in case of the Wason Selection Task is the rule that has to be proofed. Is has four cards (see Custimization) and four boolean values. Please check the box, if the card has to be flipped. A task can contain a story. As there are different task types, the classes AbstractTask and ConcreteTask inherit from Task.

Subject

Each Subject has a subject_id, which comes from the url, and a group which in my case is AbstractTask or ConcreteTask. This group is a boolean value which is randomly assigned by assign_task_type() in views.py. If group is true then the subject belongs to the abtract task group.

Results

All results are stored in this table, each result has subject as a foreign key and also a task a a foreign key. In case of the subject, it's the subject_id, in case the of the task it is the primary key which is generated, so an integer. If a card was flipped, then the card field is true. The time a subject needed to perform the task is also stored in milli seconds.

Clone this wiki locally