0

A quick description of my system would be: there are 2 users: users and admin.

User registers on the website. Upon registration, the system will generate a QR code for the user. The user then goes to be vaccinated, and upon vaccination, someone will be able to scan his/ her QR code and the status of the user will be updated as vaccinated with the 1st dose of the vaccine. Additional information will also include, the date for the 2nd dose of vaccination, the doctor who was responsible for the vaccination, date and time of the vaccination. The user can also give his feedback for the side effects per dosage.

On the admin's side:

  • able to log in
  • they will have a report in the graph for each of the vaccines and the percentage of how many were vaccinated with these types of vaccines.
  • graph of side effects per dosage of each of the vaccines
  • add, edit, and delete a doctor
  • add, edit, delete a vaccine
  • it will also include Analytics for the frequency of the users
  • list of those users

This is the database design I have come up so far and I'm needing help if this is correct and I'm a little lost with the admin entity here.

enter image description here

2
  • 1
    Can an Admin also be vaccinated or would they do so as a separate User?
    – user212533
    Commented Jul 27, 2021 at 13:27
  • @bbaird as a separate user
    – JS3
    Commented Jul 27, 2021 at 23:53

1 Answer 1

1

Authentication and authorization for the administration logic should be handled by the application, so it is natural that the Admin entity will feel disconnected to your domain. You could expand into other entities, such as Permission and Group, so you can have fine-grained control over what exact permissions an administrator, or group of administrators, can have. Enforcing those, however, will be on the application side.

The rest of your design looks pretty coherent. Keep it up!

2
  • the permission and group you mean are for the user authorizations?
    – JS3
    Commented Jul 27, 2021 at 23:54
  • Yes. Let's say some admins have VIEW permissions, but others have VIEW and EDIT.
    – labega
    Commented Jul 28, 2021 at 19:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.