-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Description
Implement a flexible and scalable configuration system that allows businesses to define their weekly availability (Limiting to 7 days at a time for now). Each configuration should capture working days, working hours, and optional breaks. This will serve as the basis for booking, scheduling, and slot generation logic.
Key Requirements
Allow businesses to define availability for each day of the week
Each day should support:
- startTime and endTime
- Optional multiple breaks (start/end pairs)
- Should support 7 days configuration at a time
- Should allow updates to availability after creation
- Prevent overlapping break and working periods
- Efficient structure to keep the data minimal and easy to query at scale
Suggested Implementation
Entity: BusinessAvailability, BusinessAvailabilitySlot (already exist in the project)
Endpoint Actions: POST, GET, UPDATE, DELETE, /{id}
Considerations
- Make this structure extensible for recurring weekly schedules
- Evaluate performance at scale (indexing by business + day)
- Future-proof by allowing timezone and holiday exceptions
Why This Is Needed
This feature lays the groundwork for accurate schedule generation, slot booking, and ensures businesses retain control over their operational hours.
Drop a comment if you need any clarification
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed