Skip to content

CrmAction ​

Tabelle: crm_action
Domain: CrmAction · com.reybex.domain.crm
Modul: CRM

Partner-Hinweise ​

  • Daten liegen mandantengetrennt – bei SELECT fast immer tenant_id = :mandant setzen (Spalte ggf. TenantId in ä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.

→ Beispiel-SQLs (BAS23)

Primärschlüssel ​

  • id
  • tenant_id
  • customer_id

Spalten ​

SpalteSQL-TypNULLDefaultBeschreibung
idbigint auto_incrementJa—Primärschlüssel (Domain: id)
main_action_idbigintJa—Fremdschlüssel → main action
tenant_idbigintNein—Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId)
customer_idbigintNein—Fremdschlüssel → customer
action_textvarchar(255)Nein—Domain-Feld actionText
action_type_idbigintJa—Fremdschlüssel → action type
action_status_idbigintNein—Fremdschlüssel → action status
action_datedatetimeNein—Domain-Feld actionDate
action_reason_idbigintJa—Fremdschlüssel → action reason
action_priority_idbigintJa—Fremdschlüssel → action priority
customer_employee_idbigintJa—Fremdschlüssel → customer employee
user_idbigintNein—Fremdschlüssel → user
user_delegated_to_idbigintJa—Fremdschlüssel → user delegated to
createddateJa—created
created_by_idbigintJa—Angelegt von (Benutzer-ID)
action_text_longtextJa—Domain-Feld actionTextLong
is_deletesmallintJa0Soft-Delete (0 = aktiv, 1 = gelöscht)
date_createddatetimeJa—Anlagezeitpunkt
last_updateddatetimeJaCURRENT_TIMESTAMPLetzte Änderung
updated_by_idbigintJa—Geändert von (Benutzer-ID)
campaign_idbigintJa—Fremdschlüssel → campaign
is_resubmissionsmallintJa0Boolean: Resubmission
is_inboundsmallintJa0Boolean: Inbound
end_datedatetimeJa—Domain-Feld endDate
appointment_idbigintJa—Fremdschlüssel → appointment
create_appointmentsmallintJa0create appointment
progresssmallintJa0progress
action_kind_idbigintJa—Fremdschlüssel → action kind
contact_person_idbigintJa—Fremdschlüssel → contact person
email_idbigintJa—Fremdschlüssel → email
is_sub_actionsmallintJa0Boolean: Sub Action
has_sub_actionssmallintJa0has sub actions
unique_namevarchar(20)Ja—unique name
is_customer_specificsmallintJa0Boolean: Customer Specific
crm_opportunity_idbigintJa—Fremdschlüssel → crm opportunity
is_inform_usersmallintJa0Boolean: Inform User
return_head_idbigintJa—Fremdschlüssel → return head
is_pinnedsmallintJa0Boolean: Pinned
reminder_sent_datedatetimeJa—Domain-Feld reminderSentDate
onupdate cascade on delete setJa—on

Fremdschlüssel ​

Spalte(n)Referenz
user_delegated_to_iduser (id)
customer_employee_idcustomer_employee (id)
action_type_idltt_action_type (id)
action_kind_idltt_action_kind (id)
action_priority_idlt_action_priority (id)
action_reason_idltt_action_reason (id)
customer_idcustomer (id)
tenant_idcompany (tenant_id)
campaign_idcrm_campaign (id)
appointment_idappointment (id)
action_status_idlt_action_status (id)
main_action_idcrm_action (id)
user_iduser (id)
return_head_idreturn_head (id)

Nur für reybex-Partner. Nicht für Endkunden bestimmt.