Darstellung
EmailTemplateRuleSales
Tabelle: ltt_email_template_rule_sales
Domain: EmailTemplateRuleSales · com.reybex.domain.pms
Modul: SYS
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.
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
id | bigint | Nein | 0 | Primärschlüssel (Domain: id) |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
name | varchar(100) | Ja | — | Bezeichnung / Name (Domain: name) |
email_template_id | bigint | Ja | — | Fremdschlüssel → email template |
sales_doc_type_id | bigint | Ja | — | Fremdschlüssel → sales doc type |
marktplace_id | bigint | Ja | — | Fremdschlüssel → marktplace |
profit_center_id | bigint | Ja | — | Fremdschlüssel → profit center |
payment_type_id | bigint | Ja | — | Fremdschlüssel → payment type |
report_id | bigint | Ja | — | Fremdschlüssel → report |
date_created | datetime | Ja | — | Anlagezeitpunkt |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
is_workflow_changed | smallint | Ja | 0 | Boolean: Workflow Changed |
email_filter_head_id | bigint | Ja | — | Fremdschlüssel → email filter head |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
tenant_id | company (tenant_id) |
email_template_id | email_template (id) |
sales_doc_type_id | ltt_sales_doc_type (id) |
marktplace_id | ltt_marktplace (id) |
profit_center_id | ltt_profit_center (id) |
report_id | ltt_report (id) |
email_filter_head_id | ltt_email_filter_head (id) |