Darstellung
prod_operation
Tabelle: prod_operation
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
idtenant_id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
tenant_id | int | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) |
id | bigint | Nein | — | Primärschlüssel |
base_quantity | double | Nein | — | base quantity |
base_unit_id | bigint | Nein | — | Fremdschlüssel → base unit |
calc_end_operation | datetime | Ja | — | calc end operation |
calc_start_operation | datetime | Ja | — | calc start operation |
confirmation_number | varchar(255) | Nein | — | confirmation number |
confirmation_status | smallint | Ja | — | confirmation status |
cost_center_id | bigint | Ja | — | Fremdschlüssel → cost center |
description | varchar(255) | Ja | — | Beschreibung |
detail_description | varchar(255) | Ja | — | detail description |
external_purchase_material_id | bigint | Ja | — | Fremdschlüssel → external purchase material |
is_external_operation | smallint | Nein | — | Boolean: External Operation |
item_number | bigint | Ja | — | item number |
machine_id | bigint | Nein | — | Fremdschlüssel → machine |
machine_time | double | Ja | — | machine time |
machine_time_in_hours | double | Ja | — | machine time in hours |
machine_unit_id | bigint | Ja | — | Fremdschlüssel → machine unit |
personel_time | double | Ja | — | personel time |
personel_unit_id | bigint | Ja | — | Fremdschlüssel → personel unit |
prod_order_id | bigint | Nein | — | Fremdschlüssel → prod order |
rou_head_id | bigint | Nein | — | Fremdschlüssel → rou head |
setup_time | double | Ja | — | setup time |
setup_time_in_hours | double | Ja | — | setup time in hours |
setup_unit_id | bigint | Ja | — | Fremdschlüssel → setup unit |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
date_created | datetime | Nein | — | Anlagezeitpunkt |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |