Darstellung
CrmAction
Tabelle: crm_action
Domain: CrmAction · 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
idtenant_idcustomer_id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
id | bigint auto_increment | Ja | — | Primärschlüssel (Domain: id) |
main_action_id | bigint | Ja | — | Fremdschlüssel → main action |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
customer_id | bigint | Nein | — | Fremdschlüssel → customer |
action_text | varchar(255) | Nein | — | Domain-Feld actionText |
action_type_id | bigint | Ja | — | Fremdschlüssel → action type |
action_status_id | bigint | Nein | — | Fremdschlüssel → action status |
action_date | datetime | Nein | — | Domain-Feld actionDate |
action_reason_id | bigint | Ja | — | Fremdschlüssel → action reason |
action_priority_id | bigint | Ja | — | Fremdschlüssel → action priority |
customer_employee_id | bigint | Ja | — | Fremdschlüssel → customer employee |
user_id | bigint | Nein | — | Fremdschlüssel → user |
user_delegated_to_id | bigint | Ja | — | Fremdschlüssel → user delegated to |
created | date | Ja | — | created |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
action_text_long | text | Ja | — | Domain-Feld actionTextLong |
is_delete | smallint | Ja | 0 | Soft-Delete (0 = aktiv, 1 = gelöscht) |
date_created | datetime | Ja | — | Anlagezeitpunkt |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
campaign_id | bigint | Ja | — | Fremdschlüssel → campaign |
is_resubmission | smallint | Ja | 0 | Boolean: Resubmission |
is_inbound | smallint | Ja | 0 | Boolean: Inbound |
end_date | datetime | Ja | — | Domain-Feld endDate |
appointment_id | bigint | Ja | — | Fremdschlüssel → appointment |
create_appointment | smallint | Ja | 0 | create appointment |
progress | smallint | Ja | 0 | progress |
action_kind_id | bigint | Ja | — | Fremdschlüssel → action kind |
contact_person_id | bigint | Ja | — | Fremdschlüssel → contact person |
email_id | bigint | Ja | — | Fremdschlüssel → email |
is_sub_action | smallint | Ja | 0 | Boolean: Sub Action |
has_sub_actions | smallint | Ja | 0 | has sub actions |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
crm_opportunity_id | bigint | Ja | — | Fremdschlüssel → crm opportunity |
is_inform_user | smallint | Ja | 0 | Boolean: Inform User |
return_head_id | bigint | Ja | — | Fremdschlüssel → return head |
is_pinned | smallint | Ja | 0 | Boolean: Pinned |
reminder_sent_date | datetime | Ja | — | Domain-Feld reminderSentDate |
on | update cascade on delete set | Ja | — | on |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
user_delegated_to_id | user (id) |
customer_employee_id | customer_employee (id) |
action_type_id | ltt_action_type (id) |
action_kind_id | ltt_action_kind (id) |
action_priority_id | lt_action_priority (id) |
action_reason_id | ltt_action_reason (id) |
customer_id | customer (id) |
tenant_id | company (tenant_id) |
campaign_id | crm_campaign (id) |
appointment_id | appointment (id) |
action_status_id | lt_action_status (id) |
main_action_id | crm_action (id) |
user_id | user (id) |
return_head_id | return_head (id) |