Darstellung
ProductOption
Tabelle: product_option
Domain: ProductOption · 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) |
name | varchar(50) | Nein | — | Bezeichnung / Name (Domain: name) |
code | varchar(200) | Ja | — | Code / Kurzkennzeichen (Domain: code) |
attribute_code | varchar(500) | Ja | — | attribute code |
type | smallint | Ja | 0 | type |
group_name | varchar(20) | Ja | — | Domain-Feld groupName |
optional_transactions | varchar(255) | Ja | — | Domain-Feld optionalTransactions |
order_pos | smallint | Ja | 1 | order pos |
included_quantity | int | Ja | 1 | included quantity |
price_per_option | decimal(10, 2) | Ja | 0.00 | price per option |
product_id | bigint | Ja | — | Fremdschlüssel → product |
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) |
description | varchar(500) | Ja | — | Beschreibung (Domain: description) |
price_month | decimal(10, 2) | Ja | 0.00 | price month |
price_year | decimal(10, 2) | Ja | 0.00 | price year |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
product_id | product (id) |