Skip to main content
This document provides a reference for all database tables in the Forms & Workflow (FW) module.

Table Naming Convention

All FW tables use the fw_ prefix following the platform convention.

Core Tables

Forms

Submissions

Workflow Definitions

Automation

Analytics & Testing

Common Query Patterns

Get Active Forms Count

Get Recent Submissions

Get Active Automations

Get Pending Approvals

Get Workflow Executions (Last 24 Hours)

Important Notes

  1. Table Naming: Use fw_automation_rules for automation rules, NOT fw_workflows
  2. Workflow Definitions: Use fw_workflow_definitions for workflow structures
  3. Executions: Use fw_workflow_executions for runtime execution data
  4. Multi-tenancy: All queries must include organization_id filter