Company Overview & Core Logic
Understand the easyflow business model, system architecture, data flow, and user roles hierarchy.
Business Model & Operational Workflow
Core Operational Workflow
- Company Setup
Organizations signup and configure their company profile, including business details, policies, and organizational structure.
- Admin User Creation
Initial admin users are created with full system manage the access to platform.
- Employee Onboarding
Staff members are added to the system with personal details, documents, and role assignments.
- Attendance Tracking
Employees punch in/out daily, with attendance automatically recorded and stored.
- Salary Configuration
Salary structures, components, and payroll rules are configured per employee.
- Payroll Processing
Monthly payroll is calculated based on attendance, deductions, and salary components.
- Payment Disbursement
Salaries are paid and records are updated in the system.


System Architecture & Data Flow
High-Level Architecture
Frontend Layer
- Next.js 14+ App Router
- React 18+ Components
- Responsive Web Design
- Progressive Web App (PWA)
API Layer
- Next.js API Routes
- RESTful Endpoints
- Authentication (JWT)
- Rate Limiting
Database Layer
- PostgreSQL
- Prisma ORM
- Real-time Updates
- Encrypted Storage
Data Flow Overview
User Roles & Permissions Hierarchy
easyflow implements a role-based access control (RBAC) system with the following user roles:
Super Admin
Level 1Platform-level administration for system-wide operations.
Company Admin
Level 2Primary administrator for each organization.
Manager
Level 3Department or team level management access.
Staff/Employee
Level 4Standard employee with self-service access.
Permission Matrix
| Feature | Super Admin | Company Admin | Manager | Staff |
|---|---|---|---|---|
| Company Settings | Full | Full | None | None |
| Employee Management | Full | Full | Team Only | Own |
| Salary Processing | Full | Full | None | Own |
| Attendance Reports | Full | Full | Team Only | Own |
| Leave Management | Full | Full | Approve | Apply |
| System Settings | Full | Company | None | None |