phase-1: data model, auth, permissions, masters, settings, seed
This commit is contained in:
@@ -43,13 +43,13 @@ cd backend
|
||||
.venv/Scripts/python -m pytest tests/ -v
|
||||
```
|
||||
|
||||
### Seed demo data (available after Phase 1)
|
||||
### Seed demo data
|
||||
```bash
|
||||
cd backend
|
||||
.venv/Scripts/python -m app.seed.seed
|
||||
```
|
||||
|
||||
## Demo Accounts (available after Phase 1)
|
||||
## Demo Accounts
|
||||
| Email | Password | Role |
|
||||
|---|---|---|
|
||||
| admin@poona.demo | Demo@123 | System Admin |
|
||||
@@ -58,12 +58,13 @@ cd backend
|
||||
| mgmt@poona.demo | Demo@123 | Management |
|
||||
| coord@poona.demo | Demo@123 | Coordinator |
|
||||
|
||||
## What exists now (Phase 0)
|
||||
- FastAPI backend scaffold with `/api/health` endpoint
|
||||
- React + TypeScript frontend with full app shell
|
||||
- Left sidebar with all module links (stubbed pages)
|
||||
- DataTable component with column filters, sort, pagination, CSV export
|
||||
- Tailwind CSS + shadcn/ui design system
|
||||
## What exists now (Phase 1)
|
||||
- Complete SQLAlchemy 19-table data model across masters, assets, maintenance, complaints, operations, and system modules
|
||||
- JWT authentication (`/api/auth/login`, `/api/auth/me`), RBAC permission matrix for 5 roles, and Quick Demo Login
|
||||
- Admin Master Lists CRUD (`/masters`: Departments, Locations, Categories, Vendors, Users)
|
||||
- Typed System Settings (`/settings`) and TopBar "As of Date" Demo Clock (`POST /api/settings/demo-date`)
|
||||
- Idempotent deterministic seed script (`python -m app.seed.seed`) populating realistic hospital demo data
|
||||
- React + TypeScript frontend app shell with role-filtered sidebar, route guards, DataTable, and Tailwind CSS + shadcn/ui
|
||||
- Makefile for common tasks
|
||||
|
||||
## Modules (all phases)
|
||||
|
||||
Reference in New Issue
Block a user