-
Notifications
You must be signed in to change notification settings - Fork 430
Database
The app will comprise of seven tables:
- Question Table
- Answer Table
- Points Table
- Avatar Table
- Scenario Table
- Clothes Table
- Hair Table
- Accessories Table
- QId: An Id unique to questions
- ScenarioID: Id of the scenario
- QDes: Description of the question
- AId: An Id unique to answers
- ADes: Answer Descriptions (Options: Eg "I am down")
- QId: Foreign Key to Question Table
- NextQId: Id of next question if this answer is selected
- Points: Points earned on selecting the answer
- Strength: Relative integer value(positive/negative) which would be added to Global Strength value.
- Invisibility: Relative integer value(positive/negative) which would be added to Global Invisibility value.
- Healing: Relative integer value(positive/negative) which would be added to Global Healing value.
- Telepathy: Relative integer value(positive/negative) which would be added to Global Telepathy value.
If there are multiple options (ie multiple tuples for a particular QId in Answer Table) allow the user to select, else display the response (using ADes) and then the next question (using NextQId)
This table would contain only two entries ie before entering the scenario and one after the scenario
- Id: Id for the points
- Strength: Int Strength Global value
- Invisibility: Int Invisibility Global Value
- Healing: Int Global Int Value
- Telepathy: Int Global Telepathy Value
This table would contain information about the avatar's current look
- Id: Id for the avatar
- Face: Id of face
- Clothes: Id of clothes
- Hair: Id of hair
- Eyes: Id of eyes
- Bag: Id of bag
- Glasses: Id of glasses
- Hat: Id of hat
- Necklace: Id of necklace
Initially the Id for face, clothes, hair and eyes is set to 1 and the Id for bag, glasses, hat and necklace is set to 0.
This table would contain information about the current scenario
- Id: Id for the scenario
- ScenarioName: Name of the scenario
- Timestamp: Timestamp for the scenario
- Asker: Name of asker in the scenario
- Avatar: Id of the avatar
- FirstQID: Id of the first question in the scenario
- Completed: Boolean representing if scenario is completed or not
- NextScenarioID: ID of the next scenario
- Replayed: Boolean representing if scenario is replayed or not
Initially, Completed and Replayed is set to 0.
This table would contain information about clothes
- CID: Id for the cloth
- Name: Name of the cloth
- Points: Points required to purchase the cloth
- Purchased: Boolean representing if cloth is purchased or not
Initially, purchased is set to 0.
This table would contain information about hairstyle
- HID: Id for the hairstyle
- Name: Name of the hairstyle
- Points: Points required to purchase the hairstyle
- Purchased: Boolean representing if hairstyle is purchased or not
Initially, purchased is set to 0.
This table would contain information about accessories
- AID: Id for the accessory
- Name: Name of the accessory
- Points: Points required to purchase the accessory
- Purchased: Boolean representing if accessory is purchased or not
Initially, purchased is set to 0.
Documentation
Outreachy Interns
GSoC Students