# Decisions Log

## 2026-06-07

- Use a mobile-first web app.
- Use React for the frontend.
- Use Laravel REST API for the backend.
- Use MySQL for the database.
- Keep Laravel as the main backend for v1; Node.js is not needed yet.
- Build the first system for one restaurant: Pizza Damore.
- Use simple roles first: owner, manager, employee.
- Use manual sales totals by business date rather than per-order sales in v1.
- Track sales by today, yesterday, week, month, and custom date range.
- Make `cost_per_unit` nullable for inventory items.
- Use manual purchase entry first.
- Add invoice upload/OCR later.
- Use simple base units for inventory items.
- Add command-based stock reduction before recipe-based deduction.
- Use a rule-based command parser first to avoid paid AI dependency.
- Confirm uncertain inventory commands only.
- Keep frontend and backend together under `D:\laragon\www\pizza-damore`.
- Do not use localStorage for auth or app data.
- Use a simple bearer API token for the first backend login implementation.
