Auto-RSVP when claiming a slot

Claiming a slot now also adds the person to the going list if they
aren't already there (case-insensitive name match).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 22:53:17 -04:00
parent 78ac8f3677
commit 087becdf58
3 changed files with 35 additions and 0 deletions
+3
View File
@@ -69,6 +69,9 @@ DELETE FROM rsvps WHERE id = ?;
-- name: CountRsvps :one
SELECT COUNT(*) FROM rsvps WHERE event_id = ?;
-- name: GetRsvpByName :one
SELECT * FROM rsvps WHERE event_id = ? AND name = ? COLLATE NOCASE LIMIT 1;
-- name: GetUserByPhone :one
SELECT * FROM users WHERE phone = ?;