view IndexPlugin/PostgreSQLVersion5.sql @ 146:11c4f0a4b647

Fix issue #63 (allow to connect without specifing username and/or port)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Aug 2017 20:26:07 +0200
parents f6ca4c202c1a
children
line wrap: on
line source

CREATE TABLE Resources(
       internalId BIGSERIAL NOT NULL PRIMARY KEY,
       resourceType INTEGER NOT NULL,
       publicId VARCHAR(64) NOT NULL,
       parentId BIGINT REFERENCES Resources(internalId) ON DELETE CASCADE
       );

CREATE TABLE MainDicomTags(
       id BIGINT REFERENCES Resources(internalId) ON DELETE CASCADE,
       tagGroup INTEGER,
       tagElement INTEGER,
       value BYTEA,
       PRIMARY KEY(id, tagGroup, tagElement)
       );

CREATE TABLE DicomIdentifiers(
       id BIGINT REFERENCES Resources(internalId) ON DELETE CASCADE,
       tagGroup INTEGER,
       tagElement INTEGER,
       value BYTEA,
       PRIMARY KEY(id, tagGroup, tagElement)
       );