Datenbank-Übersicht
Die ProfiPOS-v6-Datenbank lebt in MariaDB 10.6+ und wird per
Phinx-Migrations aus
de.profipos.shared/db/
verwaltet.
Topologie
| Ebene | Wo | Inhalt |
|---|---|---|
| Cloud | 0profipos auf 88.99.138.84 | Stammdaten (Mandanten, Standorte, Artikel), Bestellportal-Bestellungen, Backoffice-State |
| Standort-Server | lokale MariaDB pro Server | identisches Schema, sync mit Cloud |
| Geräte | meist keine DB | App-State in DataStore / settings.json / NVS |
Konventionen
- UUIDs sind durchgehend
CHAR(36)(Hyphen-Form), keineBINARY(16). - IDs sind
BIGINT UNSIGNED(AUTO_INCREMENT). - Spalten sind
snake_case, Tabellen im Plural. - Geldbeträge sind
DECIMAL(10,2)in EUR. - Zeitstempel sind
DATETIMEUTC.
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"