Skip to content

Commit adfde14

Browse files
committed
feat: added new decision record for sql persitance
1 parent b83dac5 commit adfde14

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!--
2+
3+
Eclipse Tractus-X - Software Development KIT
4+
5+
Copyright (c) 2025 Contributors to the Eclipse Foundation
6+
7+
See the NOTICE file(s) distributed with this work for additional
8+
information regarding copyright ownership.
9+
10+
This work is made available under the terms of the
11+
Creative Commons Attribution 4.0 International (CC-BY-4.0) license,
12+
which is available at
13+
https://creativecommons.org/licenses/by/4.0/legalcode.
14+
15+
SPDX-License-Identifier: CC-BY-4.0
16+
17+
-->
18+
19+
# 4. Data Storage Persistence Architecture
20+
21+
Date: 2025-02-20
22+
23+
## Status
24+
25+
Accepted
26+
27+
## Context
28+
29+
The persistence storage will be done in SQL probably using PostgreSQL.
30+
31+
It is required to agree in a data model, therefore it was proposed by @sm29105 to take his example as a start:
32+
33+
![alt text](media/datamodel-persistance.png)
34+
35+
## Decision
36+
37+
Use a SQL database for the industry core hub backend, so we can perform queries very fast and do complicated queries.
38+
39+
Is important to note that the data model still need to be aligned. It was decided it will store just "Metadata" from the products and the relationships knowing where everything is registered and with each permission.
40+
41+
It will be called "Metadata Registry" an will support the backend to use the different systems with the Tractus-X SDK which will not have persitance. Decided here: https://github.com/eclipse-tractusx/tractusx-sdk/blob/main/docs/architecture/decision-records/0002-data-storage-architecture.md
42+
43+
PostgreSQL will be used as database.
44+
45+
## Consequences
46+
47+
- Clear relational model need to be created.
48+
- Requires a second "service" to be maintained and updated over the time, using postgresql will require us to do this maintainance.
88.2 KB
Loading
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## NOTICE
2+
3+
This work is licensed under the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/legalcode).
4+
5+
- SPDX-License-Identifier: CC-BY-4.0
6+
- SPDX-FileCopyrightText: 2025 DRÄXLMAIER Group (represented by Lisa Dräxlmaier GmbH)
7+
- SPDX-FileCopyrightText: 2025 Contributors to the Eclipse Foundation
8+
- Source URL: https://github.com/eclipse-tractusx/industry-core-hub
9+
10+
## AUTHORS
11+
12+
- [Michael Scholz](https://github.com/sm29105)

0 commit comments

Comments
 (0)