Skip to content

Email ​

Tabelle: email
Domain: Email · com.reybex.domain.pms
Modul: SYS

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

Spalten ​

SpalteSQL-TypNULLDefaultBeschreibung
idbigint auto_incrementJa—Primärschlüssel (Domain: id)
project_idbigintJa—Fremdschlüssel → project
task_idbigintJa—Fremdschlüssel → task
customer_idbigintJa—Fremdschlüssel → customer
crm_action_idbigintJa—Fremdschlüssel → crm action
email_fromvarchar(500) collate utf8mb4_unicode_ciJa—email from
email_tovarchar(500) collate utf8mb4_unicode_ciJa—email to
email_ccvarchar(500) collate utf8mb4_unicode_ciJa—Domain-Feld emailCc
email_bccvarchar(500) collate utf8mb4_unicode_ciJa—Domain-Feld emailBcc
reply_tovarchar(500) collate utf8mb4_unicode_ciJa—Domain-Feld replyTo
subjectvarchar(500) collate utf8mb4_unicode_ciJa—Domain-Feld subject
is_readsmallintJa0Boolean: Read
is_forwardsmallintJa0Boolean: Forward
is_replysmallintJa0Boolean: Reply
has_attachmentsmallintJa0Domain-Feld hasAttachment
received_datedatetimeJa—Domain-Feld receivedDate
sent_datedatetimeJa—Domain-Feld sentDate
unique_idvarchar(250) collate utf8mb4_unicode_ciJa—Domain-Feld uniqueId
folder_namevarchar(250) collate utf8mb4_unicode_ciJa—Domain-Feld folderName
main_email_idbigintJa—Fremdschlüssel → main email
date_createddatetimeJa—Anlagezeitpunkt
last_updateddatetimeJaCURRENT_TIMESTAMPLetzte Änderung
created_by_idbigintJa—Angelegt von (Benutzer-ID)
updated_by_idbigintJa—Geändert von (Benutzer-ID)
tenant_idbigintJa—Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId)
is_deletesmallintJa0Soft-Delete (0 = aktiv, 1 = gelöscht)
bodylongtext collate utf8mb4_unicode_ciJa—Domain-Feld body
modified_bodylongtext collate utf8mb4_unicode_ciJa—Domain-Feld modifiedBody
invoice_idbigintJa—Fremdschlüssel → invoice
email_account_idbigintJa—Fremdschlüssel → email account
is_htmlsmallintJa0Boolean: Html
is_sendsmallintJa0Boolean: Send
categorysmallintJa0Domain-Feld category
is_starredsmallintJa0Domain-Feld isStarred
is_answeredsmallintJa0Boolean: Answered
is_forwardedsmallintJa0Boolean: Forwarded
sales_head_idbigintJa—Fremdschlüssel → sales head
is_verificationsmallintJa0Boolean: Verification
is_system_emailsmallintJa1Boolean: System Email
email_workflow_queue_idbigintJa—Fremdschlüssel → email workflow queue
is_encryptedtinyint(1)Ja0Boolean: Encrypted
main_email_keytextJa—Domain-Feld mainEmailKey
crm_opportunity_idbigintJa—Fremdschlüssel → crm opportunity

Fremdschlüssel ​

Spalte(n)Referenz
email_workflow_queue_idemail_workflow_queue (id)
project_idproject (id)
task_idtask (id)
customer_idcustomer (id)
crm_action_idcrm_action (id)
tenant_idcompany (tenant_id)
main_email_idemail (id)
invoice_idinvoice (id)
email_account_idemail_account (id)
sales_head_idsales_head (id)

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