feat: event lead capture (change 4a) #7

Merged
ngqile merged 14 commits from add-event-lead-capture into main 2026-11-27 06:21:39 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 8ce641ea86 - Show all commits

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
+1 -1
View File
@@ -152,7 +152,7 @@ export interface SalespersonOption {
}
/** An interest (product/service) row used to tag leads.
* Stored in the mobile-api admin interests table, sorted by sortOrder. */
* Stored in services-counter (`interest`), served by mobile-api `/api/admin/interests`, sorted by sortOrder. */
export interface AdminInterestEntity {
id?: number;
name?: string;