add storage and mux handle with handlers
This commit is contained in:
1
storage/migrations/postgres/000001_init_schema.down.sql
Normal file
1
storage/migrations/postgres/000001_init_schema.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table if exists dashboard, package, module, issue, comment;
|
37
storage/migrations/postgres/000001_init_schema.up.sql
Normal file
37
storage/migrations/postgres/000001_init_schema.up.sql
Normal file
@@ -0,0 +1,37 @@
|
||||
create table if not exists dashboard (
|
||||
id serial not null unique primary key ,
|
||||
"uniq_id" uuid not null unique default gen_random_uuid() ,
|
||||
package integer
|
||||
);
|
||||
|
||||
create table if not exists comment (
|
||||
id serial not null unique primary key ,
|
||||
text text ,
|
||||
created timestamp not null default current_timestamp ,
|
||||
updated timestamp
|
||||
);
|
||||
|
||||
create table if not exists module (
|
||||
id serial not null unique primary key ,
|
||||
name varchar not null ,
|
||||
version varchar not null
|
||||
);
|
||||
|
||||
create table if not exists issue (
|
||||
id serial not null unique primary key ,
|
||||
--package integer references package(id) ,
|
||||
modules integer[] ,
|
||||
status integer default 0 ,
|
||||
"desc" varchar
|
||||
);
|
||||
|
||||
create table if not exists package (
|
||||
id serial not null unique primary key ,
|
||||
name varchar not null ,
|
||||
url varchar ,
|
||||
modules integer[] ,
|
||||
issues integer[] ,
|
||||
comments integer[]
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user