feat: add volunteer shift signup app
Initial source, tests, migrations, and local Docker setup for the Hope Food Pantry volunteer scheduler.
This commit is contained in:
commit
f1a46e2ba7
129 files changed
+25290
No files matched your search
@@ -0,0 +1,7 @@
|
||||
-- A shared inbox can sign up more than one person on the same shift.
|
||||
-- The same person, matched by name without regard to case, still takes only one spot.
|
||||
DROP INDEX signups_one_confirmed_email_per_shift;
|
||||
|
||||
CREATE UNIQUE INDEX signups_one_confirmed_person_per_shift
|
||||
ON signups (shift_id, email_norm, name COLLATE NOCASE)
|
||||
WHERE status = 'confirmed' AND email_norm IS NOT NULL AND name IS NOT NULL;
|
||||
Reference in new issue
Block a user