| 1 | /* |
| 2 | * Copyright (c) 2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG) |
| 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 | * Bayerische Motoren Werke Aktiengesellschaft (BMW AG) - initial API and implementation |
| 12 | * |
| 13 | */ |
| 14 | |
| 15 | -- Statements are designed for and tested with Postgres only! |
| 16 | |
| 17 | CREATE TABLE IF NOT EXISTS edc_accesstokendata |
| 18 | ( |
| 19 | id VARCHAR NOT NULL PRIMARY KEY, |
| 20 | claim_token JSON NOT NULL, |
| 21 | data_address JSON NOT NULL, |
| 22 | additional_properties JSON DEFAULT '{}' |
| 23 | ); |
| 24 | |
| 25 | COMMENT ON COLUMN edc_accesstokendata.claim_token IS 'ClaimToken serialized as JSON map'; |
| 26 | COMMENT ON COLUMN edc_accesstokendata.data_address IS 'DataAddress serialized as JSON map'; |
| 27 | COMMENT ON COLUMN edc_accesstokendata.additional_properties IS 'Optional Additional properties serialized as JSON map'; |