Darstellung
contact_person_opportunities
Tabelle: contact_person_opportunities
Domain: Keine zugeordnete Domain-Entität (Hilfstabelle, Legacy oder mandantenspezifisch).
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
crm_opportunity_idcontact_person_id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
crm_opportunity_id | bigint | Nein | — | Fremdschlüssel → crm opportunity |
contact_person_id | bigint | Nein | — | Fremdschlüssel → contact person |
customer_id | bigint | Ja | — | Fremdschlüssel → customer |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
contact_person_id | contact_person (id) |
crm_opportunity_id | crm_opportunity (id) |
customer_id | customer (id) |