fullsizemalt
d42331075d
feat: Phase 2 Start - Shopping List Database Schema
...
🚀 PROCEEDING WITH ROADMAP PARITY
✅ Seed Data Updated:
- Removed all test users
- Kept only 777 Wolfpack team (Travis, Jen, King)
- Preserved walkthrough data
📦 Shopping List Feature (Phase 3A):
- Added SupplyItem model
- Added SupplyCategory enum (FILTER, CLEANING, PPE, OFFICE, BATHROOM, KITCHEN, MAINTENANCE, OTHER)
- Fields: name, category, quantity, minThreshold, unit, location, lastOrdered, notes
Next Steps:
1. Run migration
2. Create backend API
3. Create frontend UI
4. Deploy
Priority: Shopping List → Touch Points → Task Lists
2025-12-09 15:09:12 -08:00
fullsizemalt
9dc0586d67
feat: Sprint 2 Phase 1 - Auth Core Complete
...
✅ Implemented:
- Password hashing with bcrypt (salt rounds = 10)
- JWT token generation (access 15m, refresh 7d)
- Updated login endpoint to return access + refresh tokens
- Added refresh and logout endpoints
- Updated seed script with hashed passwords
- Added test users for all roles (OWNER, MANAGER, GROWER, STAFF)
📝 Files Added/Modified:
- backend/src/utils/password.ts (NEW)
- backend/src/utils/jwt.ts (NEW)
- backend/src/controllers/auth.controller.ts (UPDATED)
- backend/src/routes/auth.routes.ts (UPDATED)
- backend/prisma/seed.js (UPDATED - now hashes passwords)
- CREDENTIALS.md (UPDATED - all test users documented)
🔐 Test Users:
- admin@runfoo.run (OWNER)
- manager@runfoo.run (MANAGER)
- grower@runfoo.run (GROWER)
- staff@runfoo.run (STAFF)
All passwords: password123
⏭️ Next: Auth middleware + RBAC
2025-12-09 13:52:54 -08:00