You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Star0 (0)You must be signed in to star a repository
About
A production-ready backend for a Field Service Management System that connects customers, technicians, managers, and admins through a complete service lifecycle — from request submission and skill/region-based technician matching to work order execution, bKash payments, and feedback.
A comprehensive backend API for managing field service operations including customers, technicians, work orders, payments, and analytics.
📋 Overview
This system provides a complete solution for field service management with role-based access control, supporting customers, technicians, managers, and administrators. Features include service requests, work order management, technician assignment, payment processing (bKash), file attachments, service reports, feedback system, and analytics dashboards.
✨ Features
Role-based access control — SUPER_ADMIN, ADMIN, MANAGER, TECHNICIAN, CUSTOMER with scoped permissions
# Clone repository
git clone <repository-url>cd Assignment6
# Install dependencies
npm install
# Setup environment
cp .env.example .env
# Edit .env with your configuration# Generate Prisma client
npx prisma generate
# Run migrations
npx prisma migrate dev
# Seed database (optional)
npm run dev # Seeds run automatically on startup# Start development server
npm run dev
Available Scripts
Command
Description
npm run dev
Start development server with hot reload
npm run build
Build for production
npm start
Start production server
npm run format:check
Check code formatting
npm run format:fix
Fix code formatting
npm run lint:check
Check linting
npm run lint:fix
Fix linting
📦 Database Schema Overview
Key models:
User - Authentication & roles
CustomerProfile - Customer details
TechnicianProfile - Technician details, skills, region
ManagerProfile - Manager details, region
Region - Service regions
Category - Service categories
Skill - Technician skills
Service - Service requests
WorkOrder - Assigned work orders
Payment - Payment records
Attachment - File attachments
ServiceReport - Technician reports
Feedback - Customer feedback
Schedule - Technician availability
About
A production-ready backend for a Field Service Management System that connects customers, technicians, managers, and admins through a complete service lifecycle — from request submission and skill/region-based technician matching to work order execution, bKash payments, and feedback.