Zum Hauptinhalt springen

Datenbank-Übersicht

Die ProfiPOS-v6-Datenbank lebt in MariaDB 10.6+ und wird per Phinx-Migrations aus de.profipos.shared/db/ verwaltet.

Topologie

EbeneWoInhalt
Cloud0profipos auf 88.99.138.84Stammdaten (Mandanten, Standorte, Artikel), Bestellportal-Bestellungen, Backoffice-State
Standort-Serverlokale MariaDB pro Serveridentisches Schema, sync mit Cloud
Gerätemeist keine DBApp-State in DataStore / settings.json / NVS

Konventionen

  • UUIDs sind durchgehend CHAR(36) (Hyphen-Form), keine BINARY(16).
  • IDs sind BIGINT UNSIGNED (AUTO_INCREMENT).
  • Spalten sind snake_case, Tabellen im Plural.
  • Geldbeträge sind DECIMAL(10,2) in EUR.
  • Zeitstempel sind DATETIME UTC.

Aktuelle Sprints

  • Sprint AW — Cloud-DB-Backlog (5 Items LIVE 13.06.2026)

Vorherige Sprints sind in docs/plan_v6.md im Shared-Repo dokumentiert.

Migration-Workflow

# Lokal entwickeln
cd de.profipos.shared
vendor/bin/phinx create Sprint3MeineNeuerwerb -e cloud_local
# Migration-Datei + SQL-Blöcke ergänzen

# Auf Server deployen
ssh root@88.99.138.84 "cd /srv/www/git/de.profipos.shared && git pull \
&& vendor/bin/phinx migrate -e cloud_live"

Verwandte Themen