# Study details and sign-up

Run `2026-11-24-study-participation.sql` once on the shared project database before deploying these pages. It adds optional study details and the `study_signups` table. The homepage and search still use `view_opportunities`. The new metadata is read from `opportunities` by study ID.

Populate the new fields with information supplied by each researcher. The date of an existing listing remains blank until its real posting date is known. New records receive a posting timestamp by default. Use `online`, `in_person`, or `hybrid` for `study_mode`. The current posting and admin forms keep working. Enter the new fields in the database until those forms expose them.

On an open study, submit a name, USC email, academic year, and optional message. The page confirms receipt and stores one interest request per study and address. The study owner can see those requests on the detail page and follow up by email. The separate Save study action continues to use `users_opportunities`.

The migration and site were exercised in a disposable MariaDB database. Checks covered applying the migration twice, existing records with blank metadata, valid sign-up and persistence, repeat submissions, invalid inputs, closed studies, private owner access, and saving and removing bookmarked studies. The shared database still needs the migration.
