Skip to content

Commit e2bd747

Browse files
author
Dennis Labordus
committed
Describe the definition of the table in PostgreSQL.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent a51ebec commit e2bd747

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ Service to store and retrieve the SCL XML to a database.
1616

1717
In the standard configuration this component is using Quarkus to run and create a native image from it. The different
1818
parts of this repository can also be used separately in your own component to manage SCL XML Files in a database. The
19-
Service Layer can be used as Java component to manage them.
19+
Service Layer can be used as Java component to manage them. For more information about the architecture go
20+
to [documentation](doc/compas-scl-data-service.md).
2021

21-
For more information about the architecture take a look at [documentation](doc/compas-scl-data-service.md)
22+
There are currently two database implementations available.
23+
24+
- For more information about the PostgreSQL Implementation go to [PostgreSQL](doc/postgresql.md).
2225

2326
## Application depends on a running BaseX instance
2427

doc/postgresql.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2021 Alliander N.V.
3+
4+
SPDX-License-Identifier: Apache-2.0
5+
-->
6+
7+
# PostgreSQL Implementation
8+
9+
## Database Model
10+
11+
For the SCL Data Service the following table is automatically created using FlyWay.
12+
13+
Table: scl_file
14+
15+
| Column | Type | Description |
16+
| ----------------- | -------------------- | ------------------------------------------------------------------ |
17+
| ID | uuid | Unique ID generated according to standards |
18+
| VERSION | varchar(20) | Versioning according to [Semantic Versioning](https://semver.org/) |
19+
| TYPE | varchar(3) | The type of SCL stored |
20+
| NAME | varchar(255) | The name of the SCL File |
21+
| SCL_DATA | text | The SCL XML Content |

0 commit comments

Comments
 (0)