Skip to main content

Insights API Datamodel

This documentation covers all tables available through the Simplicate SQL API, which is accessible via a PostgreSQL protocol compatible interface.

Purpose

These tables are designed to connect Simplicate data to BI tooling such as Power BI, Tableau, and other analytics platforms.

Important Notice

⚠️ Deprecation Notice - Wednesday, January 7th, 2025

Fields without aliases (typically prefixed with key_ or using internal naming conventions) will be deprecated on Wednesday, January 7th, 2025.

Please migrate your queries to use the recommended field names as documented in each table's documentation. Since metadata is not available through the SQL API, this documentation is the primary reference for field naming.

Available Tables

Dimension Tables

TableDescription
api_administrationsCompany entities/business units
api_employeesEmployee data
api_teamsTeam data
api_teams_to_employees_bridgeTeam-Employee relationships
api_relationsCustomers and contacts
api_projectsProject data
api_project_servicesProject service data
api_project_assignmentsProject assignments
api_salesSales/opportunities
api_invoicesInvoice headers
api_invoicelinesInvoice line items
api_item_typesHour types and cost types
api_revenuegroupsRevenue group categories
api_workflowsWorkflow tasks

Fact Tables

TableDescription
api_time_registrationsIndividual time entries
api_employee_timesheetDaily timesheet aggregates
api_project_assignments_factsAssignment hours and values over time
api_project_service_date_factsDaily service financials
api_project_service_costsCost registrations
api_project_service_hour_budgetsHour budgets per service
api_project_service_cost_budgetsCost budgets per service

Custom Fields Tables

TableDescription
api_relation_custom_fieldsRelation custom fields
api_project_custom_fieldsProject custom fields
api_sale_custom_fieldsSale custom fields
api_employee_custom_fieldsEmployee custom fields

Field Naming Conventions

  • Use descriptive names without key_ prefix
  • Primary keys: {entity}_id (e.g., project_id, employee_id)
  • Foreign keys: {related_entity}_id (e.g., relation_id, administration_id)

Deprecated Fields (Do Not Use After January 7th, 2025)

  • Fields with key_ prefix (e.g., key_project_id)
  • Fields using internal naming (e.g., employee_name instead of employee)