create table if not exists dashboard (
    id integer primary key autoincrement not null ,
    "uuid" uuid not null unique ,
    package integer[] default '{}'
);

create table if not exists comment (
    id integer primary key autoincrement not null ,
    "text" text ,
    created timestamp not null default current_timestamp ,
    updated timestamp
);

create table if not exists module (
    id integer primary key autoincrement not null ,
    name varchar not null ,
    version varchar not null ,
    last_version varchar not null
);

create table if not exists issue (
    id serial not null unique primary key ,
    --package integer references package(id) ,
    modules integer[] default '[]',
    status integer default 0 ,
    "desc" varchar
);

create table if not exists package (
    id integer primary key autoincrement not null ,
    name varchar not null ,
    url varchar ,
    modules integer[] default '[]',
    issues integer[] default '[]',
    comments integer[] default '[]'
);


