RBAC: Phase 1-3, Total Salary fix, employee creation fix, permission groups, backup script
Made-with: Cursor
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
Clean the production database so you can load **new real data** that will reflect across the system at all levels. This removes existing (e.g. test/demo) data and leaves the database in a state where:
|
||||
|
||||
- Schema and migrations are unchanged
|
||||
- Base configuration is restored (pipelines, categories, departments, roles, default users)
|
||||
- All business data (contacts, deals, quotes, projects, etc.) is removed so you can enter new real data
|
||||
- One System Administrator user remains for configuration
|
||||
- All business data (contacts, deals, quotes, projects, etc.) is removed so you can enter new real data manually
|
||||
|
||||
## ⚠️ Important
|
||||
|
||||
@@ -21,7 +21,7 @@ Clean the production database so you can load **new real data** that will reflec
|
||||
This truncates all tables and then runs the seed so you get:
|
||||
|
||||
- Empty business data (contacts, deals, quotes, projects, inventory, etc.)
|
||||
- Restored base data: departments, positions, permissions, employees, users, contact categories, product categories, pipelines, one warehouse
|
||||
- One System Administrator user (admin@system.local) with full access to all modules
|
||||
|
||||
### Steps on production server
|
||||
|
||||
@@ -87,19 +87,17 @@ All rows are removed from every table, including:
|
||||
- Audit logs, notifications, approvals
|
||||
- Users, employees, departments, positions, permissions
|
||||
|
||||
Then the **seed** recreates only the base data (users, departments, positions, permissions, employees, contact/product categories, pipelines, one warehouse).
|
||||
Then the **seed** recreates only the base data (one System Administrator user with full access). No categories, pipelines, or warehouses—you configure these manually.
|
||||
|
||||
---
|
||||
|
||||
## Default users after re-seed
|
||||
## Default user after re-seed
|
||||
|
||||
| Role | Email | Password | Access |
|
||||
|-------------------|--------------------------|-----------|---------------|
|
||||
| General Manager | gm@atmata.com | Admin@123 | Full system |
|
||||
| Sales Manager | sales.manager@atmata.com | Admin@123 | Contacts, CRM |
|
||||
| Sales Representative | sales.rep@atmata.com | Admin@123 | Basic CRM |
|
||||
| Role | Email | Password | Access |
|
||||
|-------------------|----------------------|-----------|-------------|
|
||||
| System Administrator | admin@system.local | Admin@123 | Full system |
|
||||
|
||||
Change these passwords after first login in production.
|
||||
Change the password after first login in production.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user