r/SQL • u/--Ether-- • Apr 07 '26
PostgreSQL ERD Review Request
Hello.
I am new to SQL. I am trying to design database that's a little more complicated than two tables & simple CRUD operations. My idea was to have some sort of system which is basically seniority based bidding. User's can bid on schedules, which are basically a collection of shifts. I seem to have hit a brick wall since I was not able to write a SELECT statement to get each users schedule based on their bid & seniority, so I added an "assigned_shift" table that will insert the data after I do calculation in the application side. Is this a good design?

View all comments
Show parent comment
1
u/--Ether-- Apr 07 '26
Thank you for the tips! I originally had shift_id under schedule because my thought process was "a schedule is a collection of shifts".