# SHAHANA VEGETABLES - Store Management Web Application

A PHP + MySQL multi-role web application scaffold for **SHAHANA VEGETABLES** with:
- Admin, staff, customer logins
- Separate admin/staff portal and customer portal
- Item management with original/wholesale/retail pricing
- Billing and invoice workflow
- Expense tracking
- Installment/payment tracking
- Reports dashboard
- Contacts/distributors management
- Password expiry policy (90 days)

## Suggested deployment
- **adm.shahanaveg.in** -> upload `admin/`, `config/`, `includes/`, `assets/`
- **login.shahanaveg.in** -> upload `customer/`, `config/`, `includes/`, `assets/`
- Both portals should point to the **same MySQL database**.

## Default structure
- `create admin.php` -> first admin creator
- `sql/database.sql` -> database schema
- `docs/hosting-guide.md` -> hosting instructions

## Security suggestions included
- Password hashing with `password_hash()`
- Role-based access helpers
- Password expiry checks
- Prepared statements pattern
- Session-based authentication
- Soft-delete and audit suggestions in schema

This is a functional starter project and should be reviewed and tested before production use.
