blob: 3597324ec763004e32fba2be776c00da9eccbfc4 [file] [log] [blame]
liamfallonc9e27902019-05-28 13:27:04 +00001@startuml
2
3title Indicative Database Layout
4
5!define table(x) class x << (T,#FFAAAA) >>
6!define primary_key(x) <u>x</u>
7hide methods
8hide stereotypes
9
10table(PDP_SUBGROUP) {
11 primary_key(PDP_SUBGROUP_ID)
12 PDP_SUBGROUP_NAME
13 PDP_SUBGROUP_VERSION
14 PDP_TYPE
15 PDP_SERVICE_ENDPOINT
16 POLICY_SET_ID
17 PDP_SUBGROUP_STATE
18}
19
20table(PDP) {
21 primary_key(PDP_ID)
22 PDP_NAME
23 PDP_VERSION
24 PDP_TYPE
25 PDP_ENDPOINT
26 PDP_SUBGROUP_ID
27 POLICY_SET_ID PDP_STATE
28}
29
30table(POLICY_SET) {
31 primary_key(POLICY_SET_ID)
32 POLICY_SET_NAME
33 POLICY_SET_VERSION
34}
35
36table(POLICY_TYPE_IMPL) {
37 primary_key(POLICY_TYPE_IMPL_ID)
38 POLICY_NAME
39 POLICY_VERSION
40 PDP_TYPE POLICY_ARTIFACT
41}
42
43table(POLICY_SET_TO_POLICY_TYPE_IMPL) {
44 POLICY_SET_ID
45 POLICY_TYPE_IMPL_ID
46}
47
48PDP_SUBGROUP::POLICY_SET_ID --> POLICY_SET::POLICY_SET_ID
49PDP::PDP_SUBGROUP_ID --> PDP_SUBGROUP::PDP_SUBGROUP_ID
50PDP::POLICY_SET_ID --> POLICY_SET::POLICY_SET_ID
51POLICY_SET_TO_POLICY_TYPE_IMPL::POLICY_SET_ID --> POLICY_SET::POLICY_SET_ID
52POLICY_SET_TO_POLICY_TYPE_IMPL::POLICY_TYPE_IMPL_ID --> POLICY_TYPE_IMPL::POLICY_TYPE_IMPL_ID
53
54@enduml