diff --git a/memory/mac-context.md b/memory/mac-context.md index 0b16e77..a2e8a1e 100644 --- a/memory/mac-context.md +++ b/memory/mac-context.md @@ -35,6 +35,23 @@ - **My WireGuard IP**: 10.10.0.14 - **VPN Gateway**: 10.10.0.1 - **Dev Server**: 10.10.0.11 +- **Biz Server**: biz.payfrit.com (prod) + +## Database +- **Host**: 10.10.0.1 (VPN gateway) +- **Prod DB**: payfrit +- **Dev DB**: payfrit_dev +- **User**: payfrit_app +- **Tables**: Tasks, Orders, Businesses, Users, ServicePoints, etc. + +## Key Queries +```sql +-- Recent tasks for a business +SELECT ID, BusinessID, Title, ClaimedByUserID, CompletedOn, CreatedOn +FROM Tasks WHERE BusinessID=? ORDER BY CreatedOn DESC; + +-- Pending tasks (ClaimedByUserID=0 AND CompletedOn IS NULL) +``` ## Team (@mentions) - @ava - Design