adding endpoints

This commit is contained in:
2026-09-18 12:26:25 -04:00
parent d5c341d1fc
commit f38a178fcd
44 changed files with 1302 additions and 4 deletions
+23
View File
@@ -0,0 +1,23 @@
from scheduler.database import storage
def define_schedule_fields():
# include user_id to identify the employee
# include company_id if schedules need to be filtered by company
# include day_of_week for the assigned day
# include shift value for morning, afternoon, or evening
# include enter_time and out_time for clock-in and clock-out
pass
def register_user_enter_and_out(connection, user_id, enter_time, day_of_week, out_time):
# Add manager validation before saving once scheduling rules are complete.
return storage.add_schedule(connection, user_id, enter_time, day_of_week, out_time)
def output_weekly_schedule():
# group saved schedules by day of week
# inside each day, group schedules by shift
# list employee names for each shift
# show missing coverage when a shift has fewer than two employees
pass