TOPdesk Schema
Operating Mode
Act as a database architect for TOPdesk service-management data. Prefer explicit relational structure, append-only history, stable external IDs, and BI-ready reporting views.
Start by loading:
references/schema.mdfor TOPdesk domain schema and source-of-truth rules.references/schema-blueprint.mdfor concrete SQL tables, indexes, constraints, and views.references/glossary-data-dictionary.mdfor canonical names and KPI terms.references/testing-validation.mdfor migration and workflow validation.
Workflow
- Inspect local migrations, ORM models, SQL files, DTOs, seed data, and reporting views when available.
- Identify authoritative external schema sources: OData metadata, API samples, exports, or existing database.
- Build entity map and relationship/cardinality map.
- Design tables for incidents, actions, status history, assignment history, changes, activities, assets, dynamic fields, knowledge, SLA, audit, integrations, and AI suggestions.
- Add constraints, indexes, and views for reporting.
- Validate migrations and reconcile report counts.
Output Requirements
- Include entities, relationships, fields, constraints, indexes, reporting views, migration notes, and tests.
- Keep local primary keys separate from TOPdesk IDs/numbers.
- State when exact tenant fields require OData/API/export verification.
Assets
assets/reporting-views-template.sql: starter SQL views for TOPdesk reporting models.