Darstellung
CompanyProductOption
Tabelle: company_product_option
Domain: CompanyProductOption · com.reybex.domain.core.registration
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.
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) |
company_product_id | bigint | Ja | — | Fremdschlüssel → company product |
quantity | int | Ja | 1 | Menge |
product_option_id | bigint | Ja | — | 0 - product, 1 - support, 2 - service |
country_id | bigint | Ja | — | Fremdschlüssel → country |
price | decimal(10, 2) | Ja | 0.00 | price |
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) |
start_date | datetime | Ja | — | Domain-Feld startDate |
end_date | datetime | Ja | — | Domain-Feld endDate |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
product_option_id | product_option (id) |
company_product_id | company_product (id) |