teqo/src/migrations
Francisco Ignácio Fontoura Solla c4866fabc0 Add /campanha internal area with isolated Payload auth
Introduce the internal campaign-management area gated by its own
authentication, kept isolated from the Payload admin so a campaign
session and an admin session can coexist in one browser.

- Add separate `campaignUser` auth collection (not `users` + roles)
- Authenticate via an isolated httpOnly `campaign-token` cookie scoped
  to /campanha, distinct from the default `payload-token`
- Add loginCampaign/logoutCampaign server actions and getCampaignUser
  session verification helper
- Add public login route and a protected (app) route group whose
  layout enforces the auth barrier
- Add migration 20260716_010420_add_campaign_user and document the
  auth foundation in AGENTS.md
2026-07-15 22:33:26 -03:00
..
20260715_163458_initial.json Isolate local/dev and tests from the production database 2026-07-15 13:52:30 -03:00
20260715_163458_initial.ts Isolate local/dev and tests from the production database 2026-07-15 13:52:30 -03:00
20260715_163500_consent_text_to_jsonb.ts Isolate local/dev and tests from the production database 2026-07-15 13:52:30 -03:00
20260715_181058_add_post_and_tag.json Add Post and Tag collections for news and publications 2026-07-15 19:12:11 -03:00
20260715_181058_add_post_and_tag.ts Add Post and Tag collections for news and publications 2026-07-15 19:12:11 -03:00
20260715_215834_rename_tag_visible_to_hidden.json Add Post and Tag collections for news and publications 2026-07-15 19:12:11 -03:00
20260715_215834_rename_tag_visible_to_hidden.ts Add Post and Tag collections for news and publications 2026-07-15 19:12:11 -03:00
20260716_010420_add_campaign_user.json Add /campanha internal area with isolated Payload auth 2026-07-15 22:33:26 -03:00
20260716_010420_add_campaign_user.ts Add /campanha internal area with isolated Payload auth 2026-07-15 22:33:26 -03:00
index.ts Add /campanha internal area with isolated Payload auth 2026-07-15 22:33:26 -03:00