migrationsscript erstellt

This commit is contained in:
ecki
2026-04-06 18:07:00 +02:00
parent 69f94cec83
commit e4e42b0472
8 changed files with 187 additions and 6 deletions
+8 -1
View File
@@ -66,7 +66,14 @@ infra.js
```bash
git clone <repo>
cd resman
cd backend
npm install
npm run migrate
npm start
```
Beim Start des Backends werden ausstehende Migrationen automatisch ausgefuehrt.
Manuell kannst du sie jederzeit mit `npm run migrate` im `backend`-Ordner starten.
🗄️ Datenbank Schema
@@ -88,6 +95,7 @@ CREATE TABLE resources (
providername VARCHAR(255),
kosten_monat DECIMAL(10,2),
kosten_jahr DECIMAL(10,2),
laufzeit_monate INT,
bestelldatum DATE,
kuendbar_ab DATE,
kuendigungsdatum DATE,
@@ -197,4 +205,3 @@ main.js → Initialisierung + Refresh
DNS Requests können ohne Cache langsam sein
Keine Authentifizierung im Backend
Kein Rollen-/Rechtesystem