The new person page offers 'Adatok megadása' (typed-in data, uses a slot) or 'Meghívom': a 'how compatible are we?' link with an optional name, e-mail and message (no links, 300 chars), shareable by copy, the phone's share menu, WhatsApp or Facebook. With an address we e-mail it too (at most 10 a day per user, opted-out addresses skipped, unsubscribe link included). The invitee lands on /meghivas/<token>, signs in, gives their own birth data if needed and gets the comparison; the inviter is told and lists pending invitations (revocable) on the persons page. No person slot is used. Also: the accepted e-mail links to /osszevetesek/<id>, and the cross grid no longer breaks on another user's chart (no highlights there). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
8 lines
420 B
SQL
8 lines
420 B
SQL
-- "How compatible are we?" invitations from the new person page: who it is
|
|
-- for (the inviter's own name for them) and, if the inviter asked us to
|
|
-- e-mail it, the address.
|
|
ALTER TABLE synastry_invites
|
|
ADD COLUMN label text CHECK (char_length(label) <= 80),
|
|
ADD COLUMN invitee_email text;
|
|
CREATE INDEX synastry_invites_emailed_idx ON synastry_invites (inviter_id, created_at) WHERE invitee_email IS NOT NULL;
|