Company Overview & Core Logic

Understand the easyflow business model, system architecture, data flow, and user roles hierarchy.

Business Model & Operational Workflow

easyflow is a comprehensive SaaS HR management platform designed to streamline employee management, attendance tracking, salary processing, and payroll operations for businesses of all sizes.

Core Operational Workflow

  1. Company Setup

    Organizations signup and configure their company profile, including business details, policies, and organizational structure.

  2. Admin User Creation

    Initial admin users are created with full system manage the access to platform.

  3. Employee Onboarding

    Staff members are added to the system with personal details, documents, and role assignments.

  4. Attendance Tracking

    Employees punch in/out daily, with attendance automatically recorded and stored.

  5. Salary Configuration

    Salary structures, components, and payroll rules are configured per employee.

  6. Payroll Processing

    Monthly payroll is calculated based on attendance, deductions, and salary components.

  7. Payment Disbursement

    Salaries are paid and records are updated in the system.

Business Workflow DiagramBusiness Workflow Diagram

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

Employee
Punch In/Out
Attendance Record
Attendance
Monthly Summary
Salary Calculation
Salary
Payslip Gen
Payment Process

User Roles & Permissions Hierarchy

easyflow implements a role-based access control (RBAC) system with the following user roles:

Super Admin

Level 1
  • Complete system access
  • Manage all companies
  • System-wide settings
  • Audit logs access
  • Billing management

Platform-level administration for system-wide operations.

Company Admin

Level 2
  • Full company access
  • Manage employees
  • Salary processing
  • Reports & analytics
  • Settings configuration

Primary administrator for each organization.

Manager

Level 3
  • View team data
  • Approve leave requests
  • View reports
  • Team attendance

Department or team level management access.

Staff/Employee

Level 4
  • View own profile
  • Punch in/out
  • Apply for leave
  • View payslips

Standard employee with self-service access.

Permission Matrix

FeatureSuper AdminCompany AdminManagerStaff
Company SettingsFullFullNoneNone
Employee ManagementFullFullTeam OnlyOwn
Salary ProcessingFullFullNoneOwn
Attendance ReportsFullFullTeam OnlyOwn
Leave ManagementFullFullApproveApply
System SettingsFullCompanyNoneNone