LinkedIn style database, how to in Xano
Hello,
I would like to create a beck end where user can create an account and populate it's details.
For example, let say that she is putting in information about her education.
Masters in something from 2016-2019 description of masters
Bachelor in something from 2013-2016 description of it
Now, do I have to create a database with loads of columns like this:
Degree_1 Field_1 Description_1 From_1 Till_1 Degree_2 Field_2 Description_2 From_2 Till_2
Or I can have columns defined once, and then populate data in rows.
Degree Field Description From Till
The reason tells me that it is the second option, but I don't know even how to begin with it. How to designate n amount of rows to that one person. What happens if I have two persons filling in in the same time?
Any help would be greatly appreciated, especially end to end tutorial. :p
Best Answer
-
Hi, Dino. What we really need here is a way to make sure each row has a way to identify who it belongs to. So, as an example, your database structure might look like this:
Degree, Field, Description, From, Until, user_id
That user_id field will be a table reference column that refers back to the user table, so that each user's data will be tied to them in this education table. Here's some documentation on relational data that should get you going.
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