Best practice for storing user info
Hello -
I am trying to make an application using DraftBit as a frontend that allows a supervisor to have a list of subordinates under them. When they select a name from the list it will pull up a dossier of that person showing a list of all their pertinent information.
This information should be editable by the supervisor in the app.
I just need some very basic help with the structure of the database. Which data type should I be using to store the names?
How do I organize all the particulars about a person under their name? In the same table? Different referenced table?
I just need basic help to get traction on types and formats.
Once I get a good starting point I could probably figure out how to go from there.
Thank you!
Answers
-
At a glance, I think you want a table of “dossiers” that is one per person. Each dossier has a “supervisor” field that is a table reference to your “users” table for the signing-in supervisor.
That way you can authenticate access to that that table by checking dossiers.supervisor == auth:id or something along those lines.
Data structure can be hard! Its a common topic on our daily State Change Pro office hours.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback