dc.identity-hub-participantcontext-store-sql.0.10.1.source-code.participant-schema.sql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of identity-hub-participantcontext-store-sql Show documentation
Show all versions of identity-hub-participantcontext-store-sql Show documentation
edc :: identity-hub-participantcontext-store-sql
The newest version!
/*
* Copyright (c) 2024 Metaform Systems, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* Metaform Systems, Inc. - initial API and implementation
*
*/
-- only intended for and tested with Postgres!
CREATE TABLE IF NOT EXISTS participant_context
(
participant_id VARCHAR PRIMARY KEY NOT NULL, -- ID of the ParticipantContext
created_date BIGINT NOT NULL, -- POSIX timestamp of the creation of the PC
last_modified_date BIGINT, -- POSIX timestamp of the last modified date
state INTEGER NOT NULL, -- 0 = CREATED, 1 = ACTIVE, 2 = DEACTIVATED
api_token_alias VARCHAR NOT NULL, -- alias under which this PC's api token is stored in the vault
did VARCHAR, -- the DID with which this participant is identified
roles JSON -- JSON array containing all the roles a user has. may be empty
);
CREATE UNIQUE INDEX IF NOT EXISTS participant_context_participant_id_uindex ON participant_context USING btree (participant_id);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy