help with DB schema
Hi, I need help with designing a database, I'm fairly new to SQL (postgres) and I'm terrified of over-engineering.
Essentially, I'm building an app for an organization that has dozen of workplaces, each consisting of a team of therapists with the following requirements:
My thoughts:
Create a table with columns:
and another table with with cols:
I'm unfamiliar with SQL and don't know how many tables is too many for a small application, so I'm afraid of committing horrible design mistakes now.
Is this a good approach to the problem?
A 'stupid' alternative is to shove everything in the events table. I'm not sure how, use an array of IDs in a "participants" column? I read everywhere that using arrays is dangerous in DB, idk why.
Essentially, I'm building an app for an organization that has dozen of workplaces, each consisting of a team of therapists with the following requirements:
- Each workplace/location needs a weekly schedule, which therapist in which room, and with which client.
- they don't need a yearly calendar.
- No one-off events/sessions.
My thoughts:
Create a table with columns:
and another table with with cols:
I'm unfamiliar with SQL and don't know how many tables is too many for a small application, so I'm afraid of committing horrible design mistakes now.
Is this a good approach to the problem?
A 'stupid' alternative is to shove everything in the events table. I'm not sure how, use an array of IDs in a "participants" column? I read everywhere that using arrays is dangerous in DB, idk why.