sahyog-heena-jwellers/
├── backend/
│ ├── src/sj/
│ │ ├── __init__.py # App initialization & CORS
│ │ ├── app.py # FastAPI app factory
│ │ ├── config.py # Env var config
│ │ ├── db.py # DB engine & session
│ │ ├── deps.py # Dependency injection
│ │ ├── schema.py # SQLAlchemy ORM models
│ │ ├── routes.py # Main API routes (~2600 lines)
│ │ ├── order_draft_routes.py # Order draft routes
│ │ ├── khata_router.py # Khata submission routes
│ │ ├── gupshup_incoming_webhook.py # WhatsApp webhook handler
│ │ ├── gupshup.py # Gupshup API helpers
│ │ ├── services.py # Core business logic
│ │ ├── khata_services.py # Khata processing (v1)
│ │ ├── khata_services_v2.py # Khata processing (v2)
│ │ ├── khata_upload.py # Khata upload handlers
│ │ └── pdf_service.py # PDF generation helpers
│ ├── tests/ # Pytest test suite
│ ├── alembic/ # DB migrations
│ ├── pyproject.toml # Poetry config
│ └── .env # Environment variables
│
└── frontend/
├── src/
│ ├── main.tsx # React entry point
│ ├── App.tsx # Root component + routing
│ ├── pages/ # Page-level components
│ ├── components/ # Reusable UI components
│ ├── store/ # Zustand stores
│ ├── lib/
│ │ └── axiosInstance.ts # Configured Axios instance
│ ├── types/
│ │ └── RecordTypes.ts # TypeScript interfaces
│ └── utils/
│ └── helper.ts
├── package.json
└── vite.config.ts