Ensure the admin user always has full access to manage the application

Fixes admin role assignment, adds SQL scripts for manual correction, and provides debugging tools for production issues.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/nHdBv6m
This commit is contained in:
michaelschal committed 2025-07-19 15:50:22 +00:00
1 parent a1ff814f6b
commit 87722d8132
6 files changed
+180

No files matched your search

@@ -0,0 +1,62 @@
[⢿] Pulling schema from database...
[✓] Pulling schema from database...
[i] No changes detected
✅ Migration completed
🌟 Starting RegisFlow application...
Database URL configured with SSL disabled
> rest-express@1.0.0 start
> NODE_ENV=production node dist/index.js
5:47:11 PM [express] serving on port 5000
📅 Automatic backup scheduler started
⏰ Backups will run every 12 hours (00:00 and 12:00)
📁 Backup directory: /app/backups
📚 Maximum backups kept: 10
🕐 Planificateur de purge des ventes démarré
⏰ Purge automatique : 1er de chaque mois à 02:00
📅 Rétention des données : 19 mois maximum
5:47:15 PM [express] GET /api/auth/me 304 in 31ms :: {"id":3,"username":"admin","email":"admin@examp…
5:47:16 PM [express] GET /api/sales 200 in 12ms :: []
5:47:16 PM [express] GET /api/auth/me 304 in 6ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:16 PM [express] GET /api/auth/me 304 in 11ms :: {"id":3,"username":"admin","email":"admin@examp…
5:47:20 PM [express] GET /api/auth/me 304 in 6ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:20 PM [express] GET /api/auth/me 304 in 6ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:20 PM [express] GET /api/auth/me 304 in 5ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:21 PM [express] GET /api/auth/me 304 in 6ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:21 PM [express] GET /api/auth/me 304 in 5ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:22 PM [express] GET /api/auth/me 304 in 5ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:28 PM [express] GET /api/auth/me 304 in 5ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:28 PM [express] GET /api/auth/me 304 in 5ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:28 PM [express] GET /api/auth/me 304 in 9ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:28 PM [express] GET /api/auth/me 304 in 3ms :: {"id":3,"username":"admin","email":"admin@exampl…
5:47:28 PM [express] GET /api/stores 304 in 7ms :: [{"id":3,"name":"Magasin Principal","address":"À …