COMMENTONTABLE"DatasetProfileViewstyle"IS'Style sets for dmp dataset profiles';
CREATETABLE"Organisation"(
"ID"uuidDEFAULTuuid_generate_v4()NOTNULL,
"Label"charactervarying(250)NOTNULL,
"Abbreviation"charactervarying(50),
"Reference"xml,
"Uri"charactervarying(250),
"Status"smallintnotnulldefault0,
"Created"timestampnotnulldefaultNOW(),
"Modified"timestampnotnulldefaultNOW(),
"Definition"xml
);
ALTERTABLE"Organisation"OWNERTO:POSTGRES_USER;
COMMENTONTABLE"Organisation"IS'Table of organizations utilized in the project';
COMMENTONCOLUMN"Organisation"."ID"IS'Unique identifier and primary key of item';
COMMENTONCOLUMN"Organisation"."Label"IS'A human readable long label of the item';
COMMENTONCOLUMN"Organisation"."Abbreviation"IS'A human readable abbreviation of the item';
COMMENTONCOLUMN"Organisation"."Reference"IS'Reference to the URI of the item along with information to allow how the item reached the system (e.g. via an external vocabulary)';
COMMENTONCOLUMN"Organisation"."Uri"IS'URI of item';
COMMENTONCOLUMN"Organisation"."Definition"IS'More data about the Organisation such as web site, type etc';
CREATETABLE"Project"(
"ID"uuidDEFAULTuuid_generate_v4()NOTNULL,
"Label"charactervarying(250)NOTNULL,
"Abbreviation"charactervarying(50),
"Reference"xml,
"Uri"charactervarying(250),
"CreationUser"uuidnotnull,
"Status"smallintnotnulldefault0,
"Created"timestampnotnulldefaultNOW(),
"Modified"timestampnotnulldefaultNOW(),
"StartDate"timestamp,
"EndDate"timestamp,
"Description"text,
"Definition"xml
);
ALTERTABLE"Project"OWNERTO:POSTGRES_USER;
COMMENTONTABLE"Project"IS'Table of project managed in the system';
COMMENTONCOLUMN"Project"."ID"IS'Unique identifier and primary key of item';
COMMENTONCOLUMN"Project"."Label"IS'A human readable long label of the item';
COMMENTONCOLUMN"Project"."Abbreviation"IS'A human readable abbreviation of the item';
COMMENTONCOLUMN"Project"."Reference"IS'Additional reference data for the item along with information to allow how the item reached the system (e.g. via an external vocabulary)';
COMMENTONCOLUMN"Project"."Uri"IS'URI of item';
COMMENTONCOLUMN"Project"."Definition"IS'More data about the project such as web site, start/stop, etc';
CREATETABLE"Researcher"(
"ID"uuidDEFAULTuuid_generate_v4()NOTNULL,
"Label"charactervarying(250)NOTNULL,
"Uri"charactervarying(250),
"PrimaryEmail"charactervarying(250),
"Definition"xml,
"Status"smallintnotnulldefault0,
"Created"timestampnotnulldefaultNOW(),
"Modified"timestampnotnulldefaultNOW(),
"Reference"xml
);
ALTERTABLE"Researcher"OWNERTO:POSTGRES_USER;
COMMENTONTABLE"Researcher"IS'Table of Researcher managed in the system';
COMMENTONCOLUMN"Researcher"."ID"IS'Unique identifier and primary key of item';
COMMENTONCOLUMN"Researcher"."Label"IS'Full name of the researcher (as presented by the system, and composed automatically by data or provided by the reference service)';
COMMENTONCOLUMN"Researcher"."Uri"IS'URI of item';
COMMENTONCOLUMN"Researcher"."Definition"IS'More data about the researcher such as: email addresses, affiliations etc';
COMMENTONCOLUMN"Researcher"."Reference"IS'Additional reference data for the item along with information to allow how the item reached the system (e.g. via an external vocabulary)';
COMMENTONCOLUMN"UserInfo"."authorization_level"IS'This stores the authorization level of the user: 0 admin, 1 user, being able to be extended furthermore';
COMMENTONCOLUMN"UserInfo"."usertype"IS'This stores the type of user: 0 -> internal, 1 external';