Elffuss BraidHub

kikocis/EonaX-Shared-Resources public

main · 906 BRawPermalink
1--
2-- Copyright (c) 2022 Daimler TSS GmbH
3--
4-- This program and the accompanying materials are made available under the
5-- terms of the Apache License, Version 2.0 which is available at
6-- https://www.apache.org/licenses/LICENSE-2.0
7--
8-- SPDX-License-Identifier: Apache-2.0
9--
10-- Contributors:
11-- Daimler TSS GmbH - Initial SQL Query
12-- Microsoft Corporation - refactoring
13-- SAP SE - add private properties to contract definition
14--
15
16-- table: edc_contract_definitions
17-- only intended for and tested with H2 and Postgres!
18CREATE TABLE IF NOT EXISTS edc_contract_definitions
19(
20 created_at BIGINT NOT NULL,
21 contract_definition_id VARCHAR NOT NULL,
22 access_policy_id VARCHAR NOT NULL,
23 contract_policy_id VARCHAR NOT NULL,
24 assets_selector JSON NOT NULL,
25 private_properties JSON,
26 PRIMARY KEY (contract_definition_id)
27);