Files
rentman-clone/.a0/next_steps.md
T

37 lines
1.5 KiB
Markdown
Raw Normal View History

# Next Steps
## Completed Phases
- Phase 0: Project Setup (T001-T003)
- Phase 1: Auth System (T004-T008)
- Phase 2: Contacts & Tags (T009-T011)
## Next Phase: 3 Equipment Catalog
### Priority Tasks
1. **T012**: Create database models for Equipment catalog and StockLocation
- Equipment model: name, category, brand, serial_number, barcode, qr_code, status, purchase_price, current_value, weight_kg, dimensions, power_watt, notes, custom_fields
- StockLocation model: name, address, is_default
- EquipmentGroup (Bundle) with M2M items
- Relationships to Account, Contact (supplier?)
- Alembic migration
2. **T013**: Implement Equipment catalog API
- CRUD endpoints: GET/POST /api/v1/equipment, GET/PUT/DELETE /api/v1/equipment/{id}
- Search, filter by category/status/location, pagination
- Auto-generate barcode/QR code
- Batch import/export CSV
- Permission: equipment:read, equipment:write, equipment:delete
3. **T014**: Equipment catalog UI
- Equipment list page with grid/table toggle
- Search/filter by category, status, location
- Detail page with image, edit form
- Barcode/QR code display and print label
## Implementation Notes
- Use existing patterns from contacts module: models → schemas → router → frontend pages
- All endpoints must use tenant isolation (account_id filter)
- All endpoints must use RBAC permissions via require_permission dependency
- Frontend uses existing API client, Zustand for auth, React state for data
- AppLayout sidebar already has Equipment link (placeholder)