Darstellung
lt_expense_type
Tabelle: lt_expense_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 | Ja | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) |
name | varchar(100) | Nein | — | Bezeichnung / Name |
type | smallint | Ja | 1 | type |
material_id | bigint | Ja | — | Fremdschlüssel → material |
is_faktura_by_fix_price | smallint | Nein | 0 | Boolean: Faktura By Fix Price |
price | decimal(18, 2) | Ja | 0.00 | price |
show_quantity | smallint | Ja | 1 | show quantity |
show_unit | smallint | Ja | 1 | show unit |
show_single_date | smallint | Ja | 1 | show single date |
show_interval_date | smallint | Ja | 1 | show interval date |
is_manual_price | smallint | Ja | 1 | Boolean: Manual Price |
show_paid | smallint | Ja | 1 | show paid |
show_long_text | smallint | Ja | 1 | show long text |
show_subsistence | smallint | Ja | 0 | show subsistence |
standard_unit_id | bigint | Ja | — | Fremdschlüssel → standard unit |
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) |