docs: correct interest storage comment and record event scoping gap
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
fad639d690
commit
8ce641ea86
2 files changed
+3
-3
No files matched your search
@@ -37,7 +37,7 @@
|
||||
- Columns: `event_lead_id`, `interest_id`, `company_id` NOT NULL.
|
||||
- PK `(event_lead_id, interest_id)`.
|
||||
|
||||
`user_id` and `event_uuid` cross into other tables without foreign keys, like `event_salesperson`. Every query filters on `company_id`, which comes from the logged-in admin and never from the request.
|
||||
`user_id` and `event_uuid` cross into other tables without foreign keys, like `event_salesperson`. Every query on the new tables filters on `company_id`, which comes from the logged-in admin and never from the request. `ponytail:` the change-3 `event` table has no `company_id`, so event lookups are not company-scoped; add it with the multi-company move.
|
||||
|
||||
**Calls I made:**
|
||||
- Name is required: a lead with no name cannot be followed up.
|
||||
@@ -122,7 +122,7 @@ The event picker and capture accept enabled events only. `GET /api/admin/event-l
|
||||
|
||||
**Capture form options:** `GET /api/admin/event-leads/interest-options` (`BO_EVENT_LEADS`) returns active interests. An inactive interest already on an event lead still shows on that lead and can be removed, but cannot be newly added (`INACTIVE_INTEREST`).
|
||||
|
||||
**Backend:** `services-counter` provides `/counter/interest/findByCompany/{companyId}`, `/counter/interest/save`, and a `findByIds` used by the listing.
|
||||
**Backend:** `services-counter` provides `/counter/interest/findByCompany/{companyId}`, `/counter/interest/save`, and `findByIds` (unused in phase 1: `mobile-api` reads the whole company list once per request).
|
||||
|
||||
### 9. Modules and access
|
||||
|
||||
|
||||
Reference in new issue
Block a user