Centurio System & Module Documentation
🏛️ Platform Architecture 🔑 Login
All Modules / core_platform / Identität & Rollenbasierte Sicherheit (RBAC)
🔐

Identität & Rollenbasierte Sicherheit (RBAC)

identity core_platform 🛡️ RLS Protected

Zentrale Authentifizierung, Session-Management, globale Benutzerkonten und tenant-spezifische Berechtigungsstufen.

Fachliche Bestimmung: Verwaltet Systembenutzer und Organisationen nach einem Two-Tier-Identity-Modell. Ein Benutzer kann global existieren und mehreren Mandanten (Tenants) mit unterschiedlichen Berechtigungsstufen (0=Kein Zugriff, 1=Lesen, 2=Schreiben, 3=Verwalten) zugeordnet sein. Sichert das System vor unberechtigten Zugriffen und erzwingt sichere Session-Cookies.

⚡ Workflows & Lifecycles

Authentifizierungs- und Autorisierungs-Lebenszyklus user_auth_lifecycle

Ablauf vom Anmeldeversuch über Passwortvalidierung und Session-Generierung bis zur Mandantenkontext-Bindung.

sequenceDiagram User->>AuthAPI: POST /login (email, password) AuthAPI->>DB: SELECT * FROM users WHERE email = ? AuthAPI->>AuthAPI: verify_password(hash, password) AuthAPI->>DB: SELECT role FROM organization_users WHERE user_id=? AND tenant_id=? AuthAPI-->>User: Set-Cookie: session_token (HttpOnly)
1. LOGIN_REQUEST
Anmeldeanfrage
Benutzer sendet E-Mail und Passwort via HTTPS POST /login.
Aktionen: Rate-Limiting prüfen, Brute-Force-Sperre
2. CREDENTIAL_CHECK
Passwortprüfung
Abgleich gegen bcrypt/Argon2-Hash in Tabelle users.
Aktionen: Audit Login-Versuch
3. CONTEXT_BINDING
Mandantenbindung
Ermittlung der zugewiesenen Organisation und Rollenstufe aus organization_users.
Aktionen: Session JWT ausstellen
4. AUTHENTICATED
Sitzung aktiv
Setzen des verschlüsselten HttpOnly-Cookies mit Tenant-Context-Header.
Aktionen: RLS ExecutionContext aktivieren

Benutzerbefehl: industry setup agent plan:command_industry_setup_agent

Geprüfter Durable-Plan (durable_plan), Start: manual_command.

1. industry_setup_agent
industry_setup_agent
{"key": "execute_command", "label": "Befehl prüfen, ausführen oder zur Freigabe vorlegen", "adapter": "agent.execute", "agent": "industry_setup_agent", "condition_fact": null}
Aktionen: industry_setup_agent

Benutzerbefehl: integrations consultant agent plan:command_integrations_consultant_agent

Geprüfter Durable-Plan (durable_plan), Start: manual_command.

1. integrations_consultant_agent
integrations_consultant_agent
{"key": "execute_command", "label": "Befehl prüfen, ausführen oder zur Freigabe vorlegen", "adapter": "agent.execute", "agent": "integrations_consultant_agent", "condition_fact": null}
Aktionen: integrations_consultant_agent

Benutzerbefehl: setup consultant agent plan:command_setup_consultant_agent

Geprüfter Durable-Plan (durable_plan), Start: manual_command.

1. setup_consultant_agent
setup_consultant_agent
{"key": "execute_command", "label": "Befehl prüfen, ausführen oder zur Freigabe vorlegen", "adapter": "agent.execute", "agent": "setup_consultant_agent", "condition_fact": null}
Aktionen: setup_consultant_agent

Benutzerbefehl: ui consultant agent plan:command_ui_consultant_agent

Geprüfter Durable-Plan (durable_plan), Start: manual_command.

1. ui_consultant_agent
ui_consultant_agent
{"key": "execute_command", "label": "Befehl prüfen, ausführen oder zur Freigabe vorlegen", "adapter": "agent.execute", "agent": "ui_consultant_agent", "condition_fact": null}
Aktionen: ui_consultant_agent

⚙️ Fachprozesse & Capabilities (System-Fachlogik)

Registrierte Fachoperationen und System-Capabilities dieses Moduls zur Steuerung von Workflows, Kaskaden und KI-Agenten.

Gesamt: 14 engine: 10 durable_plan: 4
Capability & Schlüssel Fachliche Bezeichnung Ausführung / Coverage Risikostufe & Freigabe Effekte & Kaskaden
Rechtsträgerstruktur lesen capability:legal_entity.list
Op: legal_entity.list
Intent: inspect_legal_entity_structure
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: read_only
Keine Seiteneffekte deklariert
Org Unit: create capability:orgunits.org_unit.create
Op: orgunits.org_unit.create
Objekt: org_unit
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: business_record
  • org_unit.create
Org Unit: delete capability:orgunits.org_unit.delete
Op: orgunits.org_unit.delete
Objekt: org_unit
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: business_record
  • org_unit.delete
Org Unit: set members capability:orgunits.org_unit.set_members
Op: orgunits.org_unit.set_members
Objekt: org_unit
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: business_record
  • org_unit.set_members
Org Unit: set user units capability:orgunits.org_unit.set_user_units
Op: orgunits.org_unit.set_user_units
Objekt: org_unit
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: business_record
  • org_unit.set_user_units
Org Unit: update capability:orgunits.org_unit.update
Op: orgunits.org_unit.update
Objekt: org_unit
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: business_record
  • org_unit.update
Site: create or update site capability:sites.site.create_or_update_site
Op: sites.site.create_or_update_site
Objekt: site
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: business_record
  • site.create_or_update_site
Site: create order capability:sites.site.create_order
Op: sites.site.create_order
Objekt: site
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: business_record
  • site.create_order
Site: delete page capability:sites.site.delete_page
Op: sites.site.delete_page
Objekt: site
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: business_record
  • site.delete_page
Site: seed legal capability:sites.site.seed_legal
Op: sites.site.seed_legal
Objekt: site
Quelle: code:capability_registry
⚙️ Engine
✓ Auto Risiko: business_record
  • site.seed_legal
Benutzerbefehl: industry setup agent plan:command_industry_setup_agent
Benutzerbefehl: industry setup agent
Quelle: code:reviewed_execution_plan
durable_plan
✓ Auto
Keine Seiteneffekte deklariert
Benutzerbefehl: integrations consultant agent plan:command_integrations_consultant_agent
Benutzerbefehl: integrations consultant agent
Quelle: code:reviewed_execution_plan
durable_plan
✓ Auto
Keine Seiteneffekte deklariert
Benutzerbefehl: setup consultant agent plan:command_setup_consultant_agent
Benutzerbefehl: setup consultant agent
Quelle: code:reviewed_execution_plan
durable_plan
✓ Auto
Keine Seiteneffekte deklariert
Benutzerbefehl: ui consultant agent plan:command_ui_consultant_agent
Benutzerbefehl: ui consultant agent
Quelle: code:reviewed_execution_plan
durable_plan
✓ Auto
Keine Seiteneffekte deklariert

🧠 Fachprozess-Erzählung & Dual Knowledge Architektur

Synthese aus der ideologischen Blaupause (Meta-Fachlogik / Soll), der faktischen System-Implementierung (System-Fachlogik / Ist) und No-Code Customizing für KI-Consultants.

Dual Knowledge Layer
📖

Der durchgängige Businessprozess im Detail (End-to-End Fließtext-Erzählung)

Der funktionale Ablauf von Identität & Rollenbasierte Sicherheit (RBAC) in der Plattform-Architektur

Das Modul identity erbringt zentrale Infrastruktur- und Steuerungsdienste im Monolithen. Jeder Aufruf durchläuft die zweistufige Sicherheitsarchitektur: Zunächst verifiziert der Session-Guard die Identität des Benutzers, woraufhin die PostgreSQL Row-Level-Security (RLS) aktiviert wird. Dadurch ist garantiert, dass Datenzugriffe mathematisch und physisch ausschließlich auf den authentifizierten tenant_id-Kontext beschränkt bleiben.

Mutationen und administrative Aktionen werden über transaktionale Services ausgeführt. Bei zustandsverändernden Operationen schreibt das System simultan in die betriebliche Zieltabelle und in die transaktionale Outbox. Asynchrone Worker greifen diese Signale ab und kaskadieren Ereignisse an nachgelagerte Module, ohne den synchronen HTTP-Pfad zu blockieren. Jeder Zugriff wird unveränderbar im Audit-Trail protokolliert.

🏛️

Meta-Fachlogik: Ideologische Blaupause, Soll-Weltbild & Normen

Meta-Fachlogik: Sicherheits- und Plattform-Architektur

Basiert auf den Standards ISO/IEC 27001:2022 (Informationssicherheits-Managementsysteme), den BSI IT-Grundschutz-Bausteinen (APP.3.1 Webanwendungen, SYS.1.1 Allgemeiner Server) und Art. 32 DSGVO.

  • Mandantentrennung als Primärinvariante: Keine Mandantendaten dürfen jemals ohne tenant_id-Filter geladen oder mutiert werden. Das Soll-Modell verlangt die Durchsetzung auf Datenbankebene via PostgreSQL RLS.

  • Unveränderbarkeit von Sicherheitsereignissen: Protokolldateien, Logins, Berechtigungsänderungen und Konfigurationsmutationen müssen revisionssicher und schreibgeschützt festgeschrieben werden.

Normbezug für identity

Prüfkatalog Standards-Registry v2026.10.1. Dieser Abschnitt ordnet Prüfreferenzen zu und stellt nicht fest, dass das Modul eine Norm einhält; keine Kataloganforderung ist als PASS bewertet.

Geführte Prüfreferenzen:

  • iso-iec-27001-2022, ISO/IEC 27001:2022 Information security, cybersecurity and privacy protection — ISMS — Requirements (inkl. Amd 1:2024), Ausgabe ISO/IEC 27001:2022 + Amd 1:2024. Art: normative. Volltext liegt nicht vor. Keine Klauselprüfung. Keine modulspezifische Kataloganforderung. Die Zuordnung bleibt eine Prüfreferenz.
  • eu-gdpr-2016-679, Regulation (EU) 2016/679 (General Data Protection Regulation, GDPR/DSGVO), Ausgabe Regulation (EU) 2016/679, anwendbar ab 2018-05-25. Art: regulatory. Öffentlicher Text. Die Nennung ist keine Klauselprüfung. Keine modulspezifische Kataloganforderung. Die Zuordnung bleibt eine Prüfreferenz.

Plattformweite Katalogwerke mit Geltungsbereich all (unter anderem WCAG 2.2, EN 301 549 V4.1.1, ISO 9241-110:2020, ISO 9241-210:2019, ISO/IEC 25010:2023, ISO 9001:2026, ISO/IEC 27001:2022, APQC PCF 8.0, DSGVO, EU AI Act) umfassen dieses Modul mit. Wo der Volltext fehlt, bleibt der Zugang ohne Quelle, lizenzpflichtig oder nur als öffentliche Zusammenfassung gekennzeichnet. Auch diese Nennung weist keine eingehaltene Vorgabe nach.

⚙️

Systemische Fachlogik: Faktische Umsetzung in Centurio ERP & Capabilities

Systemische Fachlogik: Die faktische Umsetzung von Identität & Rollenbasierte Sicherheit (RBAC)

In Centurio ERP wird identity als modularer Monolith-Baustein unter app.modules.identity geführt. Die Autorisierung erfolgt über die zentrale RBAC-Engine mit Berechtigungs-Prüfung gegen Rollen und Berechtigungen. Datenänderungen lösen Outbox-Events aus, die über den PostgreSQL events-Bus verteilt werden. Idempotente Requests verhindern Replay-Angriffe und versehentliche Mehrfachausführungen.

🤖

KI-Consultant Leitfaden: Customizing- & No-Code-Konzept (Soll-Ist-Synthese)

AI Solution Architect Blueprint

KI-Consultant Blueprint: Customizing & No-Code Leitfaden für Identität & Rollenbasierte Sicherheit (RBAC)

  • No-Code Datenmodell-Erweiterung: Bei Bedarf können kundenspezifische Zusatzfelder im No-Code Customizing Studio angelegt werden.

  • Workflow-Integration: Administrative Ereignisse können als Trigger in der Canvas No-Code DAG Engine genutzt werden.

  • Sicherheitsregeln: Vor kritischen Systemänderungen sind Human-in-the-Loop Freigabegates einzurichten.

📚 Operative Prozessbegriffe & Transaktionsschnittstellen

Zentrale Fachbegriffe im Prozesszusammenhang (Operatives Modell)
Mandantenisolation (RLS)
PostgreSQL Row-Level-Security zur physischen und logischen Trennung aller Kundendaten auf Datenbankebene.
Zweistufige Authentifizierung
Strikte Trennung zwischen globalem Benutzerkonto und mandantenbezogener Rollenzuweisung (RBAC).
Transaktionale Outbox
Entkoppeltes Event-Publishing zur Vermeidung von Distributed-Transaction-Inkonsistenzen.
Revisionssicherer Audit-Trail
Lückenlose Aufzeichnung aller datenverändernden Zugriffe für Compliance und Rechnungsprüfung.
📥 Eingänge & Trigger (Inputs)
  • Systemaufrufe über REST-API oder Web-Portal
  • Hintergrund-Worker und Cron-Jobs
  • Ereignisse über den Outbox-Eventbus
📤 Ausgänge & Arbeitsergebnisse (Outputs)
  • Ausführungs- und Protokolldaten
  • Audit-Events im Revisionsjournal
  • Veränderte Systemzustände
⚡ Kaskaden & Folgeprozesse (Cascades)
  • security_event -> admin_alert: Alarmierung bei verdächtigen Zugriffen
  • config_changed -> cache_invalidation: Sofortige Aktualisierung
🛡️ Nebenprozesse & Resilienz
  • Manuelle Ausnahmebehandlung durch berechtigte Sachbearbeiter
  • Revisionssichere Protokollierung im Audit-Trail
💡 No-Code Checkliste & Praxistipps
  • Rollen- und Berechtigungsstufen exakt an Mitarbeiteraufgaben anpassen
  • Sicherheitsrichtlinien für Passwörter und Sessions aktivieren

🗄️ Data Models & Fields

AbcClassificationRuns abc_classification_runs RLS Aktiv
19 Fields / Columns

Tabelle abc_classification_runs

Feldname Data Type Required Schlüssel Functional Meaning
criterion VARCHAR(8) Ja * - Feld criterion
lookback_days INTEGER Ja * - Feld lookback_days
a_share NUMERIC(5, 4) Ja * - Feld a_share
b_share NUMERIC(5, 4) Ja * - Feld b_share
fingerprint VARCHAR(64) Ja * - Feld fingerprint
product_count INTEGER Ja * - Feld product_count
changed_count INTEGER Ja * - Feld changed_count
class_counts JSONB Ja * - Feld class_counts
changes JSONB Ja * - Feld changes
applied_at DATETIME Ja * - Feld applied_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
AccountCodes account_codes RLS Aktiv
14 Fields / Columns

Tabelle account_codes

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
name VARCHAR(255) Ja * - Feld name
account_type VARCHAR(48) Ja * - Feld account_type
description TEXT Nein - Feld description
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
AiBudgetTopups ai_budget_topups RLS Aktiv
14 Fields / Columns

Tabelle ai_budget_topups

Feldname Data Type Required Schlüssel Functional Meaning
kind VARCHAR(16) Ja * - Feld kind
package_amount NUMERIC(14, 2) Ja * - Feld package_amount
package_gb INTEGER Nein - Feld package_gb
created_by UUID Nein - Feld created_by
payment_confirmed_at DATETIME Nein - Feld payment_confirmed_at
operator_invoice_id UUID Nein - Feld operator_invoice_id
operator_invoice_document_id UUID Nein - Feld operator_invoice_document_id
refunded_amount NUMERIC(14, 2) Ja * - Feld refunded_amount
operator_credit_note_id UUID Nein - Feld operator_credit_note_id
operator_credit_note_document_id UUID Nein - Feld operator_credit_note_document_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
AiUsage ai_usage RLS Aktiv
20 Fields / Columns

Tabelle ai_usage

Feldname Data Type Required Schlüssel Functional Meaning
agent_run_id UUID Nein FK ➔ agent_runs.id Feld agent_run_id
provider VARCHAR(32) Ja * - Feld provider
model VARCHAR(64) Ja * - Feld model
operation VARCHAR(32) Ja * - Feld operation
input_tokens INTEGER Ja * - Feld input_tokens
output_tokens INTEGER Ja * - Feld output_tokens
pages INTEGER Ja * - Feld pages
cost NUMERIC(10, 6) Ja * - Feld cost
duration_ms INTEGER Nein - Feld duration_ms
provider_request_id VARCHAR(160) Nein - Feld provider_request_id
cost_source VARCHAR(32) Ja * - Feld cost_source
provider_usage JSONB Ja * - Feld provider_usage
period VARCHAR(7) Ja * - Feld period
billable_amount NUMERIC(14, 6) Ja * - Feld billable_amount
markup_rate NUMERIC(7, 4) Ja * - Feld markup_rate
is_byok BOOLEAN Ja * - Feld is_byok
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
ApiConnectors api_connectors RLS Aktiv
21 Fields / Columns

Tabelle api_connectors

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(255) Ja * - Feld name
base_url VARCHAR(2048) Ja * - Feld base_url
auth_type VARCHAR(32) Ja * - Feld auth_type
auth_config JSONB Ja * - Feld auth_config
secret_encrypted TEXT Nein - Feld secret_encrypted
source VARCHAR(16) Ja * - Feld source
spec_hash VARCHAR(64) Nein - Feld spec_hash
version INTEGER Ja * - Feld version
status VARCHAR(16) Ja * - Feld status
execution_allowed BOOLEAN Ja * - Feld execution_allowed
host_ok BOOLEAN Ja * - Feld host_ok
description VARCHAR(512) Nein - Feld description
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
AuditLogs audit_logs RLS Aktiv
14 Fields / Columns

Tabelle audit_logs

Feldname Data Type Required Schlüssel Functional Meaning
actor_type VARCHAR(16) Ja * - Feld actor_type
actor_id UUID Nein - Feld actor_id
action VARCHAR(64) Ja * - Feld action
entity_type VARCHAR(64) Ja * - Feld entity_type
entity_id UUID Nein - Feld entity_id
before_data JSONB Nein - Feld before_data
after_data JSONB Nein - Feld after_data
timestamp DATETIME Ja * - Feld timestamp
ip_address INET Nein - Feld ip_address
user_agent VARCHAR(512) Nein - Feld user_agent
agent_run_id UUID Nein FK ➔ agent_runs.id Feld agent_run_id
correlation_id UUID Nein - Feld correlation_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
AuthoredCapabilityActivations authored_capability_activations RLS Aktiv
13 Fields / Columns

Tabelle authored_capability_activations

Feldname Data Type Required Schlüssel Functional Meaning
capability_key VARCHAR(64) Ja * - Feld capability_key
capability_version_id UUID Ja * FK ➔ authored_capability_versions.id Feld capability_version_id
activated_by UUID Ja * - Feld activated_by
activated_at DATETIME Ja * - Feld activated_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ authored_capability_versions.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
AuthoredCapabilityVersions authored_capability_versions RLS Aktiv
19 Fields / Columns

Tabelle authored_capability_versions

Feldname Data Type Required Schlüssel Functional Meaning
capability_key VARCHAR(64) Ja * - Feld capability_key
version INTEGER Ja * - Feld version
label VARCHAR(120) Ja * - Feld label
description VARCHAR(1000) Ja * - Feld description
module VARCHAR(64) Ja * - Feld module
object_key VARCHAR(96) Ja * - Feld object_key
manifest JSONB Ja * - Feld manifest
manifest_hash VARCHAR(64) Ja * - Feld manifest_hash
status VARCHAR(16) Ja * - Feld status
simulation JSONB Nein - Feld simulation
simulation_hash VARCHAR(64) Nein - Feld simulation_hash
created_by UUID Ja * - Feld created_by
simulated_by UUID Nein - Feld simulated_by
simulated_at DATETIME Nein - Feld simulated_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
BankAccounts bank_accounts RLS Aktiv
21 Fields / Columns

Tabelle bank_accounts

Feldname Data Type Required Schlüssel Functional Meaning
bank_id UUID Nein FK ➔ banks.id Feld bank_id
legal_entity_id UUID Nein FK ➔ legal_entities.id Feld legal_entity_id
label VARCHAR(255) Ja * - Feld label
iban VARCHAR(34) Nein - Feld iban
bic VARCHAR(11) Nein - Feld bic
currency VARCHAR(3) Ja * - Feld currency
account_holder VARCHAR(255) Nein - Feld account_holder
account_kind VARCHAR(16) Ja * - Feld account_kind
gl_account_code VARCHAR(32) Nein - Feld gl_account_code
is_default BOOLEAN Ja * - Feld is_default
status VARCHAR(16) Ja * - Feld status
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ legal_entities.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
Banks banks RLS Aktiv
14 Fields / Columns

Tabelle banks

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(255) Ja * - Feld name
bic VARCHAR(11) Nein - Feld bic
country_code VARCHAR(2) Ja * - Feld country_code
status VARCHAR(16) Ja * - Feld status
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
BusinessProcessSteps business_process_steps RLS Aktiv
13 Fields / Columns

Tabelle business_process_steps

Feldname Data Type Required Schlüssel Functional Meaning
process_id UUID Ja * FK ➔ business_processes.id Feld process_id
source_id UUID Ja * FK ➔ process_sources.id Feld source_id
key VARCHAR(96) Ja * - Feld key
label VARCHAR(160) Ja * - Feld label
description TEXT Ja * - Feld description
position INTEGER Ja * - Feld position
apqc_code VARCHAR(32) Nein - Feld apqc_code
suggested_cskb_ids JSONB Ja * - Feld suggested_cskb_ids
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
BusinessProcesses business_processes RLS Aktiv
20 Fields / Columns

Tabelle business_processes

Feldname Data Type Required Schlüssel Functional Meaning
key VARCHAR(96) Ja * - Feld key
version INTEGER Ja * - Feld version
label VARCHAR(160) Ja * - Feld label
description TEXT Ja * - Feld description
status VARCHAR(16) Ja * - Feld status
apqc_code VARCHAR(32) Nein - Feld apqc_code
content_hash VARCHAR(64) Ja * - Feld content_hash
approved_by UUID Nein - Feld approved_by
approved_at DATETIME Nein - Feld approved_at
activated_by UUID Nein - Feld activated_by
activated_at DATETIME Nein - Feld activated_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
BusinessRequirements business_requirements RLS Aktiv
14 Fields / Columns

Tabelle business_requirements

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ consultant_cases.id Feld case_id
key VARCHAR(96) Ja * - Feld key
statement TEXT Ja * - Feld statement
interpretation TEXT Ja * - Feld interpretation
source VARCHAR(64) Ja * - Feld source
status VARCHAR(24) Ja * - Feld status
valid_until DATETIME Nein - Feld valid_until
contradictions JSONB Ja * - Feld contradictions
parameters JSONB Ja * - Feld parameters
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
CategoryAttributeBindings category_attribute_bindings RLS Aktiv
12 Fields / Columns

Tabelle category_attribute_bindings

Feldname Data Type Required Schlüssel Functional Meaning
category_id UUID Ja * FK ➔ product_categories.id Feld category_id
field_key VARCHAR(128) Ja * - Feld field_key
fieldset_group VARCHAR(64) Ja * - Feld fieldset_group
sequence INTEGER Ja * - Feld sequence
is_required BOOLEAN Ja * - Feld is_required
inherit_to_children BOOLEAN Ja * - Feld inherit_to_children
variant_role VARCHAR(48) Ja * - Feld variant_role
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
CategoryFieldsetActivations category_fieldset_activations RLS Aktiv
11 Fields / Columns

Tabelle category_fieldset_activations

Feldname Data Type Required Schlüssel Functional Meaning
category_id UUID Ja * FK ➔ product_categories.id Feld category_id
revision_id UUID Ja * FK ➔ category_fieldset_revisions.id Feld revision_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
CategoryFieldsetRevisions category_fieldset_revisions RLS Aktiv
17 Fields / Columns

Tabelle category_fieldset_revisions

Feldname Data Type Required Schlüssel Functional Meaning
category_id UUID Ja * FK ➔ product_categories.id Feld category_id
version INTEGER Ja * - Feld version
status VARCHAR(16) Ja * - Feld status
snapshot JSONB Ja * - Feld snapshot
content_hash VARCHAR(64) Ja * - Feld content_hash
simulation_result JSONB Nein - Feld simulation_result
approved_by UUID Nein - Feld approved_by
approved_at DATETIME Nein - Feld approved_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
CommissionAgreements commission_agreements RLS Aktiv
21 Fields / Columns

Tabelle commission_agreements

Feldname Data Type Required Schlüssel Functional Meaning
partner_id UUID Ja * FK ➔ marketing_partners.id Feld partner_id
name VARCHAR(255) Ja * - Feld name
contract_id UUID Nein - Feld contract_id
status VARCHAR(12) Ja * - Feld status
valid_from DATE Ja * - Feld valid_from
valid_to DATE Nein - Feld valid_to
currency VARCHAR(3) Ja * - Feld currency
attribution_rule VARCHAR(24) Ja * - Feld attribution_rule
window_days INTEGER Ja * - Feld window_days
multi_level_allowed BOOLEAN Ja * - Feld multi_level_allowed
approved_by UUID Nein - Feld approved_by
approved_at DATETIME Nein - Feld approved_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
CommissionEntitlements commission_entitlements RLS Aktiv
26 Fields / Columns

Tabelle commission_entitlements

Feldname Data Type Required Schlüssel Functional Meaning
agreement_id UUID Ja * FK ➔ commission_agreements.id Feld agreement_id
rule_version_id UUID Ja * FK ➔ commission_rule_versions.id Feld rule_version_id
partner_id UUID Ja * FK ➔ marketing_partners.id Feld partner_id
source_type VARCHAR(32) Ja * - Feld source_type
source_id UUID Ja * - Feld source_id
level INTEGER Ja * - Feld level
status VARCHAR(12) Ja * - Feld status
base_amount NUMERIC(14, 2) Ja * - Feld base_amount
amount NUMERIC(14, 2) Ja * - Feld amount
currency VARCHAR(3) Ja * - Feld currency
calc_inputs JSONB Ja * - Feld calc_inputs
calc_trace JSONB Ja * - Feld calc_trace
occurred_at DATETIME Ja * - Feld occurred_at
eligible_at DATETIME Nein - Feld eligible_at
payout_batch_id UUID Nein FK ➔ commission_payout_batches.id Feld payout_batch_id
approved_by UUID Nein - Feld approved_by
approved_at DATETIME Nein - Feld approved_at
status_reason TEXT Nein - Feld status_reason
idempotency_key VARCHAR(160) Ja * - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
metadata JSONB Ja * - Feld metadata
CommissionLedgerEntries commission_ledger_entries RLS Aktiv
16 Fields / Columns

Tabelle commission_ledger_entries

Feldname Data Type Required Schlüssel Functional Meaning
entitlement_id UUID Ja * FK ➔ commission_entitlements.id Feld entitlement_id
partner_id UUID Ja * - Feld partner_id
entry_type VARCHAR(12) Ja * - Feld entry_type
amount NUMERIC(14, 2) Ja * - Feld amount
currency VARCHAR(3) Ja * - Feld currency
reason VARCHAR(255) Ja * - Feld reason
source_ref VARCHAR(128) Nein - Feld source_ref
batch_id UUID Nein - Feld batch_id
posted_at DATETIME Ja * - Feld posted_at
posted_by UUID Nein - Feld posted_by
idempotency_key VARCHAR(160) Ja * - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
CommissionPayoutBatches commission_payout_batches RLS Aktiv
21 Fields / Columns

Tabelle commission_payout_batches

Feldname Data Type Required Schlüssel Functional Meaning
number VARCHAR(40) Ja * - Feld number
status VARCHAR(12) Ja * - Feld status
period_end DATE Ja * - Feld period_end
currency VARCHAR(3) Ja * - Feld currency
total_amount NUMERIC(14, 2) Ja * - Feld total_amount
partner_totals JSONB Ja * - Feld partner_totals
supplier_invoice_ids JSONB Ja * - Feld supplier_invoice_ids
approved_by UUID Nein - Feld approved_by
approved_at DATETIME Nein - Feld approved_at
invoiced_at DATETIME Nein - Feld invoiced_at
paid_at DATETIME Nein - Feld paid_at
cancel_reason TEXT Nein - Feld cancel_reason
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
CommissionRuleVersions commission_rule_versions RLS Aktiv
17 Fields / Columns

Tabelle commission_rule_versions

Feldname Data Type Required Schlüssel Functional Meaning
agreement_id UUID Ja * FK ➔ commission_agreements.id Feld agreement_id
version INTEGER Ja * - Feld version
kind VARCHAR(20) Ja * - Feld kind
params JSONB Ja * - Feld params
applies_to JSONB Ja * - Feld applies_to
filters JSONB Ja * - Feld filters
hold_days INTEGER Ja * - Feld hold_days
requires_payment BOOLEAN Ja * - Feld requires_payment
rounding_places INTEGER Ja * - Feld rounding_places
valid_from DATE Ja * - Feld valid_from
created_by UUID Nein - Feld created_by
change_note TEXT Nein - Feld change_note
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConnectorBindings connector_bindings RLS Aktiv
20 Fields / Columns

Tabelle connector_bindings

Feldname Data Type Required Schlüssel Functional Meaning
connector_id UUID Ja * FK ➔ api_connectors.id Feld connector_id
direction VARCHAR(16) Ja * - Feld direction
signal_key VARCHAR(128) Ja * - Feld signal_key
operation_id UUID Nein FK ➔ connector_operations.id Feld operation_id
target_capability_key VARCHAR(128) Nein - Feld target_capability_key
inbound_endpoint_id UUID Nein FK ➔ inbound_webhook_endpoints.id Feld inbound_endpoint_id
field_mappings JSONB Ja * - Feld field_mappings
response_signal_key VARCHAR(128) Nein - Feld response_signal_key
inbound_schema JSONB Ja * - Feld inbound_schema
active BOOLEAN Ja * - Feld active
description VARCHAR(255) Nein - Feld description
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConnectorDeliveries connector_deliveries RLS Aktiv
21 Fields / Columns

Tabelle connector_deliveries

Feldname Data Type Required Schlüssel Functional Meaning
binding_id UUID Nein FK ➔ connector_bindings.id Feld binding_id
operation_id UUID Ja * FK ➔ connector_operations.id Feld operation_id
signal_key VARCHAR(128) Nein - Feld signal_key
request_payload JSONB Ja * - Feld request_payload
status VARCHAR(16) Ja * - Feld status
attempt_count INTEGER Ja * - Feld attempt_count
next_attempt_at DATETIME Nein - Feld next_attempt_at
last_error TEXT Nein - Feld last_error
response_status INTEGER Nein - Feld response_status
response_body TEXT Nein - Feld response_body
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
delivered_at DATETIME Nein - Feld delivered_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConnectorOperations connector_operations RLS Aktiv
22 Fields / Columns

Tabelle connector_operations

Feldname Data Type Required Schlüssel Functional Meaning
connector_id UUID Ja * FK ➔ api_connectors.id Feld connector_id
operation_key VARCHAR(128) Ja * - Feld operation_key
method VARCHAR(8) Ja * - Feld method
path_template VARCHAR(1024) Ja * - Feld path_template
summary VARCHAR(512) Nein - Feld summary
parameters_schema JSONB Ja * - Feld parameters_schema
request_schema JSONB Ja * - Feld request_schema
response_schema JSONB Ja * - Feld response_schema
idempotency_header VARCHAR(128) Nein - Feld idempotency_header
timeout_seconds INTEGER Ja * - Feld timeout_seconds
risk_level VARCHAR(32) Ja * - Feld risk_level
selected BOOLEAN Ja * - Feld selected
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConsiliumConflicts consilium_conflicts RLS Aktiv
14 Fields / Columns

Tabelle consilium_conflicts

Feldname Data Type Required Schlüssel Functional Meaning
session_id UUID Ja * FK ➔ consilium_sessions.id Feld session_id
conflict_type VARCHAR(64) Ja * - Feld conflict_type
parties JSONB Ja * - Feld parties
statement TEXT Ja * - Feld statement
affected_requirements JSONB Ja * - Feld affected_requirements
status VARCHAR(32) Ja * - Feld status
resolution_strategy VARCHAR(64) Nein - Feld resolution_strategy
resolution_notes TEXT Nein - Feld resolution_notes
selected_proposal_id UUID Nein FK ➔ consilium_proposals.id Feld selected_proposal_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsiliumDecisions consilium_decisions RLS Aktiv
16 Fields / Columns

Tabelle consilium_decisions

Feldname Data Type Required Schlüssel Functional Meaning
session_id UUID Ja * FK ➔ consilium_sessions.id Feld session_id
conflict_id UUID Nein FK ➔ consilium_conflicts.id Feld conflict_id
proposal_id UUID Nein FK ➔ consilium_proposals.id Feld proposal_id
decision_key VARCHAR(96) Ja * - Feld decision_key
selected_option VARCHAR(255) Ja * - Feld selected_option
reasoning TEXT Ja * - Feld reasoning
alternatives_considered JSONB Ja * - Feld alternatives_considered
authority VARCHAR(64) Ja * - Feld authority
approval_status VARCHAR(32) Ja * - Feld approval_status
version INTEGER Ja * - Feld version
decision_hash VARCHAR(64) Ja * - Feld decision_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsiliumFindings consilium_findings RLS Aktiv
14 Fields / Columns

Tabelle consilium_findings

Feldname Data Type Required Schlüssel Functional Meaning
session_id UUID Ja * FK ➔ consilium_sessions.id Feld session_id
work_item_id UUID Nein FK ➔ consilium_work_items.id Feld work_item_id
expert_id VARCHAR(64) Ja * - Feld expert_id
domain VARCHAR(64) Ja * - Feld domain
statement TEXT Ja * - Feld statement
confidence NUMERIC(4, 3) Ja * - Feld confidence
evidence_refs JSONB Ja * - Feld evidence_refs
impact VARCHAR(32) Ja * - Feld impact
finding_hash VARCHAR(64) Ja * - Feld finding_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsiliumManifests consilium_manifests RLS Aktiv
12 Fields / Columns

Tabelle consilium_manifests

Feldname Data Type Required Schlüssel Functional Meaning
session_id UUID Ja * FK ➔ consilium_sessions.id Feld session_id
expert_id VARCHAR(64) Ja * - Feld expert_id
work_item_id UUID Nein FK ➔ consilium_work_items.id Feld work_item_id
loaded_sources JSONB Ja * - Feld loaded_sources
token_usage JSONB Ja * - Feld token_usage
provenance_coverage NUMERIC(4, 3) Ja * - Feld provenance_coverage
content_hash VARCHAR(64) Ja * - Feld content_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsiliumObjections consilium_objections RLS Aktiv
12 Fields / Columns

Tabelle consilium_objections

Feldname Data Type Required Schlüssel Functional Meaning
session_id UUID Ja * FK ➔ consilium_sessions.id Feld session_id
proposal_id UUID Ja * FK ➔ consilium_proposals.id Feld proposal_id
reviewer_id VARCHAR(64) Ja * - Feld reviewer_id
severity VARCHAR(32) Ja * - Feld severity
statement TEXT Ja * - Feld statement
counter_evidence JSONB Ja * - Feld counter_evidence
status VARCHAR(32) Ja * - Feld status
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsiliumProposals consilium_proposals RLS Aktiv
19 Fields / Columns

Tabelle consilium_proposals

Feldname Data Type Required Schlüssel Functional Meaning
session_id UUID Ja * FK ➔ consilium_sessions.id Feld session_id
work_item_id UUID Nein FK ➔ consilium_work_items.id Feld work_item_id
expert_id VARCHAR(64) Ja * - Feld expert_id
title VARCHAR(255) Ja * - Feld title
option_kind VARCHAR(64) Ja * - Feld option_kind
target_ref VARCHAR(128) Ja * - Feld target_ref
description TEXT Ja * - Feld description
benefits JSONB Ja * - Feld benefits
risks JSONB Ja * - Feld risks
prerequisites JSONB Ja * - Feld prerequisites
cost_estimate_cents INTEGER Ja * - Feld cost_estimate_cents
status VARCHAR(32) Ja * - Feld status
version INTEGER Ja * - Feld version
proposal_hash VARCHAR(64) Ja * - Feld proposal_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsiliumReviews consilium_reviews RLS Aktiv
14 Fields / Columns

Tabelle consilium_reviews

Feldname Data Type Required Schlüssel Functional Meaning
session_id UUID Ja * FK ➔ consilium_sessions.id Feld session_id
reviewer_id VARCHAR(64) Ja * - Feld reviewer_id
target_type VARCHAR(32) Ja * - Feld target_type
target_id UUID Ja * - Feld target_id
verdict VARCHAR(32) Ja * - Feld verdict
evidence JSONB Ja * - Feld evidence
findings_summary TEXT Ja * - Feld findings_summary
open_issues JSONB Ja * - Feld open_issues
review_hash VARCHAR(64) Ja * - Feld review_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsiliumSessions consilium_sessions RLS Aktiv
23 Fields / Columns

Tabelle consilium_sessions

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Nein FK ➔ consultant_cases.id Feld case_id
title VARCHAR(255) Ja * - Feld title
mode VARCHAR(32) Ja * - Feld mode
mode_reasoning TEXT Ja * - Feld mode_reasoning
status VARCHAR(32) Ja * - Feld status
task_payload JSONB Ja * - Feld task_payload
context_snapshot_id VARCHAR(128) Nein - Feld context_snapshot_id
budget JSONB Ja * - Feld budget
selected_experts JSONB Ja * - Feld selected_experts
synthesis_result JSONB Ja * - Feld synthesis_result
version INTEGER Ja * - Feld version
started_at DATETIME Ja * - Feld started_at
ended_at DATETIME Nein - Feld ended_at
session_hash VARCHAR(64) Ja * - Feld session_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConsiliumWorkItems consilium_work_items RLS Aktiv
18 Fields / Columns

Tabelle consilium_work_items

Feldname Data Type Required Schlüssel Functional Meaning
session_id UUID Ja * FK ➔ consilium_sessions.id Feld session_id
expert_id VARCHAR(64) Ja * - Feld expert_id
title VARCHAR(255) Ja * - Feld title
hypothesis TEXT Ja * - Feld hypothesis
assigned_questions JSONB Ja * - Feld assigned_questions
non_responsibilities JSONB Ja * - Feld non_responsibilities
dependencies JSONB Ja * - Feld dependencies
priority INTEGER Ja * - Feld priority
status VARCHAR(32) Ja * - Feld status
context_slice_ref VARCHAR(128) Nein - Feld context_slice_ref
token_usage INTEGER Ja * - Feld token_usage
result_summary TEXT Nein - Feld result_summary
version INTEGER Ja * - Feld version
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsultantBusinessProfiles consultant_business_profiles RLS Aktiv
18 Fields / Columns

Tabelle consultant_business_profiles

Feldname Data Type Required Schlüssel Functional Meaning
legal_name VARCHAR(255) Ja * - Feld legal_name
industry_key VARCHAR(64) Ja * - Feld industry_key
business_model VARCHAR(64) Ja * - Feld business_model
version INTEGER Ja * - Feld version
status VARCHAR(24) Ja * - Feld status
locations JSONB Ja * - Feld locations
org_units JSONB Ja * - Feld org_units
specialties JSONB Ja * - Feld specialties
profile_hash VARCHAR(64) Ja * - Feld profile_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConsultantCases consultant_cases RLS Aktiv
21 Fields / Columns

Tabelle consultant_cases

Feldname Data Type Required Schlüssel Functional Meaning
mandate_id UUID Ja * FK ➔ consultant_mandates.id Feld mandate_id
title VARCHAR(255) Ja * - Feld title
trigger_kind VARCHAR(32) Ja * - Feld trigger_kind
status VARCHAR(24) Ja * - Feld status
priority INTEGER Ja * - Feld priority
domains JSONB Ja * - Feld domains
object_keys JSONB Ja * - Feld object_keys
process_keys JSONB Ja * - Feld process_keys
correlation_key VARCHAR(160) Ja * - Feld correlation_key
summary JSONB Ja * - Feld summary
baseline_plan_id UUID Nein FK ➔ consultant_plans.id Feld baseline_plan_id
closed_at DATETIME Nein - Feld closed_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConsultantDecisions consultant_decisions RLS Aktiv
18 Fields / Columns

Tabelle consultant_decisions

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ consultant_cases.id Feld case_id
decision_key VARCHAR(96) Ja * - Feld decision_key
title VARCHAR(255) Ja * - Feld title
selected_option JSONB Ja * - Feld selected_option
alternatives_considered JSONB Ja * - Feld alternatives_considered
rationale TEXT Ja * - Feld rationale
authorized_by UUID Ja * - Feld authorized_by
authorized_at DATETIME Ja * - Feld authorized_at
decision_hash VARCHAR(64) Ja * - Feld decision_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ consultant_cases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConsultantEvidence consultant_evidence RLS Aktiv
10 Fields / Columns

Tabelle consultant_evidence

Feldname Data Type Required Schlüssel Functional Meaning
plan_id UUID Ja * FK ➔ consultant_plans.id Feld plan_id
kind VARCHAR(24) Ja * - Feld kind
content_hash VARCHAR(64) Ja * - Feld content_hash
summary JSONB Ja * - Feld summary
actor_id UUID Nein - Feld actor_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsultantFitGapEvaluations consultant_fit_gap_evaluations RLS Aktiv
13 Fields / Columns

Tabelle consultant_fit_gap_evaluations

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ consultant_cases.id Feld case_id
requirement_key VARCHAR(96) Ja * - Feld requirement_key
process_step_ref VARCHAR(160) Ja * - Feld process_step_ref
standard_capability_key VARCHAR(96) Nein - Feld standard_capability_key
gap_kind VARCHAR(32) Ja * - Feld gap_kind
impact_level VARCHAR(16) Ja * - Feld impact_level
resolution_options JSONB Ja * - Feld resolution_options
recommended_option JSONB Nein - Feld recommended_option
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ consultant_cases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsultantMandates consultant_mandates RLS Aktiv
20 Fields / Columns

Tabelle consultant_mandates

Feldname Data Type Required Schlüssel Functional Meaning
label VARCHAR(255) Ja * - Feld label
autonomy_level VARCHAR(24) Ja * - Feld autonomy_level
domain_scope JSONB Ja * - Feld domain_scope
observation_sources JSONB Ja * - Feld observation_sources
owner_user_id UUID Ja * - Feld owner_user_id
version INTEGER Ja * - Feld version
rate_limit_per_day INTEGER Ja * - Feld rate_limit_per_day
privacy_bounds JSONB Ja * - Feld privacy_bounds
revoked_at DATETIME Nein - Feld revoked_at
revoked_by UUID Nein - Feld revoked_by
revoke_reason TEXT Nein - Feld revoke_reason
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConsultantObservations consultant_observations RLS Aktiv
12 Fields / Columns

Tabelle consultant_observations

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ consultant_cases.id Feld case_id
source_kind VARCHAR(48) Ja * - Feld source_kind
source_ref VARCHAR(160) Nein - Feld source_ref
confidence VARCHAR(16) Ja * - Feld confidence
content_hash VARCHAR(64) Ja * - Feld content_hash
access_label VARCHAR(64) Ja * - Feld access_label
payload JSONB Ja * - Feld payload
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ consultant_cases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsultantPlans consultant_plans RLS Aktiv
18 Fields / Columns

Tabelle consultant_plans

Feldname Data Type Required Schlüssel Functional Meaning
kind VARCHAR(32) Ja * - Feld kind
version INTEGER Ja * - Feld version
industry_key VARCHAR(64) Ja * - Feld industry_key
status VARCHAR(16) Ja * - Feld status
proposal_hash VARCHAR(64) Ja * - Feld proposal_hash
snapshot JSONB Ja * - Feld snapshot
simulated_at DATETIME Nein - Feld simulated_at
approved_at DATETIME Nein - Feld approved_at
approved_by UUID Nein - Feld approved_by
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConsultantProcessBlueprints consultant_process_blueprints RLS Aktiv
22 Fields / Columns

Tabelle consultant_process_blueprints

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Nein FK ➔ consultant_cases.id Feld case_id
process_key VARCHAR(96) Ja * - Feld process_key
version INTEGER Ja * - Feld version
title VARCHAR(255) Ja * - Feld title
is_soll BOOLEAN Ja * - Feld is_soll
status VARCHAR(24) Ja * - Feld status
roles JSONB Ja * - Feld roles
inputs JSONB Ja * - Feld inputs
outputs JSONB Ja * - Feld outputs
steps JSONB Ja * - Feld steps
exceptions JSONB Ja * - Feld exceptions
variants JSONB Ja * - Feld variants
content_hash VARCHAR(64) Ja * - Feld content_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ConsultantSteps consultant_steps RLS Aktiv
13 Fields / Columns

Tabelle consultant_steps

Feldname Data Type Required Schlüssel Functional Meaning
plan_id UUID Ja * FK ➔ consultant_plans.id Feld plan_id
sequence INTEGER Ja * - Feld sequence
key VARCHAR(96) Ja * - Feld key
label VARCHAR(255) Ja * - Feld label
state VARCHAR(24) Ja * - Feld state
source VARCHAR(255) Ja * - Feld source
description TEXT Nein - Feld description
approval_required BOOLEAN Ja * - Feld approval_required
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ConsultantValidationReports consultant_validation_reports RLS Aktiv
14 Fields / Columns

Tabelle consultant_validation_reports

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ consultant_cases.id Feld case_id
change_set_id UUID Nein FK ➔ customization_change_sets.id Feld change_set_id
report_key VARCHAR(96) Ja * - Feld report_key
passed BOOLEAN Ja * - Feld passed
tests_executed JSONB Ja * - Feld tests_executed
simulations_executed JSONB Ja * - Feld simulations_executed
open_deficits JSONB Ja * - Feld open_deficits
metrics JSONB Ja * - Feld metrics
report_hash VARCHAR(64) Ja * - Feld report_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ consultant_cases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
Contacts contacts RLS Aktiv
24 Fields / Columns

Tabelle contacts

Feldname Data Type Required Schlüssel Functional Meaning
customer_id UUID Nein FK ➔ customers.id Feld customer_id
supplier_id UUID Nein FK ➔ suppliers.id Feld supplier_id
parent_contact_id UUID Nein FK ➔ contacts.id Feld parent_contact_id
first_name VARCHAR(128) Nein - Feld first_name
last_name VARCHAR(128) Nein - Feld last_name
email VARCHAR(320) Nein - Feld email
phone VARCHAR(64) Nein - Feld phone
mobile VARCHAR(64) Nein - Feld mobile
fax VARCHAR(64) Nein - Feld fax
role VARCHAR(128) Nein - Feld role
department VARCHAR(128) Nein - Feld department
job_title VARCHAR(128) Nein - Feld job_title
is_primary BOOLEAN Ja * - Feld is_primary
birthday DATE Nein - Feld birthday
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
CostCenters cost_centers RLS Aktiv
17 Fields / Columns

Tabelle cost_centers

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(64) Ja * - Feld code
name VARCHAR(255) Ja * - Feld name
description TEXT Nein - Feld description
active BOOLEAN Ja * - Feld active
kind VARCHAR(12) Ja * - Feld kind
sort_order INTEGER Ja * - Feld sort_order
surcharge_base VARCHAR(16) Nein - Feld surcharge_base
normal_surcharge_percent NUMERIC(8, 2) Nein - Feld normal_surcharge_percent
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
CostEntries cost_entries RLS Aktiv
22 Fields / Columns

Tabelle cost_entries

Feldname Data Type Required Schlüssel Functional Meaning
project_id UUID Nein FK ➔ projects.id Feld project_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
cost_type_id UUID Nein FK ➔ cost_types.id Feld cost_type_id
cost_center_id UUID Nein FK ➔ cost_centers.id Feld cost_center_id
source_type VARCHAR(32) Ja * - Feld source_type
source_id UUID Nein - Feld source_id
quantity NUMERIC(14, 4) Nein - Feld quantity
unit VARCHAR(16) Nein - Feld unit
unit_cost NUMERIC(14, 2) Nein - Feld unit_cost
amount NUMERIC(14, 2) Ja * - Feld amount
currency VARCHAR(3) Ja * - Feld currency
occurred_at DATETIME Ja * - Feld occurred_at
estimated BOOLEAN Ja * - Feld estimated
description TEXT Ja * - Feld description
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
metadata JSONB Ja * - Feld metadata
CostTypes cost_types RLS Aktiv
15 Fields / Columns

Tabelle cost_types

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(64) Ja * - Feld code
name VARCHAR(255) Ja * - Feld name
description TEXT Nein - Feld description
active BOOLEAN Ja * - Feld active
account_code VARCHAR(32) Nein - Feld account_code
default_cost_center_id UUID Nein FK ➔ cost_centers.id Feld default_cost_center_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
CustomizationChangeSets customization_change_sets RLS Aktiv
22 Fields / Columns

Tabelle customization_change_sets

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ consultant_cases.id Feld case_id
version INTEGER Ja * - Feld version
status VARCHAR(24) Ja * - Feld status
intent_key VARCHAR(96) Ja * - Feld intent_key
content_hash VARCHAR(64) Ja * - Feld content_hash
risk_class VARCHAR(16) Ja * - Feld risk_class
target_state JSONB Ja * - Feld target_state
baseline_hashes JSONB Ja * - Feld baseline_hashes
capability_hashes JSONB Ja * - Feld capability_hashes
dependencies JSONB Ja * - Feld dependencies
gaps JSONB Ja * - Feld gaps
activation_plan JSONB Ja * - Feld activation_plan
rollback_plan JSONB Ja * - Feld rollback_plan
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ consultant_cases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
CustomizationEvidence customization_evidence RLS Aktiv
10 Fields / Columns

Tabelle customization_evidence

Feldname Data Type Required Schlüssel Functional Meaning
change_set_id UUID Ja * FK ➔ customization_change_sets.id Feld change_set_id
kind VARCHAR(24) Ja * - Feld kind
content_hash VARCHAR(64) Ja * - Feld content_hash
summary JSONB Ja * - Feld summary
actor_id UUID Nein - Feld actor_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
CustomizationSteps customization_steps RLS Aktiv
14 Fields / Columns

Tabelle customization_steps

Feldname Data Type Required Schlüssel Functional Meaning
change_set_id UUID Ja * FK ➔ customization_change_sets.id Feld change_set_id
sequence INTEGER Ja * - Feld sequence
key VARCHAR(96) Ja * - Feld key
label VARCHAR(255) Ja * - Feld label
kind VARCHAR(32) Ja * - Feld kind
state VARCHAR(24) Ja * - Feld state
content_hash VARCHAR(64) Ja * - Feld content_hash
approval_required BOOLEAN Ja * - Feld approval_required
payload JSONB Ja * - Feld payload
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
Demands demands RLS Aktiv
23 Fields / Columns

Tabelle demands

Feldname Data Type Required Schlüssel Functional Meaning
demand_type VARCHAR(48) Ja * - Feld demand_type
status VARCHAR(48) Ja * - Feld status
title VARCHAR(255) Ja * - Feld title
description TEXT Nein - Feld description
project_id UUID Nein - Feld project_id
work_order_id UUID Nein - Feld work_order_id
product_id UUID Nein - Feld product_id
quantity NUMERIC(14, 4) Nein - Feld quantity
unit VARCHAR(16) Nein - Feld unit
location VARCHAR(255) Nein - Feld location
required_from DATE Nein - Feld required_from
required_until DATE Nein - Feld required_until
budget NUMERIC(14, 2) Nein - Feld budget
visibility VARCHAR(16) Ja * - Feld visibility
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
DomainEvents domain_events RLS Aktiv
18 Fields / Columns

Tabelle domain_events

Feldname Data Type Required Schlüssel Functional Meaning
event_type VARCHAR(64) Ja * - Feld event_type
entity_type VARCHAR(64) Ja * - Feld entity_type
entity_id UUID Nein - Feld entity_id
payload JSONB Ja * - Feld payload
actor_type VARCHAR(16) Ja * - Feld actor_type
actor_id UUID Nein - Feld actor_id
occurred_at DATETIME Ja * - Feld occurred_at
correlation_id UUID Nein - Feld correlation_id
causation_id UUID Nein - Feld causation_id
workflow_origin_run_id UUID Nein FK ➔ workflow_runs.id Feld workflow_origin_run_id
published_at DATETIME Nein - Feld published_at
dispatch_attempts INTEGER Ja * - Feld dispatch_attempts
next_dispatch_at DATETIME Ja * - Feld next_dispatch_at
dead_letter_at DATETIME Nein - Feld dead_letter_at
last_dispatch_error_code VARCHAR(120) Nein - Feld last_dispatch_error_code
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ workflow_runs.tenant_id Feld tenant_id
EcommerceChannels ecommerce_channels RLS Aktiv
22 Fields / Columns

Tabelle ecommerce_channels

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(120) Ja * - Feld name
slug VARCHAR(64) Ja * - Feld slug
platform VARCHAR(32) Ja * - Feld platform
api_url VARCHAR(255) Nein - Feld api_url
credentials_encrypted TEXT Ja * - Feld credentials_encrypted
is_active BOOLEAN Ja * - Feld is_active
sync_inventory BOOLEAN Ja * - Feld sync_inventory
auto_create_order BOOLEAN Ja * - Feld auto_create_order
settings JSONB Ja * - Feld settings
last_sync_at DATETIME Nein - Feld last_sync_at
last_sync_status VARCHAR(32) Nein - Feld last_sync_status
last_error VARCHAR(500) Nein - Feld last_error
api_connector_id UUID Nein FK ➔ api_connectors.id Feld api_connector_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
EcommerceOrderSyncs ecommerce_order_syncs RLS Aktiv
21 Fields / Columns

Tabelle ecommerce_order_syncs

Feldname Data Type Required Schlüssel Functional Meaning
channel_id UUID Ja * FK ➔ ecommerce_channels.id Feld channel_id
external_order_id VARCHAR(128) Ja * - Feld external_order_id
idempotency_hash VARCHAR(64) Ja * - Feld idempotency_hash
webhook_delivery_id VARCHAR(128) Nein - Feld webhook_delivery_id
sync_status VARCHAR(32) Ja * - Feld sync_status
quote_id UUID Nein FK ➔ quotes.id Feld quote_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
customer_id UUID Nein FK ➔ customers.id Feld customer_id
order_amount NUMERIC(14, 2) Nein - Feld order_amount
order_currency VARCHAR(3) Ja * - Feld order_currency
payload_snapshot JSONB Ja * - Feld payload_snapshot
error_message VARCHAR(500) Nein - Feld error_message
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ExchangeRates exchange_rates RLS Aktiv
13 Fields / Columns

Tabelle exchange_rates

Feldname Data Type Required Schlüssel Functional Meaning
currency VARCHAR(3) Ja * - Feld currency
rate_date DATE Ja * - Feld rate_date
rate NUMERIC(18, 8) Ja * - Feld rate
note VARCHAR(255) Nein - Feld note
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ExportBatches export_batches RLS Aktiv
24 Fields / Columns

Tabelle export_batches

Feldname Data Type Required Schlüssel Functional Meaning
profile_id UUID Nein FK ➔ export_profiles.id Feld profile_id
period_from DATE Nein - Feld period_from
period_to DATE Nein - Feld period_to
status VARCHAR(48) Ja * - Feld status
artifact_storage_key VARCHAR(1024) Nein - Feld artifact_storage_key
artifact_filename VARCHAR(512) Nein - Feld artifact_filename
artifact_size_bytes INTEGER Nein - Feld artifact_size_bytes
artifact_mime_type VARCHAR(128) Nein - Feld artifact_mime_type
item_count INTEGER Ja * - Feld item_count
net_total NUMERIC Ja * - Feld net_total
tax_total NUMERIC Ja * - Feld tax_total
gross_total NUMERIC Ja * - Feld gross_total
exported_at DATETIME Nein - Feld exported_at
error_message TEXT Nein - Feld error_message
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ExportItems export_items RLS Aktiv
11 Fields / Columns

Tabelle export_items

Feldname Data Type Required Schlüssel Functional Meaning
export_batch_id UUID Ja * FK ➔ export_batches.id Feld export_batch_id
accounting_entry_id UUID Ja * FK ➔ accounting_entries.id Feld accounting_entry_id
document_id UUID Nein FK ➔ documents.id Feld document_id
status VARCHAR(48) Ja * - Feld status
row_data JSONB Nein - Feld row_data
error_message TEXT Nein - Feld error_message
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ExportProfiles export_profiles RLS Aktiv
13 Fields / Columns

Tabelle export_profiles

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(128) Ja * - Feld name
target VARCHAR(48) Ja * - Feld target
settings JSONB Ja * - Feld settings
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ExtraWorkCandidates extra_work_candidates RLS Aktiv
21 Fields / Columns

Tabelle extra_work_candidates

Feldname Data Type Required Schlüssel Functional Meaning
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
project_id UUID Nein FK ➔ projects.id Feld project_id
quote_id UUID Nein FK ➔ quotes.id Feld quote_id
description TEXT Ja * - Feld description
evidence TEXT Nein - Feld evidence
estimated_quantity NUMERIC(14, 4) Nein - Feld estimated_quantity
unit VARCHAR(16) Nein - Feld unit
estimated_price NUMERIC(14, 2) Nein - Feld estimated_price
currency VARCHAR(3) Ja * - Feld currency
status VARCHAR(48) Ja * - Feld status
confidence NUMERIC(4, 3) Nein - Feld confidence
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
FieldActivities field_activities RLS Aktiv
18 Fields / Columns

Tabelle field_activities

Feldname Data Type Required Schlüssel Functional Meaning
asset_id UUID Ja * FK ➔ assets.id Feld asset_id
activity_date DATE Ja * - Feld activity_date
activity_type VARCHAR(48) Ja * - Feld activity_type
crop VARCHAR(128) Nein - Feld crop
product_name VARCHAR(255) Nein - Feld product_name
product_quantity NUMERIC(14, 4) Nein - Feld product_quantity
product_unit VARCHAR(32) Nein - Feld product_unit
area_treated_ha NUMERIC(14, 4) Nein - Feld area_treated_ha
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
FixedAssetLinks fixed_asset_links RLS Aktiv
16 Fields / Columns

Tabelle fixed_asset_links

Feldname Data Type Required Schlüssel Functional Meaning
asset_id UUID Ja * FK ➔ assets.id Feld asset_id
fixed_asset_id UUID Ja * FK ➔ fixed_assets.id Feld fixed_asset_id
link_type VARCHAR(32) Ja * - Feld link_type
share_percentage NUMERIC(5, 2) Ja * - Feld share_percentage
valid_from DATE Ja * - Feld valid_from
valid_to DATE Nein - Feld valid_to
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
FixedAssets fixed_assets RLS Aktiv
23 Fields / Columns

Tabelle fixed_assets

Feldname Data Type Required Schlüssel Functional Meaning
asset_number VARCHAR(32) Ja * - Feld asset_number
name VARCHAR(255) Ja * - Feld name
acquisition_date DATE Ja * - Feld acquisition_date
acquisition_cost NUMERIC(12, 2) Ja * - Feld acquisition_cost
book_value NUMERIC(12, 2) Ja * - Feld book_value
depreciation_method VARCHAR(32) Ja * - Feld depreciation_method
useful_life_months INTEGER Ja * - Feld useful_life_months
asset_account_code VARCHAR(32) Nein - Feld asset_account_code
depreciation_account_code VARCHAR(32) Nein - Feld depreciation_account_code
cost_center VARCHAR(64) Nein - Feld cost_center
status VARCHAR(32) Ja * - Feld status
disposal_date DATE Nein - Feld disposal_date
disposal_proceeds NUMERIC(12, 2) Nein - Feld disposal_proceeds
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
GaebDocuments gaeb_documents RLS Aktiv
21 Fields / Columns

Tabelle gaeb_documents

Feldname Data Type Required Schlüssel Functional Meaning
project_id UUID Nein FK ➔ projects.id Feld project_id
quote_id UUID Nein FK ➔ quotes.id Feld quote_id
file_name VARCHAR(255) Ja * - Feld file_name
gaeb_phase VARCHAR(10) Ja * - Feld gaeb_phase
gaeb_version VARCHAR(20) Ja * - Feld gaeb_version
project_name VARCHAR(255) Ja * - Feld project_name
dp_number VARCHAR(128) Nein - Feld dp_number
currency VARCHAR(3) Ja * - Feld currency
total_net_amount NUMERIC(14, 2) Ja * - Feld total_net_amount
total_tax_amount NUMERIC(14, 2) Ja * - Feld total_tax_amount
total_gross_amount NUMERIC(14, 2) Ja * - Feld total_gross_amount
xml_payload_raw TEXT Ja * - Feld xml_payload_raw
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
GaebItems gaeb_items RLS Aktiv
23 Fields / Columns

Tabelle gaeb_items

Feldname Data Type Required Schlüssel Functional Meaning
document_id UUID Ja * FK ➔ gaeb_documents.id Feld document_id
section_id UUID Ja * FK ➔ gaeb_sections.id Feld section_id
oz VARCHAR(32) Ja * - Feld oz
item_type VARCHAR(32) Ja * - Feld item_type
short_text VARCHAR(500) Ja * - Feld short_text
long_text TEXT Nein - Feld long_text
quantity NUMERIC(12, 3) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
unit_price NUMERIC(14, 2) Ja * - Feld unit_price
total_price NUMERIC(14, 2) Ja * - Feld total_price
vat_rate NUMERIC(5, 2) Nein - Feld vat_rate
is_discountable BOOLEAN Ja * - Feld is_discountable
internal_product_id UUID Nein FK ➔ products.id Feld internal_product_id
match_confidence NUMERIC(3, 2) Nein - Feld match_confidence
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
GaebSections gaeb_sections RLS Aktiv
16 Fields / Columns

Tabelle gaeb_sections

Feldname Data Type Required Schlüssel Functional Meaning
document_id UUID Ja * FK ➔ gaeb_documents.id Feld document_id
parent_section_id UUID Nein FK ➔ gaeb_sections.id Feld parent_section_id
order_index INTEGER Ja * - Feld order_index
section_code VARCHAR(64) Ja * - Feld section_code
title VARCHAR(255) Ja * - Feld title
description TEXT Nein - Feld description
subtotal_net NUMERIC(14, 2) Ja * - Feld subtotal_net
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
GlobalCostCenters global_cost_centers
8 Fields / Columns

Tabelle global_cost_centers

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(64) Ja * - Feld code
name VARCHAR(255) Ja * - Feld name
description TEXT Nein - Feld description
active BOOLEAN Ja * - Feld active
sort_order INTEGER Ja * - Feld sort_order
id UUID Nein PK Feld id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
GlobalCostTypes global_cost_types
9 Fields / Columns

Tabelle global_cost_types

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(64) Ja * - Feld code
name VARCHAR(255) Ja * - Feld name
description TEXT Nein - Feld description
active BOOLEAN Ja * - Feld active
suggested_account_code VARCHAR(32) Nein - Feld suggested_account_code
sort_order INTEGER Ja * - Feld sort_order
id UUID Nein PK Feld id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
GoodsReceiptItems goods_receipt_items RLS Aktiv
25 Fields / Columns

Tabelle goods_receipt_items

Feldname Data Type Required Schlüssel Functional Meaning
goods_receipt_id UUID Ja * FK ➔ goods_receipts.id Feld goods_receipt_id
purchase_item_id UUID Nein FK ➔ purchase_items.id Feld purchase_item_id
product_id UUID Nein FK ➔ products.id Feld product_id
description TEXT Ja * - Feld description
quantity_received NUMERIC(14, 4) Ja * - Feld quantity_received
unit VARCHAR(16) Ja * - Feld unit
unit_cost NUMERIC(14, 2) Ja * - Feld unit_cost
tax_rate NUMERIC(6, 4) Ja * - Feld tax_rate
net_amount NUMERIC(14, 2) Ja * - Feld net_amount
tax_amount NUMERIC(14, 2) Ja * - Feld tax_amount
gross_amount NUMERIC(14, 2) Ja * - Feld gross_amount
project_id UUID Nein FK ➔ projects.id Feld project_id
quantity_accepted NUMERIC(14, 4) Nein - Feld quantity_accepted
quantity_rejected NUMERIC(14, 4) Ja * - Feld quantity_rejected
rejection_reason TEXT Nein - Feld rejection_reason
stock_owner VARCHAR(32) Ja * - Feld stock_owner
consignment_contract_id UUID Nein FK ➔ contracts.id Feld consignment_contract_id
destination_location_id UUID Nein FK ➔ locations.id Feld destination_location_id
tracking_entries JSONB Ja * - Feld tracking_entries
confidence NUMERIC(4, 3) Nein - Feld confidence
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
GoodsReceipts goods_receipts RLS Aktiv
31 Fields / Columns

Tabelle goods_receipts

Feldname Data Type Required Schlüssel Functional Meaning
receipt_number VARCHAR(32) Ja * - Feld receipt_number
purchase_id UUID Nein FK ➔ purchases.id Feld purchase_id
legal_entity_id UUID Nein FK ➔ legal_entities.id Feld legal_entity_id
supplier_id UUID Nein FK ➔ suppliers.id Feld supplier_id
invoice_id UUID Nein FK ➔ invoices.id Feld invoice_id
received_at DATETIME Ja * - Feld received_at
destination_location_id UUID Nein FK ➔ locations.id Feld destination_location_id
delivery_note_number VARCHAR(128) Nein - Feld delivery_note_number
delivery_note_date DATE Nein - Feld delivery_note_date
carrier VARCHAR(128) Nein - Feld carrier
tracking_number VARCHAR(128) Nein - Feld tracking_number
customer_id UUID Nein FK ➔ customers.id Feld customer_id
contract_id UUID Nein FK ➔ contracts.id Feld contract_id
procurement_type VARCHAR(32) Ja * - Feld procurement_type
inspection_status VARCHAR(32) Ja * - Feld inspection_status
currency VARCHAR(3) Ja * - Feld currency
net_amount NUMERIC(14, 2) Ja * - Feld net_amount
tax_amount NUMERIC(14, 2) Ja * - Feld tax_amount
gross_amount NUMERIC(14, 2) Ja * - Feld gross_amount
status VARCHAR(48) Ja * - Feld status
notes TEXT Nein - Feld notes
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ legal_entities.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ImportBatchRecords import_batch_records RLS Aktiv
11 Fields / Columns

Tabelle import_batch_records

Feldname Data Type Required Schlüssel Functional Meaning
job_id UUID Ja * FK ➔ import_jobs.id Feld job_id
batch_id UUID Ja * - Feld batch_id
entity_type VARCHAR(64) Ja * - Feld entity_type
entity_id UUID Ja * - Feld entity_id
action VARCHAR(16) Ja * - Feld action
snapshot_before JSONB Nein - Feld snapshot_before
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ImportJobs import_jobs RLS Aktiv
27 Fields / Columns

Tabelle import_jobs

Feldname Data Type Required Schlüssel Functional Meaning
target_entity VARCHAR(64) Ja * - Feld target_entity
source_type VARCHAR(32) Ja * - Feld source_type
filename VARCHAR(255) Ja * - Feld filename
file_hash VARCHAR(64) Ja * - Feld file_hash
status VARCHAR(32) Ja * - Feld status
total_rows INTEGER Ja * - Feld total_rows
valid_rows INTEGER Ja * - Feld valid_rows
error_rows INTEGER Ja * - Feld error_rows
created_count INTEGER Ja * - Feld created_count
updated_count INTEGER Ja * - Feld updated_count
batch_id UUID Ja * - Feld batch_id
field_mapping JSONB Ja * - Feld field_mapping
dry_run_summary JSONB Ja * - Feld dry_run_summary
error_details JSONB Ja * - Feld error_details
raw_data_storage JSONB Ja * - Feld raw_data_storage
profile_id UUID Nein FK ➔ import_profiles.id Feld profile_id
applied_by_user_id UUID Nein - Feld applied_by_user_id
applied_at DATETIME Nein - Feld applied_at
rolled_back_at DATETIME Nein - Feld rolled_back_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ImportProfiles import_profiles RLS Aktiv
14 Fields / Columns

Tabelle import_profiles

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(120) Ja * - Feld name
target_entity VARCHAR(64) Ja * - Feld target_entity
source_type VARCHAR(32) Ja * - Feld source_type
field_mapping JSONB Ja * - Feld field_mapping
transformation_rules JSONB Ja * - Feld transformation_rules
is_default BOOLEAN Ja * - Feld is_default
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
InsurancePolicies insurance_policies RLS Aktiv
22 Fields / Columns

Tabelle insurance_policies

Feldname Data Type Required Schlüssel Functional Meaning
policy_number VARCHAR(64) Ja * - Feld policy_number
insurer VARCHAR(255) Ja * - Feld insurer
coverage_type VARCHAR(64) Ja * - Feld coverage_type
coverage_desc TEXT Nein - Feld coverage_desc
valid_from DATE Nein - Feld valid_from
valid_until DATE Nein - Feld valid_until
premium_amount NUMERIC(14, 2) Nein - Feld premium_amount
deductible NUMERIC(14, 2) Nein - Feld deductible
asset_id UUID Nein FK ➔ assets.id Feld asset_id
vehicle_id UUID Nein FK ➔ fleet_vehicles.id Feld vehicle_id
status VARCHAR(16) Ja * - Feld status
reminder_days INTEGER Ja * - Feld reminder_days
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IntegrationMappingProfiles integration_mapping_profiles RLS Aktiv
19 Fields / Columns

Tabelle integration_mapping_profiles

Feldname Data Type Required Schlüssel Functional Meaning
connection_id UUID Nein FK ➔ integration_connections.id Feld connection_id
connector_key VARCHAR(64) Ja * - Feld connector_key
external_type VARCHAR(64) Ja * - Feld external_type
internal_type VARCHAR(64) Ja * - Feld internal_type
version INTEGER Ja * - Feld version
is_active BOOLEAN Ja * - Feld is_active
rules JSONB Ja * - Feld rules
custom_field_mappings JSONB Ja * - Feld custom_field_mappings
unit_conversions JSONB Ja * - Feld unit_conversions
enum_mappings JSONB Ja * - Feld enum_mappings
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IntegrationTelemetryRecords integration_telemetry_records RLS Aktiv
21 Fields / Columns

Tabelle integration_telemetry_records

Feldname Data Type Required Schlüssel Functional Meaning
connection_id UUID Ja * FK ➔ integration_connections.id Feld connection_id
asset_id UUID Nein FK ➔ assets.id Feld asset_id
external_machine_id VARCHAR(128) Ja * - Feld external_machine_id
metric_key VARCHAR(64) Ja * - Feld metric_key
metric_value NUMERIC(14, 4) Nein - Feld metric_value
metric_text VARCHAR(255) Nein - Feld metric_text
metric_unit VARCHAR(32) Nein - Feld metric_unit
reading_timestamp DATETIME Ja * - Feld reading_timestamp
status VARCHAR(16) Ja * - Feld status
event_triggered BOOLEAN Ja * - Feld event_triggered
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
contract_id UUID Nein FK ➔ contracts.id Feld contract_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcApprovals iqc_approvals RLS Aktiv
21 Fields / Columns

Tabelle iqc_approvals

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ iqc_cases.id Feld case_id
manifest_id UUID Ja * FK ➔ iqc_manifests.id Feld manifest_id
gate_result_id UUID Nein FK ➔ iqc_gate_results.id Feld gate_result_id
approval_type VARCHAR(24) Ja * - Feld approval_type
decision VARCHAR(16) Ja * - Feld decision
approver_ref VARCHAR(128) Ja * - Feld approver_ref
approver_role VARCHAR(64) Ja * - Feld approver_role
author_refs ARRAY Ja * - Feld author_refs
manifest_hash VARCHAR(64) Ja * - Feld manifest_hash
rationale TEXT Ja * - Feld rationale
approval_hash VARCHAR(64) Ja * - Feld approval_hash
decided_at DATETIME Ja * - Feld decided_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ iqc_gate_results.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcCases iqc_cases RLS Aktiv
23 Fields / Columns

Tabelle iqc_cases

Feldname Data Type Required Schlüssel Functional Meaning
case_number VARCHAR(64) Ja * - Feld case_number
title VARCHAR(255) Ja * - Feld title
description TEXT Nein - Feld description
status VARCHAR(32) Ja * - Feld status
risk_level VARCHAR(16) Ja * - Feld risk_level
review_mode VARCHAR(16) Ja * - Feld review_mode
baseline_version VARCHAR(64) Nein - Feld baseline_version
target_version VARCHAR(64) Nein - Feld target_version
current_manifest_id UUID Nein FK ➔ iqc_manifests.id Feld current_manifest_id
owner_ref VARCHAR(128) Nein - Feld owner_ref
author_refs ARRAY Ja * - Feld author_refs
policy_version VARCHAR(32) Ja * - Feld policy_version
opened_at DATETIME Ja * - Feld opened_at
closed_at DATETIME Nein - Feld closed_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ iqc_manifests.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcCheckRuns iqc_check_runs RLS Aktiv
23 Fields / Columns

Tabelle iqc_check_runs

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ iqc_cases.id Feld case_id
manifest_id UUID Ja * FK ➔ iqc_manifests.id Feld manifest_id
check_key VARCHAR(128) Ja * - Feld check_key
check_type VARCHAR(24) Ja * - Feld check_type
profile VARCHAR(64) Ja * - Feld profile
status VARCHAR(16) Ja * - Feld status
command TEXT Ja * - Feld command
exit_code INTEGER Nein - Feld exit_code
output_hash VARCHAR(64) Ja * - Feld output_hash
output_excerpt TEXT Ja * - Feld output_excerpt
duration_ms INTEGER Ja * - Feld duration_ms
environment VARCHAR(64) Ja * - Feld environment
attestation JSONB Ja * - Feld attestation
attempt INTEGER Ja * - Feld attempt
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ iqc_cases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcEvidence iqc_evidence RLS Aktiv
21 Fields / Columns

Tabelle iqc_evidence

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ iqc_cases.id Feld case_id
manifest_id UUID Ja * FK ➔ iqc_manifests.id Feld manifest_id
review_id UUID Nein FK ➔ iqc_reviews.id Feld review_id
finding_id UUID Nein FK ➔ iqc_findings.id Feld finding_id
check_run_id UUID Nein FK ➔ iqc_check_runs.id Feld check_run_id
kind VARCHAR(24) Ja * - Feld kind
artifact_uri VARCHAR(1024) Ja * - Feld artifact_uri
content_hash VARCHAR(64) Ja * - Feld content_hash
environment VARCHAR(64) Ja * - Feld environment
version_refs JSONB Ja * - Feld version_refs
test_run_id VARCHAR(128) Nein - Feld test_run_id
payload JSONB Ja * - Feld payload
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcExceptions iqc_exceptions RLS Aktiv
21 Fields / Columns

Tabelle iqc_exceptions

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ iqc_cases.id Feld case_id
manifest_id UUID Ja * FK ➔ iqc_manifests.id Feld manifest_id
gate_id VARCHAR(4) Nein - Feld gate_id
finding_id UUID Nein FK ➔ iqc_findings.id Feld finding_id
justification TEXT Ja * - Feld justification
risk_acceptor VARCHAR(128) Ja * - Feld risk_acceptor
scope JSONB Ja * - Feld scope
expires_at DATETIME Ja * - Feld expires_at
status VARCHAR(16) Ja * - Feld status
audit_ref VARCHAR(128) Nein - Feld audit_ref
revoked_at DATETIME Nein - Feld revoked_at
revoked_by VARCHAR(128) Nein - Feld revoked_by
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcFindings iqc_findings RLS Aktiv
26 Fields / Columns

Tabelle iqc_findings

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ iqc_cases.id Feld case_id
manifest_id UUID Ja * FK ➔ iqc_manifests.id Feld manifest_id
review_id UUID Nein FK ➔ iqc_reviews.id Feld review_id
severity VARCHAR(16) Ja * - Feld severity
confidence NUMERIC(4, 3) Ja * - Feld confidence
category VARCHAR(32) Ja * - Feld category
artifact_ref VARCHAR(255) Ja * - Feld artifact_ref
location VARCHAR(512) Ja * - Feld location
expected TEXT Ja * - Feld expected
observed TEXT Ja * - Feld observed
reproduction TEXT Ja * - Feld reproduction
recommendation TEXT Ja * - Feld recommendation
disposition VARCHAR(16) Ja * - Feld disposition
status VARCHAR(16) Ja * - Feld status
evidence_refs JSONB Ja * - Feld evidence_refs
finding_hash VARCHAR(64) Ja * - Feld finding_hash
resolved_at DATETIME Nein - Feld resolved_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ iqc_cases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcGateResults iqc_gate_results RLS Aktiv
21 Fields / Columns

Tabelle iqc_gate_results

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ iqc_cases.id Feld case_id
manifest_id UUID Ja * FK ➔ iqc_manifests.id Feld manifest_id
policy_version VARCHAR(32) Ja * - Feld policy_version
gate_id VARCHAR(4) Ja * - Feld gate_id
attempt INTEGER Ja * - Feld attempt
status VARCHAR(16) Ja * - Feld status
evidence_refs JSONB Ja * - Feld evidence_refs
blockers JSONB Ja * - Feld blockers
reason TEXT Ja * - Feld reason
evaluated_by VARCHAR(128) Nein - Feld evaluated_by
result_hash VARCHAR(64) Ja * - Feld result_hash
evaluated_at DATETIME Ja * - Feld evaluated_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcManifests iqc_manifests RLS Aktiv
24 Fields / Columns

Tabelle iqc_manifests

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ iqc_cases.id Feld case_id
version INTEGER Ja * - Feld version
change_id VARCHAR(64) Nein - Feld change_id
content JSONB Ja * - Feld content
content_hash VARCHAR(64) Ja * - Feld content_hash
baseline_version VARCHAR(64) Nein - Feld baseline_version
target_version VARCHAR(64) Nein - Feld target_version
reason TEXT Ja * - Feld reason
author_refs ARRAY Ja * - Feld author_refs
risk_hints ARRAY Ja * - Feld risk_hints
acceptance_criteria ARRAY Ja * - Feld acceptance_criteria
previous_manifest_id UUID Nein FK ➔ iqc_manifests.id Feld previous_manifest_id
source_ref VARCHAR(255) Nein - Feld source_ref
frozen_at DATETIME Ja * - Feld frozen_at
frozen_by VARCHAR(128) Nein - Feld frozen_by
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ iqc_cases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcReviews iqc_reviews RLS Aktiv
23 Fields / Columns

Tabelle iqc_reviews

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ iqc_cases.id Feld case_id
manifest_id UUID Ja * FK ➔ iqc_manifests.id Feld manifest_id
reviewer_role VARCHAR(32) Ja * - Feld reviewer_role
reviewer_kind VARCHAR(16) Ja * - Feld reviewer_kind
reviewer_ref VARCHAR(128) Ja * - Feld reviewer_ref
author_refs ARRAY Ja * - Feld author_refs
covered_scope ARRAY Ja * - Feld covered_scope
context_snapshot_id VARCHAR(128) Nein - Feld context_snapshot_id
status VARCHAR(16) Ja * - Feld status
verdict VARCHAR(32) Nein - Feld verdict
summary TEXT Ja * - Feld summary
review_hash VARCHAR(64) Ja * - Feld review_hash
started_at DATETIME Nein - Feld started_at
finished_at DATETIME Nein - Feld finished_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
IqcScopes iqc_scopes RLS Aktiv
19 Fields / Columns

Tabelle iqc_scopes

Feldname Data Type Required Schlüssel Functional Meaning
case_id UUID Ja * FK ➔ iqc_cases.id Feld case_id
manifest_id UUID Ja * FK ➔ iqc_manifests.id Feld manifest_id
artifact_type VARCHAR(32) Ja * - Feld artifact_type
artifact_ref VARCHAR(255) Ja * - Feld artifact_ref
artifact_version VARCHAR(64) Nein - Feld artifact_version
impact_reason TEXT Ja * - Feld impact_reason
resolution_status VARCHAR(16) Ja * - Feld resolution_status
source VARCHAR(16) Ja * - Feld source
risk_hint VARCHAR(64) Nein - Feld risk_hint
confidence NUMERIC(4, 3) Ja * - Feld confidence
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ iqc_manifests.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
Jobs jobs RLS Aktiv
17 Fields / Columns

Tabelle jobs

Feldname Data Type Required Schlüssel Functional Meaning
job_type VARCHAR(64) Ja * - Feld job_type
payload JSONB Ja * - Feld payload
status VARCHAR(48) Ja * - Feld status
run_after DATETIME Ja * - Feld run_after
attempts INTEGER Ja * - Feld attempts
max_attempts INTEGER Ja * - Feld max_attempts
locked_at DATETIME Nein - Feld locked_at
locked_by VARCHAR(64) Nein - Feld locked_by
finished_at DATETIME Nein - Feld finished_at
last_error TEXT Nein - Feld last_error
source_event_id UUID Nein FK ➔ domain_events.id Feld source_event_id
correlation_id UUID Nein - Feld correlation_id
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
JournalEntries journal_entries RLS Aktiv
19 Fields / Columns

Tabelle journal_entries

Feldname Data Type Required Schlüssel Functional Meaning
journal_id UUID Ja * FK ➔ journals.id Feld journal_id
legal_entity_id UUID Nein FK ➔ legal_entities.id Feld legal_entity_id
entry_number VARCHAR(64) Ja * - Feld entry_number
entry_date DATE Ja * - Feld entry_date
reference VARCHAR(128) Nein - Feld reference
description TEXT Nein - Feld description
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
status VARCHAR(48) Ja * - Feld status
posted_at DATETIME Nein - Feld posted_at
total_debit NUMERIC(14, 2) Ja * - Feld total_debit
total_credit NUMERIC(14, 2) Ja * - Feld total_credit
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
metadata JSONB Ja * - Feld metadata
JournalEntryLines journal_entry_lines RLS Aktiv
15 Fields / Columns

Tabelle journal_entry_lines

Feldname Data Type Required Schlüssel Functional Meaning
journal_entry_id UUID Ja * FK ➔ journal_entries.id Feld journal_entry_id
account_code VARCHAR(32) Ja * - Feld account_code
debit NUMERIC(14, 2) Ja * - Feld debit
credit NUMERIC(14, 2) Ja * - Feld credit
description VARCHAR(255) Nein - Feld description
customer_id UUID Nein FK ➔ customers.id Feld customer_id
supplier_id UUID Nein FK ➔ suppliers.id Feld supplier_id
cost_center_id UUID Nein FK ➔ cost_centers.id Feld cost_center_id
project_id UUID Nein FK ➔ projects.id Feld project_id
internal_order_id UUID Nein FK ➔ controlling_internal_orders.id Feld internal_order_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
Journals journals RLS Aktiv
15 Fields / Columns

Tabelle journals

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(16) Ja * - Feld code
name VARCHAR(255) Ja * - Feld name
journal_type VARCHAR(48) Ja * - Feld journal_type
default_debit_account_code VARCHAR(32) Nein - Feld default_debit_account_code
default_credit_account_code VARCHAR(32) Nein - Feld default_credit_account_code
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
Kn8ReferenceCodes kn8_reference_codes
5 Fields / Columns

Tabelle kn8_reference_codes

Feldname Data Type Required Schlüssel Functional Meaning
version_id UUID Ja * FK ➔ kn8_reference_versions.id Feld version_id
code VARCHAR(8) Ja * - Feld code
description TEXT Ja * - Feld description
search_text TEXT Ja * - Feld search_text
id UUID Nein PK Feld id
Kn8ReferenceVersions kn8_reference_versions
8 Fields / Columns

Tabelle kn8_reference_versions

Feldname Data Type Required Schlüssel Functional Meaning
version VARCHAR(30) Ja * - Feld version
source_url VARCHAR(500) Ja * - Feld source_url
source_sha256 VARCHAR(64) Ja * - Feld source_sha256
effective_from DATE Ja * - Feld effective_from
imported_by UUID Ja * FK ➔ users.id Feld imported_by
is_active BOOLEAN Ja * - Feld is_active
created_at DATETIME Ja * - Feld created_at
id UUID Nein PK Feld id
LabelTemplates label_templates RLS Aktiv
17 Fields / Columns

Tabelle label_templates

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(64) Ja * - Feld code
name VARCHAR(256) Ja * - Feld name
target_type VARCHAR(32) Ja * - Feld target_type
output_format VARCHAR(16) Ja * - Feld output_format
width_mm INTEGER Ja * - Feld width_mm
height_mm INTEGER Ja * - Feld height_mm
template_body TEXT Ja * - Feld template_body
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
LandedCostAllocations landed_cost_allocations RLS Aktiv
12 Fields / Columns

Tabelle landed_cost_allocations

Feldname Data Type Required Schlüssel Functional Meaning
landed_cost_id UUID Ja * FK ➔ landed_costs.id Feld landed_cost_id
receipt_item_id UUID Ja * FK ➔ goods_receipt_items.id Feld receipt_item_id
allocated_amount NUMERIC(14, 2) Ja * - Feld allocated_amount
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
LandedCosts landed_costs RLS Aktiv
18 Fields / Columns

Tabelle landed_costs

Feldname Data Type Required Schlüssel Functional Meaning
label VARCHAR(128) Ja * - Feld label
goods_receipt_id UUID Ja * FK ➔ goods_receipts.id Feld goods_receipt_id
amount NUMERIC(14, 2) Ja * - Feld amount
currency VARCHAR(3) Ja * - Feld currency
allocation_method VARCHAR(16) Ja * - Feld allocation_method
status VARCHAR(16) Ja * - Feld status
supplier_id UUID Nein FK ➔ suppliers.id Feld supplier_id
posted_at DATETIME Nein - Feld posted_at
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
LearnedRules learned_rules RLS Aktiv
19 Fields / Columns

Tabelle learned_rules

Feldname Data Type Required Schlüssel Functional Meaning
type VARCHAR(64) Ja * - Feld type
condition JSONB Ja * - Feld condition
action JSONB Ja * - Feld action
confidence NUMERIC(4, 3) Ja * - Feld confidence
source VARCHAR(48) Ja * - Feld source
confirmed_by_user BOOLEAN Ja * - Feld confirmed_by_user
hit_count INTEGER Ja * - Feld hit_count
last_applied_at DATETIME Nein - Feld last_applied_at
active BOOLEAN Ja * - Feld active
condition_fingerprint VARCHAR(64) Ja * - Feld condition_fingerprint
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
LegalEntities legal_entities RLS Aktiv
23 Fields / Columns

Tabelle legal_entities

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
legal_name VARCHAR(255) Ja * - Feld legal_name
short_name VARCHAR(120) Nein - Feld short_name
registration_country VARCHAR(2) Ja * - Feld registration_country
functional_currency VARCHAR(3) Ja * - Feld functional_currency
vat_id VARCHAR(64) Nein - Feld vat_id
registration_number VARCHAR(96) Nein - Feld registration_number
registered_address JSONB Ja * - Feld registered_address
parent_entity_id UUID Nein FK ➔ legal_entities.id Feld parent_entity_id
org_unit_id UUID Nein FK ➔ org_units.id Feld org_unit_id
valid_from DATE Nein - Feld valid_from
valid_until DATE Nein - Feld valid_until
active BOOLEAN Ja * - Feld active
description TEXT Nein - Feld description
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ legal_entities.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
LegalEntityAccess legal_entity_access RLS Aktiv
12 Fields / Columns

Tabelle legal_entity_access

Feldname Data Type Required Schlüssel Functional Meaning
legal_entity_id UUID Ja * FK ➔ legal_entities.id Feld legal_entity_id
user_id UUID Ja * FK ➔ organization_users.user_id Feld user_id
access_level VARCHAR(8) Ja * - Feld access_level
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ legal_entities.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
LegalTexts legal_texts RLS Aktiv
18 Fields / Columns

Tabelle legal_texts

Feldname Data Type Required Schlüssel Functional Meaning
site_id UUID Ja * FK ➔ sites.id Feld site_id
kind VARCHAR(24) Ja * - Feld kind
source VARCHAR(16) Ja * - Feld source
version INTEGER Ja * - Feld version
status VARCHAR(16) Ja * - Feld status
body_i18n JSONB Ja * - Feld body_i18n
published_at DATETIME Nein - Feld published_at
published_by UUID Nein - Feld published_by
superseded_at DATETIME Nein - Feld superseded_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
LocationEndCustomerAliases location_end_customer_aliases RLS Aktiv
14 Fields / Columns

Tabelle location_end_customer_aliases

Feldname Data Type Required Schlüssel Functional Meaning
location_id UUID Ja * FK ➔ locations.id Feld location_id
end_customer_id UUID Ja * FK ➔ customers.id Feld end_customer_id
alias_number INTEGER Ja * - Feld alias_number
wave_key VARCHAR(64) Ja * - Feld wave_key
released_at DATETIME Nein - Feld released_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
Locations locations RLS Aktiv
34 Fields / Columns

Tabelle locations

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(255) Ja * - Feld name
code VARCHAR(32) Nein - Feld code
barcode VARCHAR(64) Nein - Feld barcode
type VARCHAR(48) Ja * - Feld type
hierarchy_level VARCHAR(16) Nein - Feld hierarchy_level
storage_mode VARCHAR(8) Ja * - Feld storage_mode
pick_sequence INTEGER Nein - Feld pick_sequence
access_level VARCHAR(8) Nein - Feld access_level
max_length_cm NUMERIC(10, 2) Nein - Feld max_length_cm
max_width_cm NUMERIC(10, 2) Nein - Feld max_width_cm
max_height_cm NUMERIC(10, 2) Nein - Feld max_height_cm
max_volume_l NUMERIC(12, 3) Nein - Feld max_volume_l
check_digits VARCHAR(3) Nein - Feld check_digits
removal_strategy VARCHAR(8) Nein - Feld removal_strategy
storage_category_id UUID Nein - Feld storage_category_id
parent_location_id UUID Nein FK ➔ locations.id Feld parent_location_id
legal_entity_id UUID Nein FK ➔ legal_entities.id Feld legal_entity_id
customer_id UUID Nein FK ➔ customers.id Feld customer_id
project_id UUID Nein FK ➔ projects.id Feld project_id
user_id UUID Nein FK ➔ users.id Feld user_id
street VARCHAR(255) Nein - Feld street
postal_code VARCHAR(16) Nein - Feld postal_code
city VARCHAR(128) Nein - Feld city
country_code VARCHAR(2) Nein - Feld country_code
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
MailboxAccounts mailbox_accounts RLS Aktiv
48 Fields / Columns

Tabelle mailbox_accounts

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(128) Ja * - Feld name
email_address VARCHAR(320) Ja * - Feld email_address
provider_type VARCHAR(32) Ja * - Feld provider_type
organization_user_id UUID Nein FK ➔ organization_users.id Feld organization_user_id
access_org_user_ids JSONB Nein - Feld access_org_user_ids
imap_host VARCHAR(255) Nein - Feld imap_host
imap_port INTEGER Ja * - Feld imap_port
imap_security VARCHAR(16) Ja * - Feld imap_security
imap_username VARCHAR(320) Nein - Feld imap_username
encrypted_password TEXT Nein - Feld encrypted_password
sync_folder VARCHAR(128) Ja * - Feld sync_folder
last_sync_at DATETIME Nein - Feld last_sync_at
last_uid INTEGER Ja * - Feld last_uid
sync_interval_minutes INTEGER Ja * - Feld sync_interval_minutes
smtp_host VARCHAR(255) Nein - Feld smtp_host
smtp_port INTEGER Ja * - Feld smtp_port
smtp_security VARCHAR(16) Ja * - Feld smtp_security
smtp_username VARCHAR(320) Nein - Feld smtp_username
encrypted_smtp_password TEXT Nein - Feld encrypted_smtp_password
from_name VARCHAR(128) Nein - Feld from_name
signature_text TEXT Nein - Feld signature_text
signature_html TEXT Nein - Feld signature_html
signature_image_document_id UUID Nein - Feld signature_image_document_id
signature_use_company_logo BOOLEAN Ja * - Feld signature_use_company_logo
inbox_processing BOOLEAN Ja * - Feld inbox_processing
oof_enabled BOOLEAN Ja * - Feld oof_enabled
oof_subject VARCHAR(512) Nein - Feld oof_subject
oof_body TEXT Nein - Feld oof_body
oof_from DATETIME Nein - Feld oof_from
oof_until DATETIME Nein - Feld oof_until
oof_once_days INTEGER Ja * - Feld oof_once_days
oauth_tenant_id VARCHAR(128) Nein - Feld oauth_tenant_id
client_id VARCHAR(128) Nein - Feld client_id
encrypted_refresh_token TEXT Nein - Feld encrypted_refresh_token
token_expiry DATETIME Nein - Feld token_expiry
is_active BOOLEAN Ja * - Feld is_active
connection_status VARCHAR(32) Ja * - Feld connection_status
last_error TEXT Nein - Feld last_error
last_successful_sync_at DATETIME Nein - Feld last_successful_sync_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
MailboxOofLog mailbox_oof_log RLS Aktiv
12 Fields / Columns

Tabelle mailbox_oof_log

Feldname Data Type Required Schlüssel Functional Meaning
mailbox_account_id UUID Ja * FK ➔ mailbox_accounts.id Feld mailbox_account_id
sender_email VARCHAR(320) Ja * - Feld sender_email
last_sent_at DATETIME Ja * - Feld last_sent_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
MailboxRules mailbox_rules RLS Aktiv
17 Fields / Columns

Tabelle mailbox_rules

Feldname Data Type Required Schlüssel Functional Meaning
mailbox_account_id UUID Ja * FK ➔ mailbox_accounts.id Feld mailbox_account_id
name VARCHAR(128) Ja * - Feld name
active BOOLEAN Ja * - Feld active
position INTEGER Ja * - Feld position
conditions JSONB Ja * - Feld conditions
actions JSONB Ja * - Feld actions
stop_processing BOOLEAN Ja * - Feld stop_processing
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
deleted_at DATETIME Nein - Feld deleted_at
MailboxSignatures mailbox_signatures RLS Aktiv
21 Fields / Columns

Tabelle mailbox_signatures

Feldname Data Type Required Schlüssel Functional Meaning
mailbox_account_id UUID Nein FK ➔ mailbox_accounts.id Feld mailbox_account_id
organization_user_id UUID Nein FK ➔ organization_users.id Feld organization_user_id
name VARCHAR(128) Ja * - Feld name
body_text TEXT Nein - Feld body_text
body_html TEXT Nein - Feld body_html
use_company_logo BOOLEAN Ja * - Feld use_company_logo
inline_image_document_id UUID Nein - Feld inline_image_document_id
attachment_document_ids JSONB Ja * - Feld attachment_document_ids
is_default_new BOOLEAN Ja * - Feld is_default_new
is_default_reply BOOLEAN Ja * - Feld is_default_reply
position INTEGER Ja * - Feld position
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
deleted_at DATETIME Nein - Feld deleted_at
MasterFieldAuthorities master_field_authorities RLS Aktiv
18 Fields / Columns

Tabelle master_field_authorities

Feldname Data Type Required Schlüssel Functional Meaning
object_key VARCHAR(32) Ja * - Feld object_key
record_id UUID Ja * - Feld record_id
field_key VARCHAR(128) Ja * - Feld field_key
provenance_id UUID Ja * FK ➔ master_field_provenance.id Feld provenance_id
active BOOLEAN Ja * - Feld active
supersedes_id UUID Nein FK ➔ master_field_authorities.id Feld supersedes_id
decision_reason TEXT Ja * - Feld decision_reason
decided_by UUID Nein - Feld decided_by
decided_at DATETIME Ja * - Feld decided_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
MasterFieldProvenance master_field_provenance RLS Aktiv
17 Fields / Columns

Tabelle master_field_provenance

Feldname Data Type Required Schlüssel Functional Meaning
object_key VARCHAR(32) Ja * - Feld object_key
record_id UUID Ja * - Feld record_id
field_key VARCHAR(128) Ja * - Feld field_key
source_mapping_id UUID Ja * FK ➔ master_record_source_mappings.id Feld source_mapping_id
source_field_key VARCHAR(128) Ja * - Feld source_field_key
observation_key VARCHAR(64) Ja * - Feld observation_key
confidence NUMERIC(5, 4) Ja * - Feld confidence
observed_at DATETIME Ja * - Feld observed_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ master_record_source_mappings.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
MasterRecordGroups master_record_groups RLS Aktiv
13 Fields / Columns

Tabelle master_record_groups

Feldname Data Type Required Schlüssel Functional Meaning
object_key VARCHAR(32) Ja * - Feld object_key
canonical_record_id UUID Ja * - Feld canonical_record_id
canonical_label VARCHAR(255) Ja * - Feld canonical_label
superseded_by_group_id UUID Nein FK ➔ master_record_groups.id Feld superseded_by_group_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ master_record_groups.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
MasterRecordMembers master_record_members RLS Aktiv
9 Fields / Columns

Tabelle master_record_members

Feldname Data Type Required Schlüssel Functional Meaning
group_id UUID Ja * FK ➔ master_record_groups.id Feld group_id
object_key VARCHAR(32) Ja * - Feld object_key
record_id UUID Ja * - Feld record_id
member_role VARCHAR(16) Ja * - Feld member_role
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
MasterRecordSourceMappings master_record_source_mappings RLS Aktiv
16 Fields / Columns

Tabelle master_record_source_mappings

Feldname Data Type Required Schlüssel Functional Meaning
object_key VARCHAR(32) Ja * - Feld object_key
source_system VARCHAR(64) Ja * - Feld source_system
external_record_key VARCHAR(255) Ja * - Feld external_record_key
record_id UUID Ja * - Feld record_id
active BOOLEAN Ja * - Feld active
supersedes_id UUID Nein FK ➔ master_record_source_mappings.id Feld supersedes_id
change_reason TEXT Nein - Feld change_reason
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
NumberSequences number_sequences RLS Aktiv
24 Fields / Columns

Tabelle number_sequences

Feldname Data Type Required Schlüssel Functional Meaning
document_type VARCHAR(48) Ja * - Feld document_type
code VARCHAR(48) Ja * - Feld code
name VARCHAR(64) Ja * - Feld name
is_default BOOLEAN Ja * - Feld is_default
priority INTEGER Ja * - Feld priority
criteria JSONB Ja * - Feld criteria
prefix VARCHAR(16) Ja * - Feld prefix
suffix VARCHAR(16) Ja * - Feld suffix
pattern VARCHAR(64) Ja * - Feld pattern
padding INTEGER Ja * - Feld padding
start_value INTEGER Ja * - Feld start_value
next_value INTEGER Ja * - Feld next_value
reset_policy VARCHAR(48) Ja * - Feld reset_policy
period_key VARCHAR(16) Ja * - Feld period_key
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
OauthIdentities oauth_identities
7 Fields / Columns

Tabelle oauth_identities

Feldname Data Type Required Schlüssel Functional Meaning
user_id UUID Ja * FK ➔ users.id Feld user_id
provider VARCHAR(32) Ja * - Feld provider
provider_user_id VARCHAR(255) Ja * - Feld provider_user_id
email VARCHAR(320) Ja * - Feld email
id UUID Nein PK Feld id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
OrgUnitMembers org_unit_members RLS Aktiv
12 Fields / Columns

Tabelle org_unit_members

Feldname Data Type Required Schlüssel Functional Meaning
unit_id UUID Ja * FK ➔ org_units.id Feld unit_id
user_id UUID Ja * FK ➔ users.id Feld user_id
is_lead BOOLEAN Ja * - Feld is_lead
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
OrgUnits org_units RLS Aktiv
17 Fields / Columns

Tabelle org_units

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
name VARCHAR(120) Ja * - Feld name
kind VARCHAR(16) Ja * - Feld kind
parent_id UUID Nein FK ➔ org_units.id Feld parent_id
manager_user_id UUID Nein FK ➔ users.id Feld manager_user_id
description TEXT Nein - Feld description
sort_order INTEGER Ja * - Feld sort_order
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
OrganizationUsers organization_users RLS Aktiv
29 Fields / Columns

Tabelle organization_users

Feldname Data Type Required Schlüssel Functional Meaning
user_id UUID Ja * FK ➔ users.id Feld user_id
role VARCHAR(48) Ja * - Feld role
custom_role_id UUID Nein FK ➔ tenant_roles.id Feld custom_role_id
permissions JSONB Ja * - Feld permissions
is_owner BOOLEAN Ja * - Feld is_owner
is_active BOOLEAN Ja * - Feld is_active
employee_number VARCHAR(32) Nein - Feld employee_number
trade VARCHAR(128) Nein - Feld trade
hourly_rate NUMERIC(10, 2) Nein - Feld hourly_rate
hire_date DATE Nein - Feld hire_date
phone_mobile VARCHAR(64) Nein - Feld phone_mobile
emergency_contact VARCHAR(255) Nein - Feld emergency_contact
adr_certified BOOLEAN Ja * - Feld adr_certified
birth_date DATE Nein - Feld birth_date
sv_number VARCHAR(32) Nein - Feld sv_number
tax_id VARCHAR(16) Nein - Feld tax_id
religion VARCHAR(64) Nein - Feld religion
health_insurance VARCHAR(128) Nein - Feld health_insurance
iban VARCHAR(34) Nein - Feld iban
address VARCHAR(512) Nein - Feld address
employment_type VARCHAR(48) Nein - Feld employment_type
weekly_hours NUMERIC(5, 2) Nein - Feld weekly_hours
exit_date DATE Nein - Feld exit_date
work_permit_until DATE Nein - Feld work_permit_until
supervisor_id UUID Nein FK ➔ organization_users.id Feld supervisor_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
Organizations organizations
60 Fields / Columns

Tabelle organizations

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(255) Ja * - Feld name
legal_name VARCHAR(255) Nein - Feld legal_name
slug VARCHAR(64) Ja * - Feld slug
country_code VARCHAR(2) Ja * - Feld country_code
currency VARCHAR(3) Ja * - Feld currency
timezone VARCHAR(64) Ja * - Feld timezone
locale VARCHAR(10) Ja * - Feld locale
vat_id VARCHAR(32) Nein - Feld vat_id
tax_id VARCHAR(32) Nein - Feld tax_id
street VARCHAR(255) Nein - Feld street
house_number VARCHAR(16) Nein - Feld house_number
postal_code VARCHAR(16) Nein - Feld postal_code
city VARCHAR(128) Nein - Feld city
state VARCHAR(64) Nein - Feld state
phone VARCHAR(64) Nein - Feld phone
fax VARCHAR(64) Nein - Feld fax
contact_email VARCHAR(320) Nein - Feld contact_email
website VARCHAR(255) Nein - Feld website
commercial_register VARCHAR(128) Nein - Feld commercial_register
commercial_register_number VARCHAR(64) Nein - Feld commercial_register_number
managing_director VARCHAR(255) Nein - Feld managing_director
business_type VARCHAR(128) Nein - Feld business_type
industry_key VARCHAR(64) Nein - Feld industry_key
enabled_modules JSONB Nein - Feld enabled_modules
locked_modules JSONB Nein - Feld locked_modules
allowed_workflows JSONB Nein - Feld allowed_workflows
platform_product_id UUID Nein FK ➔ platform_products.id Feld platform_product_id
iban VARCHAR(64) Nein - Feld iban
bic VARCHAR(16) Nein - Feld bic
bank_name VARCHAR(128) Nein - Feld bank_name
default_tax_rate NUMERIC(6, 4) Nein - Feld default_tax_rate
chart_of_accounts VARCHAR(48) Ja * - Feld chart_of_accounts
peppol_participant_id VARCHAR(64) Nein - Feld peppol_participant_id
peppol_endpoint_scheme VARCHAR(16) Nein - Feld peppol_endpoint_scheme
business_backend VARCHAR(48) Ja * - Feld business_backend
settings JSONB Ja * - Feld settings
agent_settings JSONB Ja * - Feld agent_settings
monthly_ai_budget NUMERIC(10, 2) Ja * - Feld monthly_ai_budget
monthly_agent_runs INTEGER Ja * - Feld monthly_agent_runs
monthly_document_pages INTEGER Ja * - Feld monthly_document_pages
ai_credit_balance NUMERIC(14, 2) Ja * - Feld ai_credit_balance
ai_region VARCHAR(16) Ja * - Feld ai_region
ai_provider_override VARCHAR(32) Nein - Feld ai_provider_override
plan VARCHAR(48) Ja * - Feld plan
billing_status VARCHAR(48) Ja * - Feld billing_status
plan_started_at DATETIME Nein - Feld plan_started_at
max_users INTEGER Nein - Feld max_users
storage_quota_bytes BIGINT Nein - Feld storage_quota_bytes
ai_documents_per_month INTEGER Nein - Feld ai_documents_per_month
purchased_storage_bytes BIGINT Ja * - Feld purchased_storage_bytes
subscription_storage_bytes BIGINT Ja * - Feld subscription_storage_bytes
stripe_customer_id VARCHAR(64) Nein - Feld stripe_customer_id
stripe_subscription_id VARCHAR(64) Nein - Feld stripe_subscription_id
payment_failed_at DATETIME Nein - Feld payment_failed_at
cancel_at_period_end BOOLEAN Ja * - Feld cancel_at_period_end
deleted_at DATETIME Nein - Feld deleted_at
id UUID Nein PK Feld id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
PartnerShopRates partner_shop_rates RLS Aktiv
14 Fields / Columns

Tabelle partner_shop_rates

Feldname Data Type Required Schlüssel Functional Meaning
partner_customer_id UUID Ja * FK ➔ customers.id Feld partner_customer_id
shop_supplier_id UUID Ja * FK ➔ suppliers.id Feld shop_supplier_id
adjustment_percent NUMERIC(8, 4) Ja * - Feld adjustment_percent
active BOOLEAN Ja * - Feld active
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
PeppolTransmissions peppol_transmissions RLS Aktiv
21 Fields / Columns

Tabelle peppol_transmissions

Feldname Data Type Required Schlüssel Functional Meaning
invoice_id UUID Nein FK ➔ invoices.id Feld invoice_id
transmission_type VARCHAR(48) Ja * - Feld transmission_type
document_type VARCHAR(48) Ja * - Feld document_type
status VARCHAR(48) Ja * - Feld status
sender_participant_id VARCHAR(64) Ja * - Feld sender_participant_id
receiver_participant_id VARCHAR(64) Ja * - Feld receiver_participant_id
message_id VARCHAR(128) Ja * - Feld message_id
payload_xml TEXT Ja * - Feld payload_xml
peppol_response JSONB Ja * - Feld peppol_response
error_message TEXT Nein - Feld error_message
transmitted_at DATETIME Nein - Feld transmitted_at
delivered_at DATETIME Nein - Feld delivered_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
PlatformProducts platform_products
21 Fields / Columns

Tabelle platform_products

Feldname Data Type Required Schlüssel Functional Meaning
key VARCHAR(64) Ja * - Feld key
name VARCHAR(255) Ja * - Feld name
tagline VARCHAR(255) Nein - Feld tagline
description TEXT Nein - Feld description
audience VARCHAR(48) Ja * - Feld audience
status VARCHAR(48) Ja * - Feld status
module_keys JSONB Ja * - Feld module_keys
workflow_keys JSONB Ja * - Feld workflow_keys
agent_keys JSONB Ja * - Feld agent_keys
recommended_industry_keys JSONB Ja * - Feld recommended_industry_keys
ai_rationale TEXT Nein - Feld ai_rationale
ai_confidence NUMERIC(4, 3) Nein - Feld ai_confidence
highlights JSONB Ja * - Feld highlights
price_amount NUMERIC(14, 2) Nein - Feld price_amount
price_currency VARCHAR(3) Ja * - Feld price_currency
price_period VARCHAR(16) Ja * - Feld price_period
created_by UUID Nein - Feld created_by
published_at DATETIME Nein - Feld published_at
id UUID Nein PK Feld id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
PlatformSettings platform_settings
6 Fields / Columns

Tabelle platform_settings

Feldname Data Type Required Schlüssel Functional Meaning
key VARCHAR(64) Ja * - Feld key
value_encrypted TEXT Ja * - Feld value_encrypted
updated_by UUID Nein - Feld updated_by
id UUID Nein PK Feld id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
PlatformSubscriptionInvoices platform_subscription_invoices RLS Aktiv
14 Fields / Columns

Tabelle platform_subscription_invoices

Feldname Data Type Required Schlüssel Functional Meaning
stripe_subscription_id VARCHAR(64) Ja * - Feld stripe_subscription_id
stripe_invoice_id VARCHAR(64) Ja * - Feld stripe_invoice_id
plan VARCHAR(48) Ja * - Feld plan
period_start DATETIME Ja * - Feld period_start
period_end DATETIME Ja * - Feld period_end
amount_gross NUMERIC(14, 2) Ja * - Feld amount_gross
status VARCHAR(16) Ja * - Feld status
paid_at DATETIME Nein - Feld paid_at
operator_invoice_id UUID Nein FK ➔ invoices.id Feld operator_invoice_id
operator_invoice_document_id UUID Nein FK ➔ documents.id Feld operator_invoice_document_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
PricelistItems pricelist_items RLS Aktiv
22 Fields / Columns

Tabelle pricelist_items

Feldname Data Type Required Schlüssel Functional Meaning
pricelist_id UUID Ja * FK ➔ pricelists.id Feld pricelist_id
scope VARCHAR(16) Ja * - Feld scope
product_id UUID Nein FK ➔ products.id Feld product_id
category_id UUID Nein FK ➔ product_categories.id Feld category_id
min_quantity NUMERIC(14, 4) Ja * - Feld min_quantity
price_basis VARCHAR(16) Ja * - Feld price_basis
price NUMERIC(14, 2) Nein - Feld price
label VARCHAR(255) Nein - Feld label
discount_percent NUMERIC(5, 2) Nein - Feld discount_percent
surcharge NUMERIC(14, 2) Nein - Feld surcharge
min_margin_percent NUMERIC(5, 2) Nein - Feld min_margin_percent
max_margin_percent NUMERIC(5, 2) Nein - Feld max_margin_percent
agent_price NUMERIC(14, 2) Nein - Feld agent_price
agent_discount_percent NUMERIC(5, 2) Nein - Feld agent_discount_percent
agent_surcharge NUMERIC(14, 2) Nein - Feld agent_surcharge
valid_from DATE Nein - Feld valid_from
valid_until DATE Nein - Feld valid_until
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
Pricelists pricelists RLS Aktiv
16 Fields / Columns

Tabelle pricelists

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(255) Ja * - Feld name
description TEXT Nein - Feld description
currency VARCHAR(3) Ja * - Feld currency
parent_id UUID Nein FK ➔ pricelists.id Feld parent_id
valid_from DATE Nein - Feld valid_from
valid_until DATE Nein - Feld valid_until
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
PrintBridges print_bridges RLS Aktiv
19 Fields / Columns

Tabelle print_bridges

Feldname Data Type Required Schlüssel Functional Meaning
bridge_uid VARCHAR(64) Ja * - Feld bridge_uid
name VARCHAR(256) Ja * - Feld name
token_hash VARCHAR(64) Ja * - Feld token_hash
active BOOLEAN Ja * - Feld active
capabilities JSONB Ja * - Feld capabilities
discovered_printers JSONB Ja * - Feld discovered_printers
software_version VARCHAR(64) Nein - Feld software_version
hostname VARCHAR(256) Nein - Feld hostname
last_ip VARCHAR(64) Nein - Feld last_ip
last_seen_at DATETIME Nein - Feld last_seen_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
PrintJobs print_jobs RLS Aktiv
33 Fields / Columns

Tabelle print_jobs

Feldname Data Type Required Schlüssel Functional Meaning
template_id UUID Nein FK ➔ label_templates.id Feld template_id
printer_id UUID Nein FK ➔ printers.id Feld printer_id
status VARCHAR(24) Ja * - Feld status
copies INTEGER Ja * - Feld copies
entity_type VARCHAR(32) Ja * - Feld entity_type
entity_id UUID Nein - Feld entity_id
operation_code VARCHAR(64) Nein - Feld operation_code
payload_snapshot JSONB Ja * - Feld payload_snapshot
output_format VARCHAR(16) Ja * - Feld output_format
rendered_content BLOB Nein - Feld rendered_content
content_type VARCHAR(128) Ja * - Feld content_type
error_message TEXT Nein - Feld error_message
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
content_checksum VARCHAR(64) Nein - Feld content_checksum
leased_by_bridge_id UUID Nein FK ➔ print_bridges.id Feld leased_by_bridge_id
lease_token_hash VARCHAR(64) Nein - Feld lease_token_hash
leased_until DATETIME Nein - Feld leased_until
attempt_count INTEGER Ja * - Feld attempt_count
next_retry_at DATETIME Nein - Feld next_retry_at
delivered_at DATETIME Nein - Feld delivered_at
acknowledged_at DATETIME Nein - Feld acknowledged_at
reprint_of_id UUID Nein FK ➔ print_jobs.id Feld reprint_of_id
reprint_reason TEXT Nein - Feld reprint_reason
printed_at DATETIME Nein - Feld printed_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
Printers printers RLS Aktiv
20 Fields / Columns

Tabelle printers

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(64) Ja * - Feld code
name VARCHAR(256) Ja * - Feld name
connection_type VARCHAR(16) Ja * - Feld connection_type
output_format VARCHAR(16) Ja * - Feld output_format
device_name VARCHAR(256) Nein - Feld device_name
bridge_id UUID Nein FK ➔ print_bridges.id Feld bridge_id
host VARCHAR(255) Nein - Feld host
port INTEGER Nein - Feld port
location_id UUID Nein FK ➔ locations.id Feld location_id
is_default BOOLEAN Ja * - Feld is_default
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ProcessSources process_sources RLS Aktiv
13 Fields / Columns

Tabelle process_sources

Feldname Data Type Required Schlüssel Functional Meaning
process_id UUID Ja * FK ➔ business_processes.id Feld process_id
source_type VARCHAR(2) Ja * - Feld source_type
source_ref VARCHAR(255) Ja * - Feld source_ref
artifact_version VARCHAR(96) Nein - Feld artifact_version
license VARCHAR(64) Nein - Feld license
license_status VARCHAR(24) Ja * - Feld license_status
retrieved_at DATE Nein - Feld retrieved_at
attribution TEXT Nein - Feld attribution
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ business_processes.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ProcessStepMappings process_step_mappings RLS Aktiv
14 Fields / Columns

Tabelle process_step_mappings

Feldname Data Type Required Schlüssel Functional Meaning
step_id UUID Ja * FK ➔ business_process_steps.id Feld step_id
process_id UUID Ja * FK ➔ business_processes.id Feld process_id
cskb_record_id VARCHAR(255) Ja * - Feld cskb_record_id
kind VARCHAR(16) Ja * - Feld kind
status VARCHAR(16) Ja * - Feld status
confidence NUMERIC(4, 3) Nein - Feld confidence
reason TEXT Nein - Feld reason
reviewed_by UUID Nein - Feld reviewed_by
reviewed_at DATETIME Nein - Feld reviewed_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ProductAccessories product_accessories RLS Aktiv
12 Fields / Columns

Tabelle product_accessories

Feldname Data Type Required Schlüssel Functional Meaning
product_id UUID Ja * FK ➔ products.id Feld product_id
accessory_product_id UUID Ja * FK ➔ products.id Feld accessory_product_id
sequence INTEGER Ja * - Feld sequence
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ProductAttributeValues product_attribute_values RLS Aktiv
15 Fields / Columns

Tabelle product_attribute_values

Feldname Data Type Required Schlüssel Functional Meaning
attribute_id UUID Ja * FK ➔ product_attributes.id Feld attribute_id
name VARCHAR(128) Ja * - Feld name
color_hex VARCHAR(7) Nein - Feld color_hex
default_price_extra NUMERIC(14, 2) Ja * - Feld default_price_extra
sequence INTEGER Ja * - Feld sequence
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ProductAttributes product_attributes RLS Aktiv
13 Fields / Columns

Tabelle product_attributes

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(128) Ja * - Feld name
display_type VARCHAR(48) Ja * - Feld display_type
sequence INTEGER Ja * - Feld sequence
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ProductBomByproducts product_bom_byproducts RLS Aktiv
12 Fields / Columns

Tabelle product_bom_byproducts

Feldname Data Type Required Schlüssel Functional Meaning
bom_id UUID Ja * FK ➔ product_boms.id Feld bom_id
product_id UUID Ja * FK ➔ products.id Feld product_id
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
cost_share_percent NUMERIC(6, 2) Nein - Feld cost_share_percent
target_location_id UUID Nein FK ➔ locations.id Feld target_location_id
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ProductBomCustomers product_bom_customers RLS Aktiv
7 Fields / Columns

Tabelle product_bom_customers

Feldname Data Type Required Schlüssel Functional Meaning
bom_id UUID Ja * FK ➔ product_boms.id Feld bom_id
customer_id UUID Ja * FK ➔ customers.id Feld customer_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ProductBomLines product_bom_lines RLS Aktiv
18 Fields / Columns

Tabelle product_bom_lines

Feldname Data Type Required Schlüssel Functional Meaning
bom_id UUID Ja * FK ➔ product_boms.id Feld bom_id
component_product_id UUID Ja * FK ➔ products.id Feld component_product_id
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
unit_cost NUMERIC(14, 2) Nein - Feld unit_cost
position INTEGER Ja * - Feld position
notes TEXT Nein - Feld notes
recovery_percent NUMERIC(6, 2) Nein - Feld recovery_percent
component_bom_id UUID Nein FK ➔ product_boms.id Feld component_bom_id
do_not_explode BOOLEAN Ja * - Feld do_not_explode
scrap_factor_percent NUMERIC(6, 2) Nein - Feld scrap_factor_percent
alternative_product_ids JSONB Nein - Feld alternative_product_ids
consumption_policy VARCHAR(32) Ja * - Feld consumption_policy
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ProductBomSteps product_bom_steps RLS Aktiv
17 Fields / Columns

Tabelle product_bom_steps

Feldname Data Type Required Schlüssel Functional Meaning
bom_id UUID Ja * FK ➔ product_boms.id Feld bom_id
position INTEGER Ja * - Feld position
name VARCHAR(255) Ja * - Feld name
description TEXT Nein - Feld description
workstation_id UUID Nein FK ➔ workstations.id Feld workstation_id
estimated_minutes INTEGER Nein - Feld estimated_minutes
setup_minutes INTEGER Nein - Feld setup_minutes
image_url TEXT Nein - Feld image_url
image_urls JSONB Nein - Feld image_urls
notes TEXT Nein - Feld notes
checklist JSONB Nein - Feld checklist
tool_id UUID Nein FK ➔ production_tools.id Feld tool_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ProductBoms product_boms RLS Aktiv
29 Fields / Columns

Tabelle product_boms

Feldname Data Type Required Schlüssel Functional Meaning
product_id UUID Ja * FK ➔ products.id Feld product_id
name VARCHAR(255) Ja * - Feld name
code VARCHAR(64) Nein - Feld code
bom_type VARCHAR(48) Ja * - Feld bom_type
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
customer_id UUID Nein FK ➔ customers.id Feld customer_id
instructions TEXT Nein - Feld instructions
default_workstation_id UUID Nein FK ➔ workstations.id Feld default_workstation_id
is_default BOOLEAN Ja * - Feld is_default
picking_policy VARCHAR(32) Ja * - Feld picking_policy
destination_routing VARCHAR(32) Ja * - Feld destination_routing
estimated_minutes INTEGER Nein - Feld estimated_minutes
active BOOLEAN Ja * - Feld active
notes TEXT Nein - Feld notes
revision VARCHAR(32) Ja * - Feld revision
valid_from DATE Nein - Feld valid_from
valid_until DATE Nein - Feld valid_until
explode_components BOOLEAN Ja * - Feld explode_components
is_phantom BOOLEAN Ja * - Feld is_phantom
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ProductCategoryTaxonomyBindings product_category_taxonomy_bindings RLS Aktiv
14 Fields / Columns

Tabelle product_category_taxonomy_bindings

Feldname Data Type Required Schlüssel Functional Meaning
standard_code VARCHAR(32) Ja * FK ➔ standard_categories.code Feld standard_code
category_id UUID Ja * FK ➔ product_categories.id Feld category_id
version INTEGER Ja * - Feld version
active BOOLEAN Ja * - Feld active
content_hash VARCHAR(64) Ja * - Feld content_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ProductCompatibilities product_compatibilities RLS Aktiv
12 Fields / Columns

Tabelle product_compatibilities

Feldname Data Type Required Schlüssel Functional Meaning
part_product_id UUID Ja * FK ➔ products.id Feld part_product_id
equipment_product_id UUID Ja * FK ➔ products.id Feld equipment_product_id
notes VARCHAR(255) Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ProductSupplierinfo product_supplierinfo RLS Aktiv
21 Fields / Columns

Tabelle product_supplierinfo

Feldname Data Type Required Schlüssel Functional Meaning
product_id UUID Ja * FK ➔ products.id Feld product_id
supplier_id UUID Ja * FK ➔ suppliers.id Feld supplier_id
vendor_product_name VARCHAR(255) Nein - Feld vendor_product_name
vendor_product_code VARCHAR(64) Nein - Feld vendor_product_code
sequence INTEGER Ja * - Feld sequence
min_qty NUMERIC(14, 4) Ja * - Feld min_qty
price NUMERIC(14, 2) Nein - Feld price
currency VARCHAR(3) Ja * - Feld currency
delay INTEGER Ja * - Feld delay
is_preferred BOOLEAN Ja * - Feld is_preferred
date_start DATE Nein - Feld date_start
date_end DATE Nein - Feld date_end
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ProductVariantValues product_variant_values RLS Aktiv
8 Fields / Columns

Tabelle product_variant_values

Feldname Data Type Required Schlüssel Functional Meaning
product_id UUID Ja * FK ➔ products.id Feld product_id
value_id UUID Ja * FK ➔ product_attribute_values.id Feld value_id
price_extra NUMERIC(14, 2) Ja * - Feld price_extra
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ProductionTools production_tools RLS Aktiv
19 Fields / Columns

Tabelle production_tools

Feldname Data Type Required Schlüssel Functional Meaning
tool_code VARCHAR(64) Ja * - Feld tool_code
name VARCHAR(255) Ja * - Feld name
tool_type VARCHAR(64) Ja * - Feld tool_type
status VARCHAR(32) Ja * - Feld status
current_cycles INTEGER Ja * - Feld current_cycles
max_cycles_until_maintenance INTEGER Nein - Feld max_cycles_until_maintenance
maintenance_warning_threshold INTEGER Nein - Feld maintenance_warning_threshold
workstation_id UUID Nein FK ➔ workstations.id Feld workstation_id
last_maintenance_at DATETIME Nein - Feld last_maintenance_at
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
PurchaseItems purchase_items RLS Aktiv
25 Fields / Columns

Tabelle purchase_items

Feldname Data Type Required Schlüssel Functional Meaning
purchase_id UUID Ja * FK ➔ purchases.id Feld purchase_id
position INTEGER Ja * - Feld position
product_id UUID Nein FK ➔ products.id Feld product_id
description TEXT Ja * - Feld description
quantity_ordered NUMERIC(14, 4) Ja * - Feld quantity_ordered
quantity_received NUMERIC(14, 4) Ja * - Feld quantity_received
unit VARCHAR(16) Ja * - Feld unit
unit_price NUMERIC(14, 2) Ja * - Feld unit_price
tax_rate NUMERIC(6, 4) Ja * - Feld tax_rate
net_amount NUMERIC(14, 2) Ja * - Feld net_amount
tax_amount NUMERIC(14, 2) Ja * - Feld tax_amount
gross_amount NUMERIC(14, 2) Ja * - Feld gross_amount
project_id UUID Nein FK ➔ projects.id Feld project_id
supplier_product_code VARCHAR(64) Nein - Feld supplier_product_code
customer_id UUID Nein FK ➔ customers.id Feld customer_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
quantity_billed NUMERIC(14, 4) Ja * - Feld quantity_billed
discount_percentage NUMERIC(6, 4) Ja * - Feld discount_percentage
target_consignment BOOLEAN Ja * - Feld target_consignment
destination_location_id UUID Nein FK ➔ locations.id Feld destination_location_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
PurchaseRequisitionItems purchase_requisition_items RLS Aktiv
13 Fields / Columns

Tabelle purchase_requisition_items

Feldname Data Type Required Schlüssel Functional Meaning
purchase_requisition_id UUID Ja * FK ➔ purchase_requisitions.id Feld purchase_requisition_id
position INTEGER Ja * - Feld position
product_id UUID Nein FK ➔ products.id Feld product_id
description TEXT Ja * - Feld description
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
unit_price_estimate NUMERIC(14, 2) Nein - Feld unit_price_estimate
purchase_item_id UUID Nein FK ➔ purchase_items.id Feld purchase_item_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
PurchaseRequisitions purchase_requisitions RLS Aktiv
20 Fields / Columns

Tabelle purchase_requisitions

Feldname Data Type Required Schlüssel Functional Meaning
requisition_number VARCHAR(32) Ja * - Feld requisition_number
status VARCHAR(48) Ja * - Feld status
requester_user_id UUID Ja * FK ➔ users.id Feld requester_user_id
project_id UUID Nein FK ➔ projects.id Feld project_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
cost_center_id UUID Nein FK ➔ cost_centers.id Feld cost_center_id
notes TEXT Nein - Feld notes
approved_by UUID Nein FK ➔ users.id Feld approved_by
approved_at DATETIME Nein - Feld approved_at
purchase_id UUID Nein FK ➔ purchases.id Feld purchase_id
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
PurchaseRfqLines purchase_rfq_lines RLS Aktiv
11 Fields / Columns

Tabelle purchase_rfq_lines

Feldname Data Type Required Schlüssel Functional Meaning
rfq_id UUID Ja * FK ➔ purchase_rfqs.id Feld rfq_id
position INTEGER Ja * - Feld position
product_id UUID Nein FK ➔ products.id Feld product_id
description TEXT Ja * - Feld description
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
PurchaseRfqSuppliers purchase_rfq_suppliers RLS Aktiv
9 Fields / Columns

Tabelle purchase_rfq_suppliers

Feldname Data Type Required Schlüssel Functional Meaning
rfq_id UUID Ja * FK ➔ purchase_rfqs.id Feld rfq_id
supplier_id UUID Ja * FK ➔ suppliers.id Feld supplier_id
email_sent_at DATETIME Nein - Feld email_sent_at
quote_id UUID Nein FK ➔ supplier_quotes.id Feld quote_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
PurchaseRfqs purchase_rfqs RLS Aktiv
16 Fields / Columns

Tabelle purchase_rfqs

Feldname Data Type Required Schlüssel Functional Meaning
rfq_number VARCHAR(32) Ja * - Feld rfq_number
status VARCHAR(48) Ja * - Feld status
requisition_id UUID Nein FK ➔ purchase_requisitions.id Feld requisition_id
project_id UUID Nein FK ➔ projects.id Feld project_id
notes TEXT Nein - Feld notes
due_date DATE Nein - Feld due_date
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
Purchases purchases RLS Aktiv
42 Fields / Columns

Tabelle purchases

Feldname Data Type Required Schlüssel Functional Meaning
purchase_number VARCHAR(32) Ja * - Feld purchase_number
legal_entity_id UUID Nein FK ➔ legal_entities.id Feld legal_entity_id
supplier_id UUID Nein FK ➔ suppliers.id Feld supplier_id
project_id UUID Nein FK ➔ projects.id Feld project_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
destination_location_id UUID Nein FK ➔ locations.id Feld destination_location_id
order_date DATE Nein - Feld order_date
expected_delivery_date DATE Nein - Feld expected_delivery_date
currency VARCHAR(3) Ja * - Feld currency
net_amount NUMERIC(14, 2) Ja * - Feld net_amount
tax_amount NUMERIC(14, 2) Ja * - Feld tax_amount
gross_amount NUMERIC(14, 2) Ja * - Feld gross_amount
status VARCHAR(48) Ja * - Feld status
supplier_reference VARCHAR(128) Nein - Feld supplier_reference
customer_id UUID Nein FK ➔ customers.id Feld customer_id
contract_id UUID Nein FK ➔ contracts.id Feld contract_id
procurement_type VARCHAR(32) Ja * - Feld procurement_type
incoterm VARCHAR(16) Nein - Feld incoterm
incoterm_location VARCHAR(128) Nein - Feld incoterm_location
payment_terms VARCHAR(128) Nein - Feld payment_terms
payment_term_code VARCHAR(32) Nein - Feld payment_term_code
delivery_address TEXT Nein - Feld delivery_address
cost_center_id UUID Nein FK ➔ cost_centers.id Feld cost_center_id
cost_type_id UUID Nein FK ➔ cost_types.id Feld cost_type_id
sent_at DATETIME Nein - Feld sent_at
sent_to_email VARCHAR(320) Nein - Feld sent_to_email
supplier_confirmed_at DATETIME Nein - Feld supplier_confirmed_at
supplier_confirmation_number VARCHAR(128) Nein - Feld supplier_confirmation_number
pdf_storage_key VARCHAR(255) Nein - Feld pdf_storage_key
is_consolidated BOOLEAN Ja * - Feld is_consolidated
grouping_mode VARCHAR(32) Ja * - Feld grouping_mode
notes TEXT Nein - Feld notes
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ legal_entities.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
QuoteTemplateItems quote_template_items RLS Aktiv
14 Fields / Columns

Tabelle quote_template_items

Feldname Data Type Required Schlüssel Functional Meaning
template_id UUID Ja * FK ➔ quote_templates.id Feld template_id
position INTEGER Ja * - Feld position
product_id UUID Nein FK ➔ products.id Feld product_id
description TEXT Ja * - Feld description
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
unit_price NUMERIC(14, 2) Nein - Feld unit_price
discount_percent NUMERIC(5, 2) Ja * - Feld discount_percent
tax_rate NUMERIC(6, 4) Ja * - Feld tax_rate
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
QuoteTemplates quote_templates RLS Aktiv
20 Fields / Columns

Tabelle quote_templates

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(255) Ja * - Feld name
description TEXT Nein - Feld description
is_active BOOLEAN Ja * - Feld is_active
validity_days INTEGER Ja * - Feld validity_days
currency VARCHAR(3) Ja * - Feld currency
payment_terms VARCHAR(128) Nein - Feld payment_terms
payment_term_code VARCHAR(32) Nein - Feld payment_term_code
delivery_address TEXT Nein - Feld delivery_address
terms TEXT Nein - Feld terms
notes TEXT Nein - Feld notes
signature_required BOOLEAN Ja * - Feld signature_required
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
Reminders reminders RLS Aktiv
17 Fields / Columns

Tabelle reminders

Feldname Data Type Required Schlüssel Functional Meaning
title VARCHAR(255) Ja * - Feld title
remind_at DATETIME Ja * - Feld remind_at
entity_type VARCHAR(64) Nein - Feld entity_type
entity_id UUID Nein - Feld entity_id
task_id UUID Nein FK ➔ tasks.id Feld task_id
is_sent BOOLEAN Ja * - Feld is_sent
sent_at DATETIME Nein - Feld sent_at
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ReorderingRules reordering_rules RLS Aktiv
20 Fields / Columns

Tabelle reordering_rules

Feldname Data Type Required Schlüssel Functional Meaning
product_id UUID Ja * FK ➔ products.id Feld product_id
location_id UUID Nein FK ➔ locations.id Feld location_id
supplier_info_id UUID Nein FK ➔ product_supplierinfo.id Feld supplier_info_id
min_quantity NUMERIC(14, 4) Ja * - Feld min_quantity
target_quantity NUMERIC(14, 4) Ja * - Feld target_quantity
order_multiple NUMERIC(14, 4) Ja * - Feld order_multiple
min_order_quantity NUMERIC(14, 4) Ja * - Feld min_order_quantity
automatic BOOLEAN Ja * - Feld automatic
active BOOLEAN Ja * - Feld active
last_evaluated_at DATETIME Nein - Feld last_evaluated_at
last_procurement_at DATETIME Nein - Feld last_procurement_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ReviewTasks review_tasks RLS Aktiv
23 Fields / Columns

Tabelle review_tasks

Feldname Data Type Required Schlüssel Functional Meaning
agent_run_id UUID Nein FK ➔ agent_runs.id Feld agent_run_id
inbox_item_id UUID Nein FK ➔ inbox_items.id Feld inbox_item_id
review_type VARCHAR(48) Ja * - Feld review_type
question TEXT Ja * - Feld question
proposed_action JSONB Ja * - Feld proposed_action
options JSONB Ja * - Feld options
entity_type VARCHAR(64) Nein - Feld entity_type
entity_id UUID Nein - Feld entity_id
confidence NUMERIC(4, 3) Nein - Feld confidence
status VARCHAR(48) Ja * - Feld status
assigned_user_id UUID Nein FK ➔ users.id Feld assigned_user_id
resolution JSONB Ja * - Feld resolution
resolved_by UUID Nein FK ➔ users.id Feld resolved_by
resolved_at DATETIME Nein - Feld resolved_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ScanBridges scan_bridges RLS Aktiv
18 Fields / Columns

Tabelle scan_bridges

Feldname Data Type Required Schlüssel Functional Meaning
bridge_uid VARCHAR(64) Ja * - Feld bridge_uid
name VARCHAR(256) Ja * - Feld name
token_hash VARCHAR(64) Ja * - Feld token_hash
active BOOLEAN Ja * - Feld active
hostname VARCHAR(256) Nein - Feld hostname
software_version VARCHAR(64) Nein - Feld software_version
watch_folder VARCHAR(512) Nein - Feld watch_folder
last_ip VARCHAR(64) Nein - Feld last_ip
last_seen_at DATETIME Nein - Feld last_seen_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ScanImports scan_imports RLS Aktiv
24 Fields / Columns

Tabelle scan_imports

Feldname Data Type Required Schlüssel Functional Meaning
bridge_id UUID Ja * FK ➔ scan_bridges.id Feld bridge_id
upload_uid VARCHAR(128) Ja * - Feld upload_uid
sha256 VARCHAR(64) Ja * - Feld sha256
original_filename VARCHAR(256) Ja * - Feld original_filename
content_type VARCHAR(128) Ja * - Feld content_type
size_bytes BIGINT Ja * - Feld size_bytes
status VARCHAR(24) Ja * - Feld status
document_type VARCHAR(64) Nein - Feld document_type
operation_type VARCHAR(64) Nein - Feld operation_type
reference_type VARCHAR(32) Nein - Feld reference_type
reference_id UUID Nein - Feld reference_id
reference_value VARCHAR(256) Nein - Feld reference_value
document_id UUID Nein FK ➔ documents.id Feld document_id
metadata_payload JSONB Nein - Feld metadata_payload
error_message TEXT Nein - Feld error_message
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
SemanticActivations semantic_activations RLS Aktiv
12 Fields / Columns

Tabelle semantic_activations

Feldname Data Type Required Schlüssel Functional Meaning
scope VARCHAR(16) Ja * - Feld scope
scope_key VARCHAR(96) Ja * - Feld scope_key
release_id UUID Ja * FK ➔ semantic_releases.id Feld release_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ semantic_releases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
SemanticAuditEvents semantic_audit_events RLS Aktiv
14 Fields / Columns

Tabelle semantic_audit_events

Feldname Data Type Required Schlüssel Functional Meaning
actor_id UUID Nein - Feld actor_id
agent_run_id UUID Nein - Feld agent_run_id
intent VARCHAR(96) Ja * - Feld intent
object_key VARCHAR(96) Ja * - Feld object_key
entity_id UUID Nein - Feld entity_id
decision VARCHAR(16) Ja * - Feld decision
reason TEXT Ja * - Feld reason
context_hash VARCHAR(64) Nein - Feld context_hash
release_versions JSONB Ja * - Feld release_versions
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
SemanticDefinitions semantic_definitions RLS Aktiv
10 Fields / Columns

Tabelle semantic_definitions

Feldname Data Type Required Schlüssel Functional Meaning
release_id UUID Ja * FK ➔ semantic_releases.id Feld release_id
kind VARCHAR(24) Ja * - Feld kind
key VARCHAR(96) Ja * - Feld key
mode VARCHAR(16) Ja * - Feld mode
body JSONB Ja * - Feld body
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ semantic_releases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
SemanticExtensionValues semantic_extension_values RLS Aktiv
11 Fields / Columns

Tabelle semantic_extension_values

Feldname Data Type Required Schlüssel Functional Meaning
object_key VARCHAR(96) Ja * - Feld object_key
entity_id UUID Ja * - Feld entity_id
field_key VARCHAR(96) Ja * - Feld field_key
revision INTEGER Ja * - Feld revision
value JSONB Ja * - Feld value
release_id UUID Ja * FK ➔ semantic_releases.id Feld release_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
SemanticPacks semantic_packs
10 Fields / Columns

Tabelle semantic_packs

Feldname Data Type Required Schlüssel Functional Meaning
scope VARCHAR(16) Ja * - Feld scope
scope_key VARCHAR(96) Ja * - Feld scope_key
version INTEGER Ja * - Feld version
active BOOLEAN Ja * - Feld active
definitions JSONB Ja * - Feld definitions
source VARCHAR(255) Ja * - Feld source
content_hash VARCHAR(64) Ja * - Feld content_hash
id UUID Nein PK Feld id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
SemanticQuoteApprovals semantic_quote_approvals RLS Aktiv
10 Fields / Columns

Tabelle semantic_quote_approvals

Feldname Data Type Required Schlüssel Functional Meaning
quote_id UUID Ja * FK ➔ quotes.id Feld quote_id
context_hash VARCHAR(64) Ja * - Feld context_hash
facts_hash VARCHAR(64) Ja * - Feld facts_hash
approved_by UUID Ja * - Feld approved_by
reason TEXT Ja * - Feld reason
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
SemanticReleases semantic_releases RLS Aktiv
18 Fields / Columns

Tabelle semantic_releases

Feldname Data Type Required Schlüssel Functional Meaning
scope VARCHAR(16) Ja * - Feld scope
scope_key VARCHAR(96) Ja * - Feld scope_key
version INTEGER Ja * - Feld version
status VARCHAR(16) Ja * - Feld status
base_release_id UUID Nein FK ➔ semantic_releases.id Feld base_release_id
reason TEXT Ja * - Feld reason
content_hash VARCHAR(64) Ja * - Feld content_hash
approved_by UUID Nein - Feld approved_by
approved_at DATETIME Nein - Feld approved_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ semantic_releases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
SemanticSimulations semantic_simulations RLS Aktiv
11 Fields / Columns

Tabelle semantic_simulations

Feldname Data Type Required Schlüssel Functional Meaning
release_id UUID Ja * FK ➔ semantic_releases.id Feld release_id
entity_type VARCHAR(96) Ja * - Feld entity_type
entity_id UUID Ja * - Feld entity_id
intent VARCHAR(96) Ja * - Feld intent
result JSONB Ja * - Feld result
release_hash VARCHAR(64) Ja * - Feld release_hash
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ semantic_releases.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
SemanticTenantProfiles semantic_tenant_profiles RLS Aktiv
10 Fields / Columns

Tabelle semantic_tenant_profiles

Feldname Data Type Required Schlüssel Functional Meaning
industry_key VARCHAR(96) Nein - Feld industry_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
SemanticWorkerBindings semantic_worker_bindings RLS Aktiv
16 Fields / Columns

Tabelle semantic_worker_bindings

Feldname Data Type Required Schlüssel Functional Meaning
role_key VARCHAR(96) Ja * - Feld role_key
trigger_event VARCHAR(64) Ja * - Feld trigger_event
supervisor_user_id UUID Nein FK ➔ organization_users.user_id Feld supervisor_user_id
version INTEGER Ja * - Feld version
is_current BOOLEAN Ja * - Feld is_current
enabled BOOLEAN Ja * - Feld enabled
status VARCHAR(16) Ja * - Feld status
simulation_result JSONB Nein - Feld simulation_result
approved_by UUID Nein - Feld approved_by
reason TEXT Ja * - Feld reason
created_by UUID Ja * - Feld created_by
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
SemanticWorkerRuns semantic_worker_runs RLS Aktiv
11 Fields / Columns

Tabelle semantic_worker_runs

Feldname Data Type Required Schlüssel Functional Meaning
binding_id UUID Ja * FK ➔ semantic_worker_bindings.id Feld binding_id
event_id UUID Ja * - Feld event_id
entity_id UUID Ja * - Feld entity_id
decision VARCHAR(16) Ja * - Feld decision
context_hash VARCHAR(64) Nein - Feld context_hash
result JSONB Ja * - Feld result
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ semantic_worker_bindings.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ServiceChecklistTemplates service_checklist_templates RLS Aktiv
14 Fields / Columns

Tabelle service_checklist_templates

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(255) Ja * - Feld name
description TEXT Nein - Feld description
trade VARCHAR(64) Nein - Feld trade
is_active BOOLEAN Ja * - Feld is_active
definition JSONB Ja * - Feld definition
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ServiceMaterialEntries service_material_entries RLS Aktiv
11 Fields / Columns

Tabelle service_material_entries

Feldname Data Type Required Schlüssel Functional Meaning
service_report_id UUID Ja * FK ➔ service_reports.id Feld service_report_id
product_id UUID Ja * FK ➔ products.id Feld product_id
quantity NUMERIC Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
stock_movement_id UUID Nein FK ➔ stock_movements.id Feld stock_movement_id
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ServicePhotos service_photos RLS Aktiv
12 Fields / Columns

Tabelle service_photos

Feldname Data Type Required Schlüssel Functional Meaning
service_report_id UUID Ja * FK ➔ service_reports.id Feld service_report_id
document_id UUID Ja * FK ➔ documents.id Feld document_id
caption VARCHAR(255) Nein - Feld caption
checklist_item_label VARCHAR(255) Nein - Feld checklist_item_label
taken_at DATETIME Nein - Feld taken_at
lat NUMERIC(9, 6) Nein - Feld lat
lng NUMERIC(9, 6) Nein - Feld lng
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ServiceReports service_reports RLS Aktiv
49 Fields / Columns

Tabelle service_reports

Feldname Data Type Required Schlüssel Functional Meaning
report_number VARCHAR(32) Ja * - Feld report_number
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
project_id UUID Nein FK ➔ projects.id Feld project_id
customer_id UUID Nein FK ➔ customers.id Feld customer_id
asset_id UUID Nein FK ➔ assets.id Feld asset_id
technician_id UUID Nein FK ➔ organization_users.id Feld technician_id
checklist_template_id UUID Nein FK ➔ service_checklist_templates.id Feld checklist_template_id
status VARCHAR(48) Ja * - Feld status
title VARCHAR(255) Ja * - Feld title
description TEXT Nein - Feld description
scheduled_start DATETIME Nein - Feld scheduled_start
scheduled_end DATETIME Nein - Feld scheduled_end
travel_started_at DATETIME Nein - Feld travel_started_at
arrived_at DATETIME Nein - Feld arrived_at
work_started_at DATETIME Nein - Feld work_started_at
work_ended_at DATETIME Nein - Feld work_ended_at
departed_at DATETIME Nein - Feld departed_at
location_lat NUMERIC(9, 6) Nein - Feld location_lat
location_lng NUMERIC(9, 6) Nein - Feld location_lng
location_address VARCHAR(512) Nein - Feld location_address
travel_minutes INTEGER Ja * - Feld travel_minutes
work_minutes INTEGER Ja * - Feld work_minutes
break_minutes INTEGER Ja * - Feld break_minutes
checklist_results JSONB Ja * - Feld checklist_results
work_performed TEXT Nein - Feld work_performed
result_summary TEXT Nein - Feld result_summary
defects_found TEXT Nein - Feld defects_found
follow_up_needed BOOLEAN Ja * - Feld follow_up_needed
follow_up_notes TEXT Nein - Feld follow_up_notes
acceptance_items JSONB Ja * - Feld acceptance_items
acceptance_status VARCHAR(32) Ja * - Feld acceptance_status
acceptance_notes TEXT Nein - Feld acceptance_notes
accepted_at DATETIME Nein - Feld accepted_at
accepted_by_name VARCHAR(255) Nein - Feld accepted_by_name
signature_document_id UUID Nein FK ➔ documents.id Feld signature_document_id
signed_by_name VARCHAR(255) Nein - Feld signed_by_name
signed_at DATETIME Nein - Feld signed_at
pdf_document_id UUID Nein FK ➔ documents.id Feld pdf_document_id
completed_at DATETIME Nein - Feld completed_at
ticket_id UUID Nein FK ➔ tickets.id Feld ticket_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ServiceTimeEntries service_time_entries RLS Aktiv
15 Fields / Columns

Tabelle service_time_entries

Feldname Data Type Required Schlüssel Functional Meaning
service_report_id UUID Ja * FK ➔ service_reports.id Feld service_report_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
project_id UUID Nein FK ➔ projects.id Feld project_id
user_id UUID Nein FK ➔ users.id Feld user_id
entry_type VARCHAR(48) Ja * - Feld entry_type
started_at DATETIME Nein - Feld started_at
ended_at DATETIME Nein - Feld ended_at
duration_minutes INTEGER Ja * - Feld duration_minutes
description TEXT Nein - Feld description
billable BOOLEAN Ja * - Feld billable
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
ShopOfferings shop_offerings RLS Aktiv
16 Fields / Columns

Tabelle shop_offerings

Feldname Data Type Required Schlüssel Functional Meaning
site_id UUID Ja * FK ➔ sites.id Feld site_id
product_id UUID Ja * FK ➔ products.id Feld product_id
active BOOLEAN Ja * - Feld active
price_override JSONB Nein - Feld price_override
teaser_i18n JSONB Ja * - Feld teaser_i18n
image_url VARCHAR(500) Nein - Feld image_url
sort_order INTEGER Ja * - Feld sort_order
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ShopOrderEvents shop_order_events RLS Aktiv
12 Fields / Columns

Tabelle shop_order_events

Feldname Data Type Required Schlüssel Functional Meaning
order_id UUID Ja * FK ➔ shop_orders.id Feld order_id
kind VARCHAR(32) Ja * - Feld kind
payload JSONB Ja * - Feld payload
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ShopOrders shop_orders RLS Aktiv
29 Fields / Columns

Tabelle shop_orders

Feldname Data Type Required Schlüssel Functional Meaning
site_id UUID Ja * FK ➔ sites.id Feld site_id
order_number VARCHAR(32) Ja * - Feld order_number
status VARCHAR(20) Ja * - Feld status
customer JSONB Ja * - Feld customer
items JSONB Ja * - Feld items
currency VARCHAR(8) Ja * - Feld currency
discount_net NUMERIC(12, 2) Ja * - Feld discount_net
shipping_net NUMERIC(12, 2) Ja * - Feld shipping_net
marketing JSONB Ja * - Feld marketing
customer_id UUID Nein - Feld customer_id
quote_id UUID Nein - Feld quote_id
access_token_hash VARCHAR(64) Nein - Feld access_token_hash
net_total NUMERIC(12, 2) Ja * - Feld net_total
tax_total NUMERIC(12, 2) Ja * - Feld tax_total
gross_total NUMERIC(12, 2) Ja * - Feld gross_total
provider VARCHAR(16) Ja * - Feld provider
provider_ref VARCHAR(128) Nein - Feld provider_ref
erp_document_id UUID Nein FK ➔ documents.id Feld erp_document_id
idempotency_key VARCHAR(80) Ja * - Feld idempotency_key
payment_payload JSONB Ja * - Feld payment_payload
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
ShopPaymentSettings shop_payment_settings RLS Aktiv
17 Fields / Columns

Tabelle shop_payment_settings

Feldname Data Type Required Schlüssel Functional Meaning
site_id UUID Ja * FK ➔ sites.id Feld site_id
stripe_secret_encrypted TEXT Nein - Feld stripe_secret_encrypted
stripe_webhook_secret_encrypted TEXT Nein - Feld stripe_webhook_secret_encrypted
paypal_client_id_encrypted TEXT Nein - Feld paypal_client_id_encrypted
paypal_client_secret_encrypted TEXT Nein - Feld paypal_client_secret_encrypted
paypal_webhook_id_encrypted TEXT Nein - Feld paypal_webhook_id_encrypted
allowed_providers JSONB Ja * - Feld allowed_providers
paypal_sandbox BOOLEAN Ja * - Feld paypal_sandbox
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
StandardCategories standard_categories
9 Fields / Columns

Tabelle standard_categories

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Nein PK Feld code
parent_code VARCHAR(32) Nein - Feld parent_code
level INTEGER Ja * - Feld level
name_de VARCHAR(512) Nein - Feld name_de
name_en VARCHAR(512) Ja * - Feld name_en
name_fr VARCHAR(512) Nein - Feld name_fr
name_it VARCHAR(512) Nein - Feld name_it
name_es VARCHAR(512) Nein - Feld name_es
active BOOLEAN Ja * - Feld active
StandardCategoryFieldsetTemplates standard_category_fieldset_templates
7 Fields / Columns

Tabelle standard_category_fieldset_templates

Feldname Data Type Required Schlüssel Functional Meaning
standard_code VARCHAR(32) Nein PK Feld standard_code
version INTEGER Ja * - Feld version
fieldset_title VARCHAR(255) Ja * - Feld fieldset_title
fieldset_description TEXT Nein - Feld fieldset_description
attributes JSONB Ja * - Feld attributes
active BOOLEAN Ja * - Feld active
updated_at DATETIME Ja * - Feld updated_at
StewardshipProposals stewardship_proposals RLS Aktiv
22 Fields / Columns

Tabelle stewardship_proposals

Feldname Data Type Required Schlüssel Functional Meaning
proposal_key VARCHAR(64) Ja * - Feld proposal_key
object_key VARCHAR(32) Ja * - Feld object_key
primary_record_id UUID Ja * - Feld primary_record_id
candidate_record_id UUID Ja * - Feld candidate_record_id
confidence NUMERIC(5, 4) Ja * - Feld confidence
rationale TEXT Ja * - Feld rationale
evidence JSONB Ja * - Feld evidence
status VARCHAR(16) Ja * - Feld status
group_id UUID Nein FK ➔ master_record_groups.id Feld group_id
decision VARCHAR(24) Nein - Feld decision
decision_note TEXT Nein - Feld decision_note
decided_by UUID Nein - Feld decided_by
decided_at DATETIME Nein - Feld decided_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
StockCountLines stock_count_lines RLS Aktiv
15 Fields / Columns

Tabelle stock_count_lines

Feldname Data Type Required Schlüssel Functional Meaning
session_id UUID Ja * FK ➔ stock_count_sessions.id Feld session_id
position INTEGER Ja * - Feld position
product_id UUID Ja * FK ➔ products.id Feld product_id
location_id UUID Ja * FK ➔ locations.id Feld location_id
system_quantity NUMERIC(14, 4) Ja * - Feld system_quantity
counted_quantity NUMERIC(14, 4) Nein - Feld counted_quantity
line_status VARCHAR(16) Ja * - Feld line_status
difference NUMERIC(14, 4) Nein - Feld difference
notes VARCHAR(500) Nein - Feld notes
movement_id UUID Nein FK ➔ stock_movements.id Feld movement_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
StockCountSessions stock_count_sessions RLS Aktiv
17 Fields / Columns

Tabelle stock_count_sessions

Feldname Data Type Required Schlüssel Functional Meaning
count_number VARCHAR(40) Ja * - Feld count_number
status VARCHAR(24) Ja * - Feld status
scope VARCHAR(16) Ja * - Feld scope
location_id UUID Nein FK ➔ locations.id Feld location_id
notes VARCHAR(1000) Nein - Feld notes
counted_at DATETIME Nein - Feld counted_at
released_at DATETIME Nein - Feld released_at
cancelled_at DATETIME Nein - Feld cancelled_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
StockIssueItems stock_issue_items RLS Aktiv
15 Fields / Columns

Tabelle stock_issue_items

Feldname Data Type Required Schlüssel Functional Meaning
issue_id UUID Ja * FK ➔ stock_issues.id Feld issue_id
position INTEGER Ja * - Feld position
product_id UUID Ja * FK ➔ products.id Feld product_id
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
from_location_id UUID Nein FK ➔ locations.id Feld from_location_id
invoice_item_id UUID Nein FK ➔ invoice_items.id Feld invoice_item_id
reservation_id UUID Nein FK ➔ stock_reservations.id Feld reservation_id
tracking_entries JSONB Ja * - Feld tracking_entries
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
StockIssues stock_issues RLS Aktiv
25 Fields / Columns

Tabelle stock_issues

Feldname Data Type Required Schlüssel Functional Meaning
issue_number VARCHAR(32) Ja * - Feld issue_number
reason VARCHAR(48) Ja * - Feld reason
status VARCHAR(48) Ja * - Feld status
customer_id UUID Nein FK ➔ customers.id Feld customer_id
owner_customer_id UUID Nein FK ➔ customers.id Feld owner_customer_id
project_id UUID Nein FK ➔ projects.id Feld project_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
invoice_id UUID Nein FK ➔ invoices.id Feld invoice_id
legal_entity_id UUID Nein FK ➔ legal_entities.id Feld legal_entity_id
from_location_id UUID Nein FK ➔ locations.id Feld from_location_id
delivery_note_document_id UUID Nein FK ➔ documents.id Feld delivery_note_document_id
shipment_id UUID Nein FK ➔ logistics_shipments.id Feld shipment_id
notes TEXT Nein - Feld notes
posted_at DATETIME Nein - Feld posted_at
reversed_at DATETIME Nein - Feld reversed_at
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
StockLots stock_lots RLS Aktiv
19 Fields / Columns

Tabelle stock_lots

Feldname Data Type Required Schlüssel Functional Meaning
product_id UUID Ja * FK ➔ products.id Feld product_id
code VARCHAR(128) Ja * - Feld code
tracking_type VARCHAR(48) Ja * - Feld tracking_type
supplier_id UUID Nein FK ➔ suppliers.id Feld supplier_id
goods_receipt_item_id UUID Nein FK ➔ goods_receipt_items.id Feld goods_receipt_item_id
manufactured_at DATE Nein - Feld manufactured_at
expires_at DATE Nein - Feld expires_at
active BOOLEAN Ja * - Feld active
parent_lot_id UUID Nein FK ➔ stock_lots.id Feld parent_lot_id
source_assembly_order_id UUID Nein FK ➔ assembly_orders.id Feld source_assembly_order_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
StockMovementLots stock_movement_lots RLS Aktiv
8 Fields / Columns

Tabelle stock_movement_lots

Feldname Data Type Required Schlüssel Functional Meaning
movement_id UUID Ja * FK ➔ stock_movements.id Feld movement_id
lot_id UUID Ja * FK ➔ stock_lots.id Feld lot_id
quantity NUMERIC(14, 4) Ja * - Feld quantity
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
StockMovements stock_movements RLS Aktiv
26 Fields / Columns

Tabelle stock_movements

Feldname Data Type Required Schlüssel Functional Meaning
product_id UUID Ja * FK ➔ products.id Feld product_id
legal_entity_id UUID Nein FK ➔ legal_entities.id Feld legal_entity_id
from_location_id UUID Nein FK ➔ locations.id Feld from_location_id
to_location_id UUID Nein FK ➔ locations.id Feld to_location_id
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
unit_cost NUMERIC(14, 2) Nein - Feld unit_cost
total_cost NUMERIC(14, 2) Nein - Feld total_cost
notes TEXT Nein - Feld notes
movement_type VARCHAR(48) Ja * - Feld movement_type
project_id UUID Nein FK ➔ projects.id Feld project_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
expense_item_id UUID Nein FK ➔ expense_items.id Feld expense_item_id
goods_receipt_item_id UUID Nein FK ➔ goods_receipt_items.id Feld goods_receipt_item_id
stock_issue_item_id UUID Nein FK ➔ stock_issue_items.id Feld stock_issue_item_id
owner_customer_id UUID Nein FK ➔ customers.id Feld owner_customer_id
reversal_of_id UUID Nein FK ➔ stock_movements.id Feld reversal_of_id
occurred_at DATETIME Ja * - Feld occurred_at
source VARCHAR(32) Nein - Feld source
confidence NUMERIC(4, 3) Nein - Feld confidence
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ legal_entities.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
StockReservations stock_reservations RLS Aktiv
18 Fields / Columns

Tabelle stock_reservations

Feldname Data Type Required Schlüssel Functional Meaning
product_id UUID Ja * FK ➔ products.id Feld product_id
location_id UUID Nein FK ➔ locations.id Feld location_id
quantity NUMERIC(14, 4) Ja * - Feld quantity
fulfilled_quantity NUMERIC(14, 4) Ja * - Feld fulfilled_quantity
status VARCHAR(48) Ja * - Feld status
source_type VARCHAR(32) Ja * - Feld source_type
source_id UUID Nein - Feld source_id
expires_at DATETIME Nein - Feld expires_at
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
owner_customer_id UUID Nein FK ➔ customers.id Feld owner_customer_id
legal_entity_id UUID Nein FK ➔ legal_entities.id Feld legal_entity_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
metadata JSONB Ja * - Feld metadata
StorageCategories storage_categories RLS Aktiv
16 Fields / Columns

Tabelle storage_categories

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(120) Ja * - Feld name
code VARCHAR(32) Nein - Feld code
max_weight_kg NUMERIC Nein - Feld max_weight_kg
max_quantity NUMERIC(14, 4) Nein - Feld max_quantity
new_product_policy VARCHAR(24) Ja * - Feld new_product_policy
active BOOLEAN Ja * - Feld active
warehouse_location_id UUID Nein FK ➔ locations.id Feld warehouse_location_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
StorageOrderLines storage_order_lines RLS Aktiv
10 Fields / Columns

Tabelle storage_order_lines

Feldname Data Type Required Schlüssel Functional Meaning
order_id UUID Ja * FK ➔ storage_orders.id Feld order_id
article_id UUID Ja * FK ➔ stored_articles.id Feld article_id
quantity NUMERIC(14, 4) Ja * - Feld quantity
lot_code VARCHAR(64) Nein - Feld lot_code
location_id UUID Nein FK ➔ locations.id Feld location_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
StorageOrders storage_orders RLS Aktiv
19 Fields / Columns

Tabelle storage_orders

Feldname Data Type Required Schlüssel Functional Meaning
order_number VARCHAR(64) Ja * - Feld order_number
contract_id UUID Ja * FK ➔ contracts.id Feld contract_id
order_type VARCHAR(8) Ja * - Feld order_type
status VARCHAR(16) Ja * - Feld status
reference VARCHAR(128) Nein - Feld reference
route_id UUID Nein FK ➔ warehouse_routes.id Feld route_id
carrier VARCHAR(128) Nein - Feld carrier
planned_at DATETIME Nein - Feld planned_at
done_at DATETIME Nein - Feld done_at
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
StoredArticles stored_articles RLS Aktiv
19 Fields / Columns

Tabelle stored_articles

Feldname Data Type Required Schlüssel Functional Meaning
owner_type VARCHAR(16) Ja * - Feld owner_type
owner_id UUID Ja * - Feld owner_id
sku VARCHAR(64) Ja * - Feld sku
name VARCHAR(255) Ja * - Feld name
unit VARCHAR(16) Ja * - Feld unit
storage_unit VARCHAR(16) Nein - Feld storage_unit
barcode VARCHAR(64) Nein - Feld barcode
description TEXT Nein - Feld description
product_id UUID Nein FK ➔ products.id Feld product_id
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
TaxCodes tax_codes RLS Aktiv
17 Fields / Columns

Tabelle tax_codes

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
name VARCHAR(255) Ja * - Feld name
rate NUMERIC(6, 4) Ja * - Feld rate
direction VARCHAR(48) Ja * - Feld direction
account_code VARCHAR(32) Nein - Feld account_code
kind VARCHAR(24) Ja * - Feld kind
counter_account_code VARCHAR(32) Nein - Feld counter_account_code
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
TenantAiCredentials tenant_ai_credentials RLS Aktiv
18 Fields / Columns

Tabelle tenant_ai_credentials

Feldname Data Type Required Schlüssel Functional Meaning
provider VARCHAR(32) Ja * - Feld provider
label VARCHAR(120) Ja * - Feld label
api_key_encrypted TEXT Ja * - Feld api_key_encrypted
base_url VARCHAR(255) Nein - Feld base_url
model_overrides JSONB Ja * - Feld model_overrides
is_active BOOLEAN Ja * - Feld is_active
status VARCHAR(16) Ja * - Feld status
last_validated_at DATETIME Nein - Feld last_validated_at
last_error VARCHAR(500) Nein - Feld last_error
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
TenantBranding tenant_branding RLS Aktiv
15 Fields / Columns

Tabelle tenant_branding

Feldname Data Type Required Schlüssel Functional Meaning
logo_png BLOB Nein - Feld logo_png
logo_width_px INTEGER Nein - Feld logo_width_px
logo_height_px INTEGER Nein - Feld logo_height_px
logo_filename VARCHAR(255) Nein - Feld logo_filename
logo_sha256 VARCHAR(64) Nein - Feld logo_sha256
accent_color VARCHAR(7) Ja * - Feld accent_color
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
TenantCurrencies tenant_currencies RLS Aktiv
13 Fields / Columns

Tabelle tenant_currencies

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(3) Ja * - Feld code
name VARCHAR(128) Ja * - Feld name
active BOOLEAN Ja * - Feld active
is_default BOOLEAN Ja * - Feld is_default
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
TenantPaymentTerms tenant_payment_terms RLS Aktiv
16 Fields / Columns

Tabelle tenant_payment_terms

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
name VARCHAR(128) Ja * - Feld name
net_days INTEGER Ja * - Feld net_days
skonto_days INTEGER Nein - Feld skonto_days
skonto_percent NUMERIC(6, 2) Nein - Feld skonto_percent
active BOOLEAN Ja * - Feld active
is_default BOOLEAN Ja * - Feld is_default
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
TenantRoles tenant_roles RLS Aktiv
11 Fields / Columns

Tabelle tenant_roles

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(128) Ja * - Feld name
code VARCHAR(64) Ja * - Feld code
description VARCHAR(512) Nein - Feld description
sector VARCHAR(64) Ja * - Feld sector
base_role VARCHAR(64) Nein - Feld base_role
permissions JSONB Ja * - Feld permissions
is_active BOOLEAN Ja * - Feld is_active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
TenantStorageDestinations tenant_storage_destinations RLS Aktiv
35 Fields / Columns

Tabelle tenant_storage_destinations

Feldname Data Type Required Schlüssel Functional Meaning
mode VARCHAR(48) Ja * - Feld mode
provider_type VARCHAR(48) Ja * - Feld provider_type
active BOOLEAN Ja * - Feld active
s3_endpoint_url VARCHAR(512) Nein - Feld s3_endpoint_url
s3_region VARCHAR(64) Nein - Feld s3_region
s3_bucket VARCHAR(128) Nein - Feld s3_bucket
s3_access_key VARCHAR(256) Nein - Feld s3_access_key
encrypted_s3_secret_key TEXT Nein - Feld encrypted_s3_secret_key
s3_force_path_style BOOLEAN Ja * - Feld s3_force_path_style
s3_prefix VARCHAR(256) Nein - Feld s3_prefix
webdav_url VARCHAR(512) Nein - Feld webdav_url
webdav_username VARCHAR(256) Nein - Feld webdav_username
encrypted_webdav_password TEXT Nein - Feld encrypted_webdav_password
webdav_base_path VARCHAR(512) Nein - Feld webdav_base_path
oauth_account_email VARCHAR(320) Nein - Feld oauth_account_email
oauth_tenant_id VARCHAR(128) Nein - Feld oauth_tenant_id
encrypted_oauth_access_token TEXT Nein - Feld encrypted_oauth_access_token
oauth_access_token_expiry DATETIME Nein - Feld oauth_access_token_expiry
encrypted_oauth_refresh_token TEXT Nein - Feld encrypted_oauth_refresh_token
oauth_state VARCHAR(128) Nein - Feld oauth_state
oauth_folder_id VARCHAR(512) Nein - Feld oauth_folder_id
oauth_folder_label VARCHAR(256) Nein - Feld oauth_folder_label
status VARCHAR(48) Ja * - Feld status
last_error TEXT Nein - Feld last_error
last_tested_at DATETIME Nein - Feld last_tested_at
last_synced_at DATETIME Nein - Feld last_synced_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
TenantSubscriptions tenant_subscriptions RLS Aktiv
14 Fields / Columns

Tabelle tenant_subscriptions

Feldname Data Type Required Schlüssel Functional Meaning
kind VARCHAR(32) Ja * - Feld kind
package_key VARCHAR(32) Ja * - Feld package_key
stripe_subscription_id VARCHAR(64) Ja * - Feld stripe_subscription_id
status VARCHAR(16) Ja * - Feld status
amount_monthly NUMERIC(14, 2) Ja * - Feld amount_monthly
credit_monthly NUMERIC(14, 2) Nein - Feld credit_monthly
storage_gb INTEGER Nein - Feld storage_gb
max_users INTEGER Nein - Feld max_users
cancel_at_period_end BOOLEAN Ja * - Feld cancel_at_period_end
current_period_end DATETIME Nein - Feld current_period_end
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
ThirdPartyStockMovements third_party_stock_movements RLS Aktiv
21 Fields / Columns

Tabelle third_party_stock_movements

Feldname Data Type Required Schlüssel Functional Meaning
article_id UUID Ja * FK ➔ stored_articles.id Feld article_id
contract_id UUID Nein FK ➔ contracts.id Feld contract_id
order_id UUID Nein - Feld order_id
movement_type VARCHAR(16) Ja * - Feld movement_type
quantity NUMERIC(14, 4) Ja * - Feld quantity
from_location_id UUID Nein FK ➔ locations.id Feld from_location_id
to_location_id UUID Nein FK ➔ locations.id Feld to_location_id
lot_code VARCHAR(64) Nein - Feld lot_code
occurred_at DATETIME Ja * - Feld occurred_at
reference VARCHAR(128) Nein - Feld reference
notes TEXT Nein - Feld notes
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
UiChangeSets ui_change_sets RLS Aktiv
25 Fields / Columns

Tabelle ui_change_sets

Feldname Data Type Required Schlüssel Functional Meaning
number INTEGER Ja * - Feld number
title VARCHAR(200) Ja * - Feld title
reason TEXT Ja * - Feld reason
status VARCHAR(12) Ja * - Feld status
risk VARCHAR(8) Ja * - Feld risk
content_hash VARCHAR(64) Ja * - Feld content_hash
origin VARCHAR(24) Ja * - Feld origin
validation JSONB Ja * - Feld validation
supersedes_id UUID Nein FK ➔ ui_change_sets.id Feld supersedes_id
approved_by UUID Nein - Feld approved_by
approved_at DATETIME Nein - Feld approved_at
activated_by UUID Nein - Feld activated_by
activated_at DATETIME Nein - Feld activated_at
retired_by UUID Nein - Feld retired_by
retired_at DATETIME Nein - Feld retired_at
decision_note TEXT Nein - Feld decision_note
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
UiComponentRequests ui_component_requests RLS Aktiv
16 Fields / Columns

Tabelle ui_component_requests

Feldname Data Type Required Schlüssel Functional Meaning
component_type VARCHAR(40) Ja * - Feld component_type
title VARCHAR(200) Ja * - Feld title
status VARCHAR(16) Ja * - Feld status
body JSONB Ja * - Feld body
decided_by UUID Nein - Feld decided_by
decided_at DATETIME Nein - Feld decided_at
decision_note TEXT Nein - Feld decision_note
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
UiDefinitions ui_definitions RLS Aktiv
16 Fields / Columns

Tabelle ui_definitions

Feldname Data Type Required Schlüssel Functional Meaning
change_set_id UUID Ja * FK ➔ ui_change_sets.id Feld change_set_id
kind VARCHAR(8) Ja * - Feld kind
key VARCHAR(80) Ja * - Feld key
target_ui_id VARCHAR(80) Nein - Feld target_ui_id
base_version VARCHAR(16) Nein - Feld base_version
base_component_ids JSONB Ja * - Feld base_component_ids
body JSONB Ja * - Feld body
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
UnitsOfMeasure units_of_measure RLS Aktiv
19 Fields / Columns

Tabelle units_of_measure

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(16) Ja * - Feld code
symbol VARCHAR(16) Ja * - Feld symbol
category VARCHAR(32) Ja * - Feld category
name_de VARCHAR(64) Ja * - Feld name_de
name_en VARCHAR(64) Ja * - Feld name_en
name_fr VARCHAR(64) Nein - Feld name_fr
name_it VARCHAR(64) Nein - Feld name_it
name_es VARCHAR(64) Nein - Feld name_es
active BOOLEAN Ja * - Feld active
is_default BOOLEAN Ja * - Feld is_default
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
Users users
16 Fields / Columns

Tabelle users

Feldname Data Type Required Schlüssel Functional Meaning
email VARCHAR(320) Ja * - Feld email
password_hash VARCHAR(128) Nein - Feld password_hash
credential_version INTEGER Ja * - Feld credential_version
name VARCHAR(255) Ja * - Feld name
phone VARCHAR(64) Nein - Feld phone
language VARCHAR(10) Ja * - Feld language
timezone VARCHAR(64) Ja * - Feld timezone
status VARCHAR(48) Ja * - Feld status
totp_secret_encrypted VARCHAR(512) Nein - Feld totp_secret_encrypted
last_login_at DATETIME Nein - Feld last_login_at
is_portal_admin BOOLEAN Ja * - Feld is_portal_admin
anonymized_at DATETIME Nein - Feld anonymized_at
id UUID Nein PK Feld id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
WarehouseCartonTypes warehouse_carton_types RLS Aktiv
19 Fields / Columns

Tabelle warehouse_carton_types

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
name VARCHAR(120) Ja * - Feld name
inner_length_cm NUMERIC(10, 2) Ja * - Feld inner_length_cm
inner_width_cm NUMERIC(10, 2) Ja * - Feld inner_width_cm
inner_height_cm NUMERIC(10, 2) Ja * - Feld inner_height_cm
max_weight_kg NUMERIC(10, 3) Nein - Feld max_weight_kg
tare_weight_kg NUMERIC(10, 3) Ja * - Feld tare_weight_kg
fill_factor NUMERIC(4, 3) Ja * - Feld fill_factor
sequence INTEGER Ja * - Feld sequence
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseDeviceCommands warehouse_device_commands RLS Aktiv
20 Fields / Columns

Tabelle warehouse_device_commands

Feldname Data Type Required Schlüssel Functional Meaning
device_id UUID Ja * FK ➔ warehouse_devices.id Feld device_id
command VARCHAR(24) Ja * - Feld command
address VARCHAR(64) Nein - Feld address
payload JSONB Ja * - Feld payload
status VARCHAR(16) Ja * - Feld status
picking_id UUID Nein FK ➔ warehouse_pickings.id Feld picking_id
picking_item_id UUID Nein FK ➔ warehouse_picking_items.id Feld picking_item_id
idempotency_key VARCHAR(128) Ja * - Feld idempotency_key
delivered_at DATETIME Nein - Feld delivered_at
acked_at DATETIME Nein - Feld acked_at
ack_payload JSONB Ja * - Feld ack_payload
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseDevices warehouse_devices RLS Aktiv
19 Fields / Columns

Tabelle warehouse_devices

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
name VARCHAR(120) Ja * - Feld name
device_type VARCHAR(16) Ja * - Feld device_type
protocol VARCHAR(16) Ja * - Feld protocol
location_id UUID Nein FK ➔ locations.id Feld location_id
put_wall_id UUID Nein FK ➔ warehouse_put_walls.id Feld put_wall_id
address_map JSONB Ja * - Feld address_map
token_hash VARCHAR(128) Nein - Feld token_hash
last_seen_at DATETIME Nein - Feld last_seen_at
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseDockSlots warehouse_dock_slots RLS Aktiv
13 Fields / Columns

Tabelle warehouse_dock_slots

Feldname Data Type Required Schlüssel Functional Meaning
dock_id UUID Ja * FK ➔ warehouse_docks.id Feld dock_id
window_start DATETIME Ja * - Feld window_start
window_end DATETIME Ja * - Feld window_end
status VARCHAR(48) Ja * - Feld status
tour_stop_id UUID Nein FK ➔ logistics_tour_stops.id Feld tour_stop_id
shipment_id UUID Nein FK ➔ logistics_shipments.id Feld shipment_id
checked_in_at DATETIME Nein - Feld checked_in_at
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
WarehouseDocks warehouse_docks RLS Aktiv
16 Fields / Columns

Tabelle warehouse_docks

Feldname Data Type Required Schlüssel Functional Meaning
location_id UUID Ja * FK ➔ locations.id Feld location_id
code VARCHAR(32) Ja * - Feld code
name VARCHAR(255) Ja * - Feld name
dock_type VARCHAR(48) Ja * - Feld dock_type
capacity_parallel INTEGER Ja * - Feld capacity_parallel
is_active BOOLEAN Ja * - Feld is_active
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseHandlingUnitItems warehouse_handling_unit_items RLS Aktiv
12 Fields / Columns

Tabelle warehouse_handling_unit_items

Feldname Data Type Required Schlüssel Functional Meaning
handling_unit_id UUID Ja * FK ➔ warehouse_handling_units.id Feld handling_unit_id
product_id UUID Ja * FK ➔ products.id Feld product_id
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
lot_code VARCHAR(64) Nein - Feld lot_code
expires_on DATE Nein - Feld expires_on
owner_customer_id UUID Nein FK ➔ customers.id Feld owner_customer_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
WarehouseHandlingUnits warehouse_handling_units RLS Aktiv
25 Fields / Columns

Tabelle warehouse_handling_units

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
sscc VARCHAR(18) Nein - Feld sscc
hu_type VARCHAR(16) Ja * - Feld hu_type
status VARCHAR(16) Ja * - Feld status
parent_id UUID Nein FK ➔ warehouse_handling_units.id Feld parent_id
location_id UUID Nein FK ➔ locations.id Feld location_id
goods_receipt_id UUID Nein FK ➔ goods_receipts.id Feld goods_receipt_id
inbound_advice_id UUID Nein FK ➔ warehouse_inbound_advices.id Feld inbound_advice_id
stock_issue_id UUID Nein FK ➔ stock_issues.id Feld stock_issue_id
carton_type_id UUID Nein FK ➔ warehouse_carton_types.id Feld carton_type_id
gross_weight_kg NUMERIC(12, 3) Nein - Feld gross_weight_kg
length_cm NUMERIC(10, 2) Nein - Feld length_cm
width_cm NUMERIC(10, 2) Nein - Feld width_cm
height_cm NUMERIC(10, 2) Nein - Feld height_cm
closed_at DATETIME Nein - Feld closed_at
label_printed_at DATETIME Nein - Feld label_printed_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseInboundAdviceLines warehouse_inbound_advice_lines RLS Aktiv
17 Fields / Columns

Tabelle warehouse_inbound_advice_lines

Feldname Data Type Required Schlüssel Functional Meaning
advice_id UUID Ja * FK ➔ warehouse_inbound_advices.id Feld advice_id
position INTEGER Ja * - Feld position
product_id UUID Ja * FK ➔ products.id Feld product_id
purchase_item_id UUID Nein FK ➔ purchase_items.id Feld purchase_item_id
expected_quantity NUMERIC(14, 4) Ja * - Feld expected_quantity
counted_quantity NUMERIC(14, 4) Nein - Feld counted_quantity
unit VARCHAR(16) Ja * - Feld unit
sscc VARCHAR(18) Nein - Feld sscc
lot_code VARCHAR(64) Nein - Feld lot_code
expires_on DATE Nein - Feld expires_on
counted_by UUID Nein - Feld counted_by
counted_at DATETIME Nein - Feld counted_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
WarehouseInboundAdvices warehouse_inbound_advices RLS Aktiv
24 Fields / Columns

Tabelle warehouse_inbound_advices

Feldname Data Type Required Schlüssel Functional Meaning
advice_number VARCHAR(40) Ja * - Feld advice_number
external_reference VARCHAR(64) Nein - Feld external_reference
supplier_id UUID Nein FK ➔ suppliers.id Feld supplier_id
purchase_id UUID Nein FK ➔ purchases.id Feld purchase_id
warehouse_location_id UUID Nein FK ➔ locations.id Feld warehouse_location_id
destination_location_id UUID Nein FK ➔ locations.id Feld destination_location_id
dock_slot_id UUID Nein FK ➔ warehouse_dock_slots.id Feld dock_slot_id
expected_at DATETIME Nein - Feld expected_at
status VARCHAR(16) Ja * - Feld status
source VARCHAR(16) Ja * - Feld source
blind BOOLEAN Ja * - Feld blind
goods_receipt_id UUID Nein FK ➔ goods_receipts.id Feld goods_receipt_id
received_at DATETIME Nein - Feld received_at
notes TEXT Nein - Feld notes
idempotency_key VARCHAR(128) Nein - Feld idempotency_key
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseOperationTypes warehouse_operation_types RLS Aktiv
27 Fields / Columns

Tabelle warehouse_operation_types

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(120) Ja * - Feld name
kind VARCHAR(24) Ja * - Feld kind
sequence_prefix VARCHAR(16) Ja * - Feld sequence_prefix
barcode_prefix VARCHAR(32) Nein - Feld barcode_prefix
default_source_location_id UUID Nein FK ➔ locations.id Feld default_source_location_id
default_destination_location_id UUID Nein FK ➔ locations.id Feld default_destination_location_id
reservation_method VARCHAR(24) Ja * - Feld reservation_method
create_backorder VARCHAR(8) Ja * - Feld create_backorder
returns_operation_type_id UUID Nein FK ➔ warehouse_operation_types.id Feld returns_operation_type_id
show_in_overview BOOLEAN Ja * - Feld show_in_overview
sequence INTEGER Ja * - Feld sequence
active BOOLEAN Ja * - Feld active
warehouse_location_id UUID Nein FK ➔ locations.id Feld warehouse_location_id
print_labels_enabled BOOLEAN Ja * - Feld print_labels_enabled
auto_print_labels BOOLEAN Ja * - Feld auto_print_labels
label_template_code VARCHAR(64) Nein - Feld label_template_code
label_printer_id UUID Nein FK ➔ printers.id Feld label_printer_id
label_copies INTEGER Ja * - Feld label_copies
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehousePickCarts warehouse_pick_carts RLS Aktiv
15 Fields / Columns

Tabelle warehouse_pick_carts

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
name VARCHAR(120) Ja * - Feld name
barcode VARCHAR(64) Nein - Feld barcode
slot_count INTEGER Ja * - Feld slot_count
warehouse_location_id UUID Nein FK ➔ locations.id Feld warehouse_location_id
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehousePickConfirmations warehouse_pick_confirmations RLS Aktiv
12 Fields / Columns

Tabelle warehouse_pick_confirmations

Feldname Data Type Required Schlüssel Functional Meaning
picking_id UUID Ja * FK ➔ warehouse_pickings.id Feld picking_id
picking_item_id UUID Ja * FK ➔ warehouse_picking_items.id Feld picking_item_id
quantity NUMERIC(14, 4) Ja * - Feld quantity
method VARCHAR(16) Ja * - Feld method
confirmed_by UUID Nein - Feld confirmed_by
device_command_id UUID Nein FK ➔ warehouse_device_commands.id Feld device_command_id
sequence BIGINT Ja * - Feld sequence
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
WarehousePickTotes warehouse_pick_totes RLS Aktiv
16 Fields / Columns

Tabelle warehouse_pick_totes

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
barcode VARCHAR(64) Nein - Feld barcode
tote_type VARCHAR(24) Ja * - Feld tote_type
cart_id UUID Nein FK ➔ warehouse_pick_carts.id Feld cart_id
slot_index INTEGER Nein - Feld slot_index
status VARCHAR(24) Ja * - Feld status
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehousePickingItems warehouse_picking_items RLS Aktiv
14 Fields / Columns

Tabelle warehouse_picking_items

Feldname Data Type Required Schlüssel Functional Meaning
picking_id UUID Ja * FK ➔ warehouse_pickings.id Feld picking_id
position INTEGER Ja * - Feld position
product_id UUID Ja * FK ➔ products.id Feld product_id
quantity_demanded NUMERIC(14, 4) Ja * - Feld quantity_demanded
quantity_reserved NUMERIC(14, 4) Ja * - Feld quantity_reserved
quantity_done NUMERIC(14, 4) Ja * - Feld quantity_done
unit VARCHAR(16) Ja * - Feld unit
source_location_id UUID Nein FK ➔ locations.id Feld source_location_id
destination_location_id UUID Nein FK ➔ locations.id Feld destination_location_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
WarehousePickings warehouse_pickings RLS Aktiv
31 Fields / Columns

Tabelle warehouse_pickings

Feldname Data Type Required Schlüssel Functional Meaning
picking_number VARCHAR(40) Ja * - Feld picking_number
picking_type VARCHAR(32) Ja * - Feld picking_type
operation_type_id UUID Nein FK ➔ warehouse_operation_types.id Feld operation_type_id
stock_issue_id UUID Nein FK ➔ stock_issues.id Feld stock_issue_id
wave_id UUID Nein FK ➔ warehouse_waves.id Feld wave_id
status VARCHAR(24) Ja * - Feld status
purchase_id UUID Nein FK ➔ purchases.id Feld purchase_id
invoice_id UUID Nein FK ➔ invoices.id Feld invoice_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
assembly_order_id UUID Nein FK ➔ assembly_orders.id Feld assembly_order_id
process_intent VARCHAR(32) Nein - Feld process_intent
service_report_id UUID Nein FK ➔ service_reports.id Feld service_report_id
cart_id UUID Nein FK ➔ warehouse_pick_carts.id Feld cart_id
tote_id UUID Nein FK ➔ warehouse_pick_totes.id Feld tote_id
source_quote_id UUID Nein FK ➔ quotes.id Feld source_quote_id
source_location_id UUID Nein FK ➔ locations.id Feld source_location_id
destination_location_id UUID Nein FK ➔ locations.id Feld destination_location_id
assigned_user_id UUID Nein FK ➔ users.id Feld assigned_user_id
scheduled_at DATETIME Nein - Feld scheduled_at
started_at DATETIME Nein - Feld started_at
completed_at DATETIME Nein - Feld completed_at
notes VARCHAR(1000) Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ quotes.tenant_id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehousePutWallSlots warehouse_put_wall_slots RLS Aktiv
9 Fields / Columns

Tabelle warehouse_put_wall_slots

Feldname Data Type Required Schlüssel Functional Meaning
put_wall_id UUID Ja * FK ➔ warehouse_put_walls.id Feld put_wall_id
slot_code VARCHAR(32) Ja * - Feld slot_code
picking_id UUID Nein FK ➔ warehouse_pickings.id Feld picking_id
device_address VARCHAR(64) Nein - Feld device_address
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
WarehousePutWalls warehouse_put_walls RLS Aktiv
13 Fields / Columns

Tabelle warehouse_put_walls

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
name VARCHAR(120) Ja * - Feld name
location_id UUID Nein FK ➔ locations.id Feld location_id
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehousePutawayRules warehouse_putaway_rules RLS Aktiv
21 Fields / Columns

Tabelle warehouse_putaway_rules

Feldname Data Type Required Schlüssel Functional Meaning
product_id UUID Nein FK ➔ products.id Feld product_id
product_category_id UUID Nein FK ➔ product_categories.id Feld product_category_id
arrive_location_id UUID Nein FK ➔ locations.id Feld arrive_location_id
store_location_id UUID Ja * FK ➔ locations.id Feld store_location_id
storage_category_id UUID Nein FK ➔ storage_categories.id Feld storage_category_id
goods_kind VARCHAR(16) Ja * - Feld goods_kind
stock_owner VARCHAR(16) Ja * - Feld stock_owner
customer_id UUID Nein FK ➔ customers.id Feld customer_id
sublocation_mode VARCHAR(16) Ja * - Feld sublocation_mode
sequence INTEGER Ja * - Feld sequence
active BOOLEAN Ja * - Feld active
warehouse_location_id UUID Nein FK ➔ locations.id Feld warehouse_location_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseRoutes warehouse_routes RLS Aktiv
25 Fields / Columns

Tabelle warehouse_routes

Feldname Data Type Required Schlüssel Functional Meaning
code VARCHAR(32) Ja * - Feld code
name VARCHAR(120) Ja * - Feld name
operation_type VARCHAR(32) Ja * - Feld operation_type
action VARCHAR(16) Ja * - Feld action
goods_kind VARCHAR(16) Ja * - Feld goods_kind
stock_owner VARCHAR(16) Ja * - Feld stock_owner
customer_id UUID Nein FK ➔ customers.id Feld customer_id
source_zone_id UUID Nein FK ➔ warehouse_zones.id Feld source_zone_id
destination_zone_id UUID Nein FK ➔ warehouse_zones.id Feld destination_zone_id
source_location_id UUID Nein FK ➔ locations.id Feld source_location_id
destination_location_id UUID Nein FK ➔ locations.id Feld destination_location_id
product_id UUID Nein FK ➔ products.id Feld product_id
product_category_id UUID Nein FK ➔ product_categories.id Feld product_category_id
sequence INTEGER Ja * - Feld sequence
active BOOLEAN Ja * - Feld active
warehouse_location_id UUID Nein FK ➔ locations.id Feld warehouse_location_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseSettings warehouse_settings RLS Aktiv
37 Fields / Columns

Tabelle warehouse_settings

Feldname Data Type Required Schlüssel Functional Meaning
track_lots BOOLEAN Ja * - Feld track_lots
track_serial_numbers BOOLEAN Ja * - Feld track_serial_numbers
track_expiry_dates BOOLEAN Ja * - Feld track_expiry_dates
multi_step_routes BOOLEAN Ja * - Feld multi_step_routes
storage_categories BOOLEAN Ja * - Feld storage_categories
consignment BOOLEAN Ja * - Feld consignment
use_packages BOOLEAN Ja * - Feld use_packages
bonded_customs BOOLEAN Ja * - Feld bonded_customs
receipt_steps INTEGER Ja * - Feld receipt_steps
delivery_steps INTEGER Ja * - Feld delivery_steps
default_removal_strategy VARCHAR(8) Ja * - Feld default_removal_strategy
annual_inventory_day INTEGER Nein - Feld annual_inventory_day
annual_inventory_month INTEGER Nein - Feld annual_inventory_month
scan_required_for_moves BOOLEAN Ja * - Feld scan_required_for_moves
auto_confirm_deliveries BOOLEAN Ja * - Feld auto_confirm_deliveries
abc_a_share NUMERIC(5, 4) Ja * - Feld abc_a_share
abc_b_share NUMERIC(5, 4) Ja * - Feld abc_b_share
abc_lookback_days INTEGER Ja * - Feld abc_lookback_days
xyz_x_max_cv NUMERIC(6, 3) Ja * - Feld xyz_x_max_cv
xyz_y_max_cv NUMERIC(6, 3) Ja * - Feld xyz_y_max_cv
xyz_period_days INTEGER Ja * - Feld xyz_period_days
abc_review_interval_days INTEGER Ja * - Feld abc_review_interval_days
blind_receiving BOOLEAN Ja * - Feld blind_receiving
receiving_tolerance_pct NUMERIC(5, 2) Ja * - Feld receiving_tolerance_pct
gs1_company_prefix VARCHAR(12) Nein - Feld gs1_company_prefix
sscc_extension_digit INTEGER Ja * - Feld sscc_extension_digit
sscc_next_serial BIGINT Ja * - Feld sscc_next_serial
warehouse_location_id UUID Nein FK ➔ locations.id Feld warehouse_location_id
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseStorageClassRules warehouse_storage_class_rules RLS Aktiv
15 Fields / Columns

Tabelle warehouse_storage_class_rules

Feldname Data Type Required Schlüssel Functional Meaning
class_a VARCHAR(16) Ja * - Feld class_a
class_b VARCHAR(16) Ja * - Feld class_b
decision VARCHAR(16) Ja * - Feld decision
source_ref VARCHAR(255) Nein - Feld source_ref
verified BOOLEAN Ja * - Feld verified
note TEXT Nein - Feld note
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseTasks warehouse_tasks RLS Aktiv
26 Fields / Columns

Tabelle warehouse_tasks

Feldname Data Type Required Schlüssel Functional Meaning
task_type VARCHAR(16) Ja * - Feld task_type
source_type VARCHAR(32) Ja * - Feld source_type
source_ref VARCHAR(96) Ja * - Feld source_ref
picking_id UUID Nein FK ➔ warehouse_pickings.id Feld picking_id
zone_id UUID Nein FK ➔ warehouse_zones.id Feld zone_id
location_id UUID Nein FK ➔ locations.id Feld location_id
warehouse_location_id UUID Nein FK ➔ locations.id Feld warehouse_location_id
priority INTEGER Ja * - Feld priority
sequence INTEGER Ja * - Feld sequence
status VARCHAR(16) Ja * - Feld status
assigned_user_id UUID Nein FK ➔ users.id Feld assigned_user_id
title VARCHAR(255) Ja * - Feld title
lines INTEGER Ja * - Feld lines
quantity NUMERIC(14, 4) Ja * - Feld quantity
errors INTEGER Ja * - Feld errors
due_at DATETIME Nein - Feld due_at
started_at DATETIME Nein - Feld started_at
completed_at DATETIME Nein - Feld completed_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseWaves warehouse_waves RLS Aktiv
15 Fields / Columns

Tabelle warehouse_waves

Feldname Data Type Required Schlüssel Functional Meaning
wave_number VARCHAR(40) Ja * - Feld wave_number
status VARCHAR(24) Ja * - Feld status
assigned_user_id UUID Nein FK ➔ users.id Feld assigned_user_id
notes VARCHAR(1000) Nein - Feld notes
released_at DATETIME Nein - Feld released_at
completed_at DATETIME Nein - Feld completed_at
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseYardVisits warehouse_yard_visits RLS Aktiv
23 Fields / Columns

Tabelle warehouse_yard_visits

Feldname Data Type Required Schlüssel Functional Meaning
visit_number VARCHAR(40) Ja * - Feld visit_number
trailer_plate VARCHAR(32) Ja * - Feld trailer_plate
carrier VARCHAR(128) Nein - Feld carrier
driver_name VARCHAR(120) Nein - Feld driver_name
direction VARCHAR(16) Ja * - Feld direction
status VARCHAR(16) Ja * - Feld status
yard_spot_id UUID Nein FK ➔ warehouse_docks.id Feld yard_spot_id
dock_id UUID Nein FK ➔ warehouse_docks.id Feld dock_id
dock_slot_id UUID Nein FK ➔ warehouse_dock_slots.id Feld dock_slot_id
inbound_advice_id UUID Nein FK ➔ warehouse_inbound_advices.id Feld inbound_advice_id
arrived_at DATETIME Ja * - Feld arrived_at
docked_at DATETIME Nein - Feld docked_at
departed_at DATETIME Nein - Feld departed_at
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WarehouseZones warehouse_zones RLS Aktiv
19 Fields / Columns

Tabelle warehouse_zones

Feldname Data Type Required Schlüssel Functional Meaning
location_id UUID Ja * FK ➔ locations.id Feld location_id
code VARCHAR(32) Ja * - Feld code
name VARCHAR(120) Ja * - Feld name
zone_type VARCHAR(32) Ja * - Feld zone_type
sequence INTEGER Ja * - Feld sequence
active BOOLEAN Ja * - Feld active
abc_class VARCHAR(1) Nein - Feld abc_class
temperature_min_c NUMERIC(5, 1) Nein - Feld temperature_min_c
temperature_max_c NUMERIC(5, 1) Nein - Feld temperature_max_c
allowed_storage_classes JSONB Nein - Feld allowed_storage_classes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WorkOrderItems work_order_items RLS Aktiv
22 Fields / Columns

Tabelle work_order_items

Feldname Data Type Required Schlüssel Functional Meaning
work_order_id UUID Ja * FK ➔ work_orders.id Feld work_order_id
position INTEGER Ja * - Feld position
item_type VARCHAR(32) Ja * - Feld item_type
product_id UUID Nein FK ➔ products.id Feld product_id
sku VARCHAR(64) Nein - Feld sku
title VARCHAR(255) Ja * - Feld title
description TEXT Nein - Feld description
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
unit_price NUMERIC(14, 2) Ja * - Feld unit_price
discount_percent NUMERIC(5, 2) Ja * - Feld discount_percent
tax_rate NUMERIC(6, 4) Ja * - Feld tax_rate
net_total NUMERIC(14, 2) Ja * - Feld net_total
tax_amount NUMERIC(14, 2) Ja * - Feld tax_amount
gross_total NUMERIC(14, 2) Ja * - Feld gross_total
quantity_delivered NUMERIC(14, 4) Ja * - Feld quantity_delivered
quantity_invoiced NUMERIC(14, 4) Ja * - Feld quantity_invoiced
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
WorkOrderMaterialRequirements work_order_material_requirements RLS Aktiv
18 Fields / Columns

Tabelle work_order_material_requirements

Feldname Data Type Required Schlüssel Functional Meaning
work_order_id UUID Ja * FK ➔ work_orders.id Feld work_order_id
product_id UUID Ja * FK ➔ products.id Feld product_id
quantity_required NUMERIC(14, 4) Ja * - Feld quantity_required
quantity_issued NUMERIC(14, 4) Ja * - Feld quantity_issued
unit VARCHAR(16) Ja * - Feld unit
notes TEXT Nein - Feld notes
purchase_id UUID Nein FK ➔ purchases.id Feld purchase_id
purchase_item_id UUID Nein FK ➔ purchase_items.id Feld purchase_item_id
procurement_status VARCHAR(24) Ja * - Feld procurement_status
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
WorkstationCalendarExceptions workstation_calendar_exceptions RLS Aktiv
10 Fields / Columns

Tabelle workstation_calendar_exceptions

Feldname Data Type Required Schlüssel Functional Meaning
workstation_id UUID Ja * FK ➔ workstations.id Feld workstation_id
exception_date DATE Ja * - Feld exception_date
capacity_minutes INTEGER Ja * - Feld capacity_minutes
kind VARCHAR(24) Ja * - Feld kind
reason VARCHAR(255) Nein - Feld reason
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
WorkstationChangeovers workstation_changeovers RLS Aktiv
13 Fields / Columns

Tabelle workstation_changeovers

Feldname Data Type Required Schlüssel Functional Meaning
workstation_id UUID Ja * FK ➔ workstations.id Feld workstation_id
from_product_id UUID Nein FK ➔ products.id Feld from_product_id
to_product_id UUID Nein FK ➔ products.id Feld to_product_id
from_family VARCHAR(64) Nein - Feld from_family
to_family VARCHAR(64) Nein - Feld to_family
setup_minutes INTEGER Ja * - Feld setup_minutes
cleaning_required BOOLEAN Ja * - Feld cleaning_required
notes TEXT Nein - Feld notes
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
metadata JSONB Ja * - Feld metadata
Workstations workstations RLS Aktiv
21 Fields / Columns

Tabelle workstations

Feldname Data Type Required Schlüssel Functional Meaning
name VARCHAR(255) Ja * - Feld name
code VARCHAR(32) Nein - Feld code
workstation_type VARCHAR(48) Ja * - Feld workstation_type
location_id UUID Nein FK ➔ locations.id Feld location_id
assigned_user_id UUID Nein FK ➔ users.id Feld assigned_user_id
active BOOLEAN Ja * - Feld active
capacity_notes TEXT Nein - Feld capacity_notes
notes TEXT Nein - Feld notes
capacity_minutes_per_day INTEGER Ja * - Feld capacity_minutes_per_day
working_days JSONB Ja * - Feld working_days
parallel_units INTEGER Ja * - Feld parallel_units
efficiency_percent NUMERIC(6, 2) Ja * - Feld efficiency_percent
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata

🔌 Entry Points (UI & APIs)

Art Method Endpoint / Path Titel & Zweck Required Role
⚡ REST API DELETE /api/v1/admin/roles/{role_id}
delete_custom_role
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API DELETE /api/v1/org-units/{unit_id}
delete_unit
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API DELETE /api/v1/platform-products/{product_id}
delete_product
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API DELETE /api/v1/platform-settings/{key}
reset_setting
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API GET /admin
admin_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/accounts
admin_accounts_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/ai
admin_ai_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/ai/guthaben/{topup_id}/gutschrift
admin_ai_topup_credit_note
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/ai/guthaben/{topup_id}/rechnung
admin_ai_topup_invoice
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/audit-trace
audit_trace_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/billing
admin_billing_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/branche
admin_industry_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/branche/preview
admin_industry_preview
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/categories
categories_admin_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/categories/new
categories_admin_new_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/categories/{category_id}/edit
categories_admin_edit_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/categories/{category_id}/fields
categories_admin_fields_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/consultants
admin_consultant_plans_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/controlling
admin_controlling_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/currencies
currencies_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/currencies/new
currencies_new_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/currencies/{currency_id}/edit
currencies_edit_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/documents
admin_documents_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/geo
admin_geo_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/journals
admin_journals_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/legal-entities
legal_entities_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/number-sequences
admin_number_sequences_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/number-sequences/new
number_sequences_new_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/number-sequences/{sequence_id}/edit
number_sequences_edit_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/nummernkreise
admin_number_sequences_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/nummernkreise/new
number_sequences_new_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/nummernkreise/{sequence_id}/edit
number_sequences_edit_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/onboarding/plan
admin_onboarding_plan
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/org-units
admin_org_units_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/org-units/new
admin_org_units_new_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/org-units/{unit_id}/edit
admin_org_units_edit_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/payment-terms
payment_terms_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/payment-terms/new
payment_terms_new_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/payment-terms/{term_id}/edit
payment_terms_edit_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/permissions
admin_permissions_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/platform-products
platform_products_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/platform-products/new
platform_products_new_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/platform-products/{product_id}/edit
platform_products_edit_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/portal
admin_portal_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/profile
admin_profile_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/tax-advisor
admin_tax_advisor_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/tax-advisor/check
admin_tax_advisor_check
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/tax-codes
tax_codes_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/tax-codes/new
tax_codes_new_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/tax-codes/{tax_id}/edit
tax_codes_edit_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/units
units_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/units/new
units_new_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /admin/units/{unit_id}/edit
units_edit_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/consultant-cases
list_consultant_cases
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/consultant-cases/{case_id}
get_consultant_case
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/consultant-change-sets/{change_set_id}
get_consultant_change_set
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/consultant-mandate
get_consultant_mandate
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/consultant-plans
list_consultant_plans
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/consultant-plans/{plan_id}
get_consultant_plan
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/my-permissions
my_permissions
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/outbox/dead-letters
list_outbox_dead_letters
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/permissions
permission_matrix
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/roles
list_custom_roles
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/admin/roles/{role_id}
get_custom_role
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/org-units
list_units
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/org-units/by-user/{user_id}
user_units
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/org-units/me
my_units
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/org-units/{unit_id}/members
unit_members
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/platform-products
list_published_products
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/platform-products/all
list_all_products
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/platform-products/meta/agents
list_available_agents
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/platform-products/{product_id}
get_product
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/platform-settings
list_settings
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/subscriptions
list_subscriptions
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/subscriptions/collections
collections
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/subscriptions/collections.csv
collections_csv
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/subscriptions/link-info
link_info
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/subscriptions/{contract_id}
detail
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /api/v1/subscriptions/{contract_id}/linked
linked
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /platform
platform_admin_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /platform/settings
platform_settings_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /platform/tenants/{org_id}
platform_tenant_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /subscriptions
subscriptions_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API GET /subscriptions/collections
subscription_collections_page
Semantic binding: inventory_only; mutation=False
admin
⚡ REST API PATCH /api/v1/admin/roles/{role_id}
update_custom_role
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API PATCH /api/v1/org-units/{unit_id}
update_unit
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API PATCH /api/v1/platform-products/{product_id}
update_product
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/accounts
admin_add_party_account
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/accounts/category
admin_create_category
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/accounts/category/{category_id}
admin_set_category_accounts
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/accounts/category/{category_id}/deactivate
admin_deactivate_category
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/accounts/supplier/{supplier_id}
admin_set_supplier_account
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/accounts/tax
admin_add_tax_code
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/accounts/tax/{tax_code_id}/deactivate
admin_deactivate_tax_code
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/accounts/{account_id}/deactivate
admin_deactivate_party_account
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/budget
admin_ai_budget_save
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/budget/topup
admin_ai_budget_topup
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/checkout
admin_ai_checkout
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/credentials
admin_ai_credential_create
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/credentials/{credential_id}/activate
admin_ai_credential_activate
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/credentials/{credential_id}/delete
admin_ai_credential_delete
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/credentials/{credential_id}/models
admin_ai_credential_models_update
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/credentials/{credential_id}/test
admin_ai_credential_test
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/platform-models
admin_ai_platform_models_update
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/ai/storage-topup
admin_storage_topup
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/billing/checkout
admin_billing_checkout
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/billing/portal
admin_billing_portal
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/billing/subscribe
admin_billing_subscribe
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/branche/apply
admin_industry_apply
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/categories
admin_create_product_category
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/categories/seed-default-fieldsets
admin_categories_seed_default_fieldsets
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/categories/{category_id}/delete
admin_delete_product_category
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/categories/{category_id}/edit
admin_edit_product_category
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/categories/{category_id}/toggle-active
admin_toggle_active_product_category
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/copy-global
admin_copy_global_cost_library
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/cost-center
admin_add_cost_center
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/cost-center/{cost_center_id}
admin_update_cost_center
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/cost-type
admin_add_cost_type
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/cost-type-accounts/propose
admin_propose_cost_type_accounts
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/cost-type/{cost_type_id}
admin_update_cost_type
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/global-cost-center
admin_upsert_global_cost_center
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/global-cost-center/{center_id}
admin_update_global_cost_center
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/global-cost-type
admin_upsert_global_cost_type
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/controlling/global-cost-type/{type_id}
admin_update_global_cost_type
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/legal-entities
create_legal_entity
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/legal-entities/{entity_id}/deactivate
deactivate_legal_entity
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/onboarding/apply
admin_onboarding_apply
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/onboarding/approve-fieldsets
admin_onboarding_approve_fieldsets
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/portal/accounts
admin_portal_account_create
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/portal/accounts/{account_id}/password
admin_portal_account_password
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/portal/accounts/{account_id}/status
admin_portal_account_status
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/portal/requests/{request_id}/decide
admin_portal_request_decide
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/portal/settings
admin_portal_settings_save
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/profile
admin_profile_save
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/tax-advisor/apply
admin_tax_advisor_apply
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /admin/tax-advisor/proposal
admin_tax_advisor_proposal
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/agents/{agent_name}/toggle
toggle_agent
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-cases
open_consultant_case
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-cases/{case_id}/compile
compile_consultant_case
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-cases/{case_id}/observations
record_consultant_observation
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-cases/{case_id}/requirements
confirm_business_requirement
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-cases/{case_id}/status
set_consultant_case_status
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-change-sets/{change_set_id}/activate
activate_consultant_change_set
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-change-sets/{change_set_id}/approve
approve_consultant_change_set
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-change-sets/{change_set_id}/go-live
go_live_consultant_change_set
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-change-sets/{change_set_id}/simulate
simulate_consultant_change_set
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-discovery/next
next_consultant_discovery
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-mandate
create_consultant_mandate
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-mandate/revoke
revoke_consultant_mandate
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-plans/setup
create_setup_consultant_plan
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-plans/{plan_id}/apply-bound-live
apply_consultant_bound_live
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-plans/{plan_id}/approve
approve_consultant_plan
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-plans/{plan_id}/execute-bound/{step_key}
execute_consultant_bound_step
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-plans/{plan_id}/simulate
simulate_consultant_plan
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-plans/{plan_id}/steps/configure_warehouse_settings/execute
execute_consultant_warehouse_settings
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-plans/{plan_id}/steps/propose_sales_policy/execute
propose_consultant_sales_policy
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/consultant-plans/{plan_id}/steps/review_warehouse_structure/execute
execute_consultant_warehouse_step
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/modules/{module}/toggle
toggle_module
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/outbox/dead-letters/{event_id}/replay
replay_outbox_dead_letter
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/admin/roles
create_custom_role
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/org-units
create_unit
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/platform-products
create_product
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/platform-products/propose
propose_product
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/platform-products/{product_id}/apply/{tenant_id}
apply_product_to_tenant
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/platform-products/{product_id}/publish
publish_product
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/platform-products/{product_id}/unpublish
unpublish_product
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/subscriptions/from-order/{work_order_id}
from_order
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/subscriptions/link
link
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/subscriptions/{contract_id}/cancel
cancel
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/subscriptions/{contract_id}/change-line
change_line
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/subscriptions/{contract_id}/invoice-now
invoice_now
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/subscriptions/{contract_id}/pause
pause
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/subscriptions/{contract_id}/resume
resume
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /api/v1/subscriptions/{contract_id}/revoke-cancellation
revoke
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /platform/tenants/{org_id}/plan
platform_tenant_plan_set
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /platform/tenants/{org_id}/status
platform_tenant_status_set
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API POST /platform/tenants/{org_id}/topups/{topup_id}/confirm
platform_tenant_confirm_topup
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API PUT /api/v1/org-units/by-user/{user_id}
set_user_units
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API PUT /api/v1/org-units/{unit_id}/members
set_members
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API PUT /api/v1/platform-settings/{key}
update_setting
Semantic binding: operator_surface; mutation=True
admin
⚡ REST API PUT /api/v1/subscriptions/{contract_id}/settings
save_settings
Semantic binding: operator_surface; mutation=True
admin
🖥️ WEB-UI GET /login
Anmeldeseite
Zeigt das Login-Formular mit Sprachauswahl
Standard
🖥️ WEB-UI POST /login
Anmelde-Handler
Verifiziert Anmeldedaten und startet die Sitzung
Standard
🖥️ WEB-UI POST /logout
Abmelde-Handler
Invalidiert Session und löscht Cookies
Standard
⚡ REST API GET /api/v1/auth/me
Aktueller Benutzer
Gibt Profil und Berechtigungen zurück
authenticated
⚡ REST API GET /api/v1/admin/industry-profiles
Branchenprofile API
Liefert verfügbare Standard-Branchenprofile
admin:read
⚡ REST API POST /api/v1/admin/apply-industry-profile
Branche anwenden
Initialisiert Konten und Kategoriensets
admin:manage

🛡️ Regulatory & Compliance

Dieses Modul unterliegt folgenden gesetzlichen, regulatorischen und Revisionsstandards:

  • DSGVO Art. 32 (Sicherheit der Verarbeitung)
  • BSI IT-Grundschutz (Passwortrichtlinien, RLS)
Related Modules:
➔ tenants ➔ employees ➔ policies