# hmzask/sap-btp_capm_project architecture

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

- Interactive diagram: https://gitdiagram.com/hmzask/sap-btp_capm_project
- Repository: https://github.com/hmzask/sap-btp_capm_project

## Overview

This is a small SAP CAP project modeling business-partner, product, employee, and purchase-order data, with CDS service definitions. The README describes `db/` as the domain-model and data area and `srv/` as the service-model area. The file contents were not excerpted, so the links between these layers are shown as unverified; the precise service behavior and runtime flow cannot be established from the available evidence.

Main entry points: [`db/datamodel.cds`](https://github.com/hmzask/sap-btp_capm_project/blob/Main/db/datamodel.cds) (Domain entities), [`srv/CatalogService.cds`](https://github.com/hmzask/sap-btp_capm_project/blob/Main/srv/CatalogService.cds) (Catalog service), [`srv/CDSservice.cds`](https://github.com/hmzask/sap-btp_capm_project/blob/Main/srv/CDSservice.cds) (Service definitions), [`db/csv`](https://github.com/hmzask/sap-btp_capm_project/tree/Main/db/csv) (Master data CSVs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_domain["Domain model"]
  node_datamodel["Domain entities<br/>[datamodel.cds]"]
  node_commons["Common types<br/>[my-commons.cds]"]
  node_views["CDS views<br/>[CDSviews.cds]"]
end

subgraph group_services["CAP services"]
  node_catalog["Catalog service<br/>[CatalogService.cds]"]
  node_service["Service definitions<br/>[CDSservice.cds]"]
end

subgraph group_seed["Seed data"]
  node_masterdata["Master data CSVs"]
  node_ordersdata["Purchase order CSVs"]
  node_currencies["Currency CSVs"]
end

node_catalog -.->|"may expose"| node_datamodel
node_service -.->|"may expose"| node_datamodel
node_masterdata -.->|"may seed"| node_datamodel
node_ordersdata -.->|"may seed"| node_datamodel
node_currencies -.->|"may seed"| node_datamodel

click node_datamodel "https://github.com/hmzask/sap-btp_capm_project/blob/Main/db/datamodel.cds"
click node_commons "https://github.com/hmzask/sap-btp_capm_project/blob/Main/db/my-commons.cds"
click node_views "https://github.com/hmzask/sap-btp_capm_project/blob/Main/db/CDSviews.cds"
click node_catalog "https://github.com/hmzask/sap-btp_capm_project/blob/Main/srv/CatalogService.cds"
click node_service "https://github.com/hmzask/sap-btp_capm_project/blob/Main/srv/CDSservice.cds"
click node_masterdata "https://github.com/hmzask/sap-btp_capm_project/tree/Main/db/csv"
click node_ordersdata "https://github.com/hmzask/sap-btp_capm_project/tree/Main/db/csv"
click node_currencies "https://github.com/hmzask/sap-btp_capm_project/tree/Main/db/csv"

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_datamodel,node_commons,node_views toneBlue
class node_catalog,node_service toneAmber
class node_masterdata,node_ordersdata,node_currencies toneMint
```

## Components

### Domain model

- [Domain entities](https://github.com/hmzask/sap-btp_capm_project/blob/Main/db/datamodel.cds): `db/datamodel.cds`
- [Common types](https://github.com/hmzask/sap-btp_capm_project/blob/Main/db/my-commons.cds): `db/my-commons.cds`
- [CDS views](https://github.com/hmzask/sap-btp_capm_project/blob/Main/db/CDSviews.cds): `db/CDSviews.cds`

### CAP services

- [Catalog service](https://github.com/hmzask/sap-btp_capm_project/blob/Main/srv/CatalogService.cds): `srv/CatalogService.cds`
- [Service definitions](https://github.com/hmzask/sap-btp_capm_project/blob/Main/srv/CDSservice.cds): `srv/CDSservice.cds`

### Seed data

- [Master data CSVs](https://github.com/hmzask/sap-btp_capm_project/tree/Main/db/csv): `db/csv`
- [Purchase order CSVs](https://github.com/hmzask/sap-btp_capm_project/tree/Main/db/csv): `db/csv`
- [Currency CSVs](https://github.com/hmzask/sap-btp_capm_project/tree/Main/db/csv): `db/csv`

## Connections

- Catalog service → Domain entities: may expose
- Service definitions → Domain entities: may expose
- Master data CSVs → Domain entities: may seed
- Purchase order CSVs → Domain entities: may seed
- Currency CSVs → Domain entities: may seed
