Working on a quiz/examination application. The questions and answers for the application have been written. The next question a user is presented with depends on their answer to the preceding question.
2 Questions:
-
The tests being written are heavily dependent on being able to identify a question based on its id in the database. Is this a good idea/design?
-
Currently, the assignment of id values when seeding the application database isn't doing what I expected. None of the tables start with id value of 1 - they all start with some random number (i.e. 3, 4, or 5). Why is this happening? And is there anything I can do to get ids of all tables to start with 1
Aucun commentaire:
Enregistrer un commentaire