Darstellung
ContactType
Tabelle: lt_contact_type
Domain: ContactType · 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
id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
id | bigint auto_increment | Ja | — | Primärschlüssel (Domain: id) |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
name | varchar(100) | Nein | — | Bezeichnung / Name (Domain: name) |
type | int | Ja | — | 0=Interessent, 1=Kunde, 2=Lieferant, 3=beides, 4=Partner, 5=Handelsvertreter |
account_type_id | bigint | Ja | — | Fremdschlüssel → account type |
gl_account_id | bigint | Ja | — | Fremdschlüssel → gl account |
gl_prepayment_account_id | bigint | Ja | — | Fremdschlüssel → gl prepayment account |
number_range_id | bigint | Ja | — | Fremdschlüssel → number range |
datev_number_range_id | bigint | Ja | — | Fremdschlüssel → datev number range |
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) |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
is_disabled | smallint | Ja | 0 | Boolean: Disabled |
sort_order | int | Ja | — | sort order |
is_concern | smallint | Ja | 0 | Boolean: Concern |
country_type | int | Ja | 0 | country type |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
account_type_id | ltt_account_type (id) |
gl_account_id | account (id) |
tenant_id | company (tenant_id) |
gl_prepayment_account_id | account (id) |