| 1 | # SQL Policy Store |
| 2 | |
| 3 | Provides SQL persistence for policies. |
| 4 | |
| 5 | Note that the SQL statements (DDL) are specific to and only tested with PostgreSQL. Using it with other RDBMS may work |
| 6 | but might have unexpected side effects! |
| 7 | |
| 8 | ## Prerequisites |
| 9 | |
| 10 | Please apply this [schema](src/main/resources/policy-definition-schema.sql) to your SQL database. |
| 11 | |
| 12 | ## Entity Diagram |
| 13 | |
| 14 |  |
| 15 | <!-- |
| 16 | ```plantuml |
| 17 | @startuml |
| 18 | entity edc_policydefinitions { |
| 19 | * policy_id: string <<PK>> |
| 20 | -- |
| 21 | * access_policy: string <<json>> |
| 22 | * contract_policy: string <<json>> |
| 23 | * assets_selector: string <<json>> |
| 24 | * permissions: string <<json>> |
| 25 | * prohibitions: string <<json>> |
| 26 | * duties: string <<json>> |
| 27 | * extensible_properties: string <<json>> |
| 28 | * inherits_from: string |
| 29 | * assigner: string |
| 30 | * assignee: string |
| 31 | * target: string |
| 32 | * policy_type: string <<json>> |
| 33 | } |
| 34 | @enduml |
| 35 | ``` |
| 36 | --> |