Commit Graph

4 Commits

Author SHA1 Message Date
40adeb15ee feat: Add subscription management system
- Add subscription fields to organizations (status, plan, trial_ends_at, etc.)
- Add subscription middleware for access control
- Add /auth/me returns subscription info
- Add admin endpoints for subscription management:
  - GET/PUT /admin/organizations/:id/subscription
  - POST /admin/organizations/:id/pause
  - POST /admin/organizations/:id/activate
  - POST /admin/organizations/:id/extend-trial
  - GET /admin/subscriptions (with filters)
- New orgs get 14-day trial automatically
2026-03-13 05:58:00 +00:00
2b5910cc75 feat: Add organization logo upload
- Add uploads router with logo upload/delete/serve endpoints
- Add logo_url column migration for organizations table
- Update /organizations/current to include logo_url
- Max 5MB, supports JPG/PNG/WebP/SVG
2026-03-13 05:08:57 +00:00
c0c129ea37 fix: Global BigInt conversion in postgres module
- Added convertBigInt helper in db/postgres.ts
- Converts all BigInt values to Number in query results
- Simplified admin.ts routes (removed workarounds)
- All APIs now work correctly
2026-03-12 20:22:13 +00:00
ee19e45171 🚀 Backend komplett implementiert
Features:
- Auth mit JWT + Argon2 (Login, Register, Refresh)
- Rollen-System (Chef/Disponent/Mitarbeiter)
- User Management mit Berechtigungen
- Aufträge mit Zuweisungen
- Verfügbarkeitsplanung
- Stundenzettel mit Foto-Upload Support
- Modulares System mit Config
- Entwickler-Panel Endpoints

Tech:
- Deno + Oak
- PostgreSQL
- CORS enabled
2026-02-20 15:12:06 +00:00