mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-10-28 23:51:17 +00:00
feat: series-aware schedule edits + waitlist ledger removal (M32)
PATCH /v1/catalog/class-schedules/:id patches a recurring rule and, with applyToFuture, retimes materialized future sessions to the new local start time on their existing dates — moving confirmed and waitlisted bookings with them and re-arming reminders. Zones-page schedule rows gain an inline editor (CS/EN). Also drops the vestigial waitlist_entries table (migration 00020): positions derive from bookings.created_at, so the ledger was written but never read. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
55fc0d06e3
commit
65a693cf38
17 files changed
+840
-230
No files matched your search
@@ -0,0 +1,18 @@
|
||||
-- +goose Up
|
||||
-- waitlist_entries was written on waitlist join/promotion but never read:
|
||||
-- every displayed position derives from bookings.created_at ordering via
|
||||
-- GetWaitlistPosition. Dropping the dead ledger rather than keeping a
|
||||
-- write-only table that implies state it does not hold.
|
||||
DROP TABLE IF EXISTS waitlist_entries;
|
||||
|
||||
-- +goose Down
|
||||
CREATE TABLE IF NOT EXISTS waitlist_entries (
|
||||
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
tenant_id uuid NOT NULL REFERENCES tenants(id) ON DELETE CASCADE,
|
||||
class_session_id uuid NOT NULL REFERENCES class_sessions(id) ON DELETE CASCADE,
|
||||
customer_name text NOT NULL,
|
||||
customer_email text NOT NULL,
|
||||
position integer NOT NULL,
|
||||
status text NOT NULL DEFAULT 'pending',
|
||||
created_at timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
Reference in new issue
Block a user