Commit Graph

3 Commits

Author SHA1 Message Date
48995d2869 fix: resolve pipeline warnings
- Fix ESLint unused variable warnings in auto-init-db.js
- Downgrade cross-env to v7.0.3 (compatible with Node 18)
- Fix npm audit high severity vulnerability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-06 16:43:09 +01:00
62388bd92d fix: add is_active column to users schema and migrations
- Add is_active column to schema.sql for new deployments
- Add migration in auto-init-db.js for existing databases

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 00:51:19 +01:00
dfe2dfa7ed feat: add automatic database initialization on startup
- Create auto-init-db.js script that checks and initializes database
- Creates tables from schema.sql if not exist
- Creates default admin and employee accounts
- Generates 500,000 tickets with proper distribution
- Applies migrations for newsletter and email campaigns
- Runs automatically when backend starts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 23:47:42 +01:00