setup/postgres/psql_create_tables.sql

Sat, 16 May 2020 11:37:57 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 16 May 2020 11:37:57 +0200
changeset 50
2a90d105edec
parent 37
fecda0f466e6
child 62
833e0385572a
permissions
-rw-r--r--

adds lookup-name to web.xml resource reference and removes custom JNDI context parameter

also removes jstl-impl from compile time dependencies - tomcat users must provide the library manually

-- This script creates the module management tables
--

create table lpit_user (
    userid          serial          primary key,
    username        varchar(50)     not null unique,
    mail            varchar(50),
    lastname        varchar(50),
    givenname       varchar(50)
);

create table lpit_project (
    id              serial          primary key,
    name            varchar(20)     not null unique,
    description     varchar(200),
    repoUrl         varchar(50),
    owner           integer         references lpit_user(userid)
);

create type version_status as enum (
    'Future',
    'Unreleased',
    'Released',
    'LTS',
    'Deprecated'
);

create table lpit_version (
    id              serial          primary key,
    project         integer         not null references lpit_project(id),
    name            varchar(20)     not null,
    ordinal         integer         not null default 0,
    status          version_status  not null default 'Future'
);

mercurial