Welcome to CFlow Documentation
CFlow is a multi-industry workforce management platform designed for internal staff and HR management. This documentation covers everything you need to develop, deploy, and maintain CFlow.
What is CFlow?
CFlow is a modern, full-stack workforce management solution built with:
- Next.js 14 with App Router and TypeScript
- Supabase for PostgreSQL database and authentication
- Tailwind CSS with custom coral-themed glass morphism design
- UK compliance for date/time formats and data protection
Key Features
| Feature | Description |
|---|---|
| Multi-Industry Support | GP Practice, Dental, Restaurant, Office templates |
| Staff Management | Complete 6-tab employee profiles with skills and preferences |
| Shift Scheduling | Room-based calendar with drag-drop and conflict detection |
| Time Tracking | Clock in/out, breaks, timesheet submission |
| Leave Management | Request, approve, and track leave with balance tracking |
| Reporting | 9 report types with caching and export options |
| Multi-Tenancy | Secure company isolation with Row Level Security |
Documentation Sections
For Developers
Getting Started
Set up your local development environment and run CFlow for the first time.
Architecture
Understand the system design, technology stack, and architectural patterns.
API Reference
Complete documentation for all 68 API endpoints with examples.
Database
38 tables documented with relationships and Row Level Security policies.
For Operations
Deployment
Production deployment guides for Vercel and Supabase.
Security
Authentication, authorization, and data protection documentation.
User Roles
CFlow supports three distinct user roles:
| Role | Responsibilities |
|---|---|
| System Admin | Platform management, company creation, user oversight |
| Company Manager | Staff, scheduling, leave, time tracking, reports |
| Staff | Personal schedule, timesheet, leave requests |
Quick Links
- User Guides - Step-by-step guides for all user roles
- API Reference - Complete endpoint documentation
- Database Schema - Data model reference
- Deployment Guide - Production setup
Need Help?
- Technical Issues: Check our troubleshooting guides
- Bug Reports: GitHub Issues
- Contact: support@cflow.aidocassist.io
Built with Next.js 14, Supabase, and TypeScript for UK-compliant workforce management.