Darstellung
CampaignParticipant
Tabelle: crm_campaign_participant
Domain: CampaignParticipant · com.reybex.domain.crm
Modul: CRM
Partner-Hinweise
- Daten liegen mandantengetrennt – bei SELECT fast immer
tenant_id = :mandantsetzen (Spalte ggf.TenantIdin älteren Tabellen). - Schreibende SQL (
INSERT/UPDATE/DELETE) nur in abgestimmten Export-/Report-Jobs (Transaktion BAS23) und nie ohne Freigabe durch reybex. - Für API-Integrationen bevorzugt die API statt direkter DB-Zugriffe.
Primärschlüssel
idcampaign_id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
id | bigint auto_increment | Ja | — | Primärschlüssel (Domain: id) |
campaign_id | bigint | Nein | — | Fremdschlüssel → campaign |
customer_id | bigint | Ja | — | Fremdschlüssel → customer |
customer_employee_id | bigint | Ja | — | Fremdschlüssel → customer employee |
contact_type_id | bigint | Ja | — | Fremdschlüssel → contact type |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
date_created | datetime | Ja | — | Anlagezeitpunkt |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
action_status_id | bigint | Ja | — | Fremdschlüssel → action status |
is_actions_executed | smallint | Ja | 0 | Boolean: Actions Executed |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
is_accomplished | smallint | Ja | 0 | Boolean: Accomplished |
cp_status_id | bigint | Ja | — | Fremdschlüssel → cp status |
is_email_send | smallint | Ja | 0 | Boolean: Email Send |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
customer_employee_id | customer_employee (id) |
campaign_id | crm_campaign (id) |
customer_id | customer (id) |
action_status_id | lt_action_status (id) |
contact_type_id | lt_contact_type (id) |
cp_status_id | ltt_crm_campaign_partic_status (id) |
tenant_id | company (tenant_id) |