dbmodell - actioncodes - pap - masken
Datenbankaussehen nach Vorstellung Robinayor_s
Notes:
Tabelle users
| Spalte | Datentyp | Inhalt |
| id | SMALLINT | fortlaufende unique Nummer |
| tag_id | SAMLLINT | unique Nummer |
| nickname | VARCHAR(255) | Nickname |
| realname | CARCHAR(255) | Realname |
Tabelle products
| Spalte | Datentyp | Inhalt |
| id | SMALLINT | fortlaufende unique Nummer |
| tag_id | SAMLLINT | unique Nummer |
| title | VARCHAR(255) | Produktname |
| wert | SMALLINT | Produktwert in Cent |
| Spalte | Datentyp | Inhalt |
| id | SMALLINT | fortlaufende unique Nummer |
| barcode | VARCHAR(13) | barcode-nummer (unique) |
| active | BOOL | Der Tag ist aktiv (inaktiv z.B. wenn verloren/dauerhaft unlesbar) |
Tabelle buchungen
| Spalte | Datentyp | Inhalt |
| id | SMALLINT | fortlaufende unique Nummer |
| user_id | SMALLINT | User-ID |
| action | VARCHAR(255) | action-string fürs log, später ersetzt durch action_id |
| product_id | SMALLINT | |
| seller_id | SMALLINT | user-id des kassierers |
| timestamp | TIMESTAMP | Zeit der Buchung |
| rescue_delta | SMALINT | Centgenauer Buchungswert wenn product_id NULL ist - fällt in nächster Version weg |