Elffuss BraidHub

kikocis/EonaX-Shared-Resources public

main · 1.0 KiBRawPermalink
1--
2-- Copyright (c) 2022 - 2023 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-- Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - improvements
13--
14
15-- THIS SCHEMA HAS BEEN WRITTEN AND TESTED ONLY FOR POSTGRES
16
17-- table: edc_asset
18CREATE TABLE IF NOT EXISTS edc_asset
19(
20 asset_id VARCHAR NOT NULL,
21 created_at BIGINT NOT NULL,
22 properties JSON DEFAULT '{}',
23 private_properties JSON DEFAULT '{}',
24 data_address JSON DEFAULT '{}',
25 PRIMARY KEY (asset_id)
26);
27
28COMMENT ON COLUMN edc_asset.properties IS 'Asset properties serialized as JSON';
29COMMENT ON COLUMN edc_asset.private_properties IS 'Asset private properties serialized as JSON';
30COMMENT ON COLUMN edc_asset.data_address IS 'Asset DataAddress serialized as JSON';