Skip to main content
Production-ready SQL reports for facility management, event coordination, and ministry planning.

Query Requirements

Schema Prefix

IMPORTANT: All tables in the Planning Center Calendar module live in the planning_center schema. Always prefix table names with planning_center. in every query. ✅ CORRECT: SELECT * FROM planning_center.calendar_events ❌ INCORRECT: SELECT * FROM calendar_events

Row Level Security (RLS)

Row Level Security automatically handles:
  • tenant_organization_id – restricts results to your organization
  • system_status – returns active records by default
Do not add these filters manually—RLS already enforces them and redundant predicates can hide data or slow performance:
  • WHERE tenant_organization_id = 1
  • WHERE system_status = 'active'
Keep your focus on scheduling windows, resource capacity, and approval states while trusting RLS for tenancy and status.

Table of Contents

Executive Dashboard Reports

Weekly Ministry Overview

A comprehensive snapshot for leadership meetings:

Monthly Activity Metrics

Facility Management Reports

Room Utilization Report

Maintenance Schedule Windows

Event Coordination Reports

Event Setup Requirements

Recurring Event Consistency Report

Resource Utilization Reports

Non-Room Resource Usage Analysis

Peak Usage Heatmap Data

Conflict and Compliance Reports

Resource Conflict Report

Approval Workflow Status

Ministry Planning Reports

Annual Ministry Calendar

Export-Ready Reports

CSV Export for Facility Schedule

Report Best Practices

1. Performance Optimization

  • Use date filters early in WHERE clauses
  • Create indexes on frequently filtered columns
  • Consider materialized views for complex reports

2. Data Accuracy

  • Always check approval_status for confirmed events
  • Account for all-day events in date calculations
  • Handle NULL values in optional fields

3. User Experience

  • Include visual indicators (emojis/symbols) for status
  • Format dates and times for readability
  • Provide actionable recommendations

4. Report Scheduling

  • Executive dashboards: Weekly
  • Utilization reports: Monthly
  • Conflict reports: Daily or as-needed
  • Planning reports: Quarterly

Next Steps