Darstellung
ltt_doc_type
Tabelle: ltt_doc_type
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
id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
id | bigint auto_increment | Ja | — | Primärschlüssel |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) |
name | varchar(100) | Ja | — | Bezeichnung / Name |
type | varchar(50) | Ja | — | type |
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_contract | tinyint(1) | Ja | — | Boolean: Contract |
is_offer | tinyint(1) | Ja | — | Boolean: Offer |
is_order | tinyint(1) | Ja | — | Boolean: Order |
is_delnote | tinyint(1) | Ja | — | Boolean: Delnote |
is_invoice | tinyint(1) | Ja | — | Boolean: Invoice |
is_creditnote | tinyint(1) | Ja | — | Boolean: Creditnote |
is_recurrence | tinyint(1) | Ja | — | Boolean: Recurrence |
offer_type | smallint | Ja | 0 | offer type |
order_type | smallint | Ja | 0 | order type |
delnote_type | smallint | Ja | 0 | delnote type |
invoice_type | smallint | Ja | 0 | invoice type |
creditnote_type | smallint | Ja | 0 | creditnote type |
contract_type | smallint | Ja | 0 | contract type |
report_id | bigint | Ja | — | Fremdschlüssel → report |
report2_id | bigint | Ja | — | Fremdschlüssel → report2 |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
tenant_id | company (tenant_id) |
report_id | ltt_report (id) |
report2_id | ltt_report (id) |