# adelaidemnrd/cadentia architecture

> Architecture diagram of the GitHub repository adelaidemnrd/cadentia, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/adelaidemnrd/cadentia
- Repository: https://github.com/adelaidemnrd/cadentia

## Overview

Cadentia’s only source file contains an entity-relationship diagram, not executable application logic. It describes a data model for establishments and customer interactions, products and pricing, sales simulations and actual sales, commercial targets, and field feedback and gifting. The README provides no further workflow or capabilities, so this graph represents documented schema relationships rather than a user-to-result runtime flow; no implementation beyond this model is evidenced.

Main entry points: [`main.c`](https://github.com/adelaidemnrd/cadentia/blob/main/main.c) (Products and ranges)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_crm["Establishments and CRM"]
  node_establishments["Establishments and brands<br/>[main.c]"]
  node_crm_records["Contacts and interactions<br/>[main.c]"]
end

subgraph group_catalog["Products and pricing"]
  node_catalog["Products and ranges<br/>[main.c]"]
  node_pricing["Pricing and margins<br/>[main.c]"]
end

subgraph group_sales["Sales and commissions"]
  node_sales["Simulations and sales<br/>[main.c]"]
  node_commissions["Commission rates<br/>[main.c]"]
end

subgraph group_operations["Commercial operations"]
  node_targets["Commercial targets<br/>[main.c]"]
  node_field_ops["Feedback and gifting<br/>[main.c]"]
  node_influencers["Influencers<br/>[main.c]"]
end

node_establishments -->|"has records"| node_crm_records
node_establishments -->|"tracks sales assortment"| node_catalog
node_establishments -->|"associated with"| node_sales
node_establishments -->|"associated with"| node_field_ops
node_catalog -->|"has pricing rules"| node_pricing
node_catalog -->|"referenced by"| node_sales
node_catalog -->|"group rates"| node_commissions
node_catalog -->|"referenced by gifting"| node_field_ops

click node_establishments "https://github.com/adelaidemnrd/cadentia/blob/main/main.c"
click node_crm_records "https://github.com/adelaidemnrd/cadentia/blob/main/main.c"
click node_catalog "https://github.com/adelaidemnrd/cadentia/blob/main/main.c"
click node_pricing "https://github.com/adelaidemnrd/cadentia/blob/main/main.c"
click node_sales "https://github.com/adelaidemnrd/cadentia/blob/main/main.c"
click node_commissions "https://github.com/adelaidemnrd/cadentia/blob/main/main.c"
click node_targets "https://github.com/adelaidemnrd/cadentia/blob/main/main.c"
click node_field_ops "https://github.com/adelaidemnrd/cadentia/blob/main/main.c"
click node_influencers "https://github.com/adelaidemnrd/cadentia/blob/main/main.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_establishments,node_crm_records toneBlue
class node_catalog,node_pricing toneAmber
class node_sales,node_commissions toneMint
class node_targets,node_field_ops,node_influencers toneRose
```

## Components

### Establishments and CRM

- [Establishments and brands](https://github.com/adelaidemnrd/cadentia/blob/main/main.c): `main.c`
- [Contacts and interactions](https://github.com/adelaidemnrd/cadentia/blob/main/main.c): `main.c`

### Products and pricing

- [Products and ranges](https://github.com/adelaidemnrd/cadentia/blob/main/main.c): `main.c`
- [Pricing and margins](https://github.com/adelaidemnrd/cadentia/blob/main/main.c): `main.c`

### Sales and commissions

- [Simulations and sales](https://github.com/adelaidemnrd/cadentia/blob/main/main.c): `main.c`
- [Commission rates](https://github.com/adelaidemnrd/cadentia/blob/main/main.c): `main.c`

### Commercial operations

- [Commercial targets](https://github.com/adelaidemnrd/cadentia/blob/main/main.c): `main.c`
- [Feedback and gifting](https://github.com/adelaidemnrd/cadentia/blob/main/main.c): `main.c`
- [Influencers](https://github.com/adelaidemnrd/cadentia/blob/main/main.c): `main.c`

## Connections

- Establishments and brands → Contacts and interactions: has records (evidence: `main.c`)
- Establishments and brands → Products and ranges: tracks sales assortment (evidence: `main.c`)
- Establishments and brands → Simulations and sales: associated with (evidence: `main.c`)
- Establishments and brands → Feedback and gifting: associated with (evidence: `main.c`)
- Products and ranges → Pricing and margins: has pricing rules (evidence: `main.c`)
- Products and ranges → Simulations and sales: referenced by (evidence: `main.c`)
- Products and ranges → Commission rates: group rates (evidence: `main.c`)
- Products and ranges → Feedback and gifting: referenced by gifting (evidence: `main.c`)
