- GET /modules/visibility - get visibility settings
- PUT /modules/visibility - update visibility per role
- Chef can configure which modules are visible to disponent/mitarbeiter/subunternehmer
- Add 'free' subscription status (exempt from fees)
- POST /admin/organizations/:id/set-free - Set org as free
- POST /admin/organizations/:id/remove-free - Remove free status
- Free orgs get enterprise plan, no expiry
- 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
- 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
- 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
- Add jsonResponse helper for BigInt conversion
- Cast all COUNT() and ID fields to text in SQL
- Convert back to Number() in response
- Fix partnerships response format
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