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
|
7d42ecbfad
|
feat: Daily Walkthrough Database Schema
🔴 Phase 1.5: Daily Operations for 777 Wolfpack
✅ Database Schema Complete:
- DailyWalkthrough model (parent walkthrough session)
- ReservoirCheck model (tank levels, veg/flower)
- IrrigationCheck model (drippers, water flow, nutrients, 4 zones)
- PlantHealthCheck model (pests, water/food access, photos)
📊 New Enums:
- WalkthroughStatus (IN_PROGRESS, COMPLETED, INCOMPLETE)
- TankType (VEG, FLOWER)
- TankStatus (OK, LOW, CRITICAL)
- HealthStatus (GOOD, FAIR, NEEDS_ATTENTION)
- AccessStatus (OK, ISSUES)
🔗 Relationships:
- User → DailyWalkthrough (one-to-many)
- DailyWalkthrough → ReservoirCheck (one-to-many, cascade delete)
- DailyWalkthrough → IrrigationCheck (one-to-many, cascade delete)
- DailyWalkthrough → PlantHealthCheck (one-to-many, cascade delete)
📝 Features:
- Photo URLs for all check types
- JSON storage for failed dripper IDs
- Cascade delete (cleanup on walkthrough deletion)
- Timestamps for audit trail
- Status tracking (in progress → completed)
⏭️ Next: Migration + Backend API endpoints
Migration Command (run on deployment):
npx prisma migrate dev --name add_daily_walkthrough
|
2025-12-09 14:06:16 -08:00 |
|