-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconsole.sql
58 lines (58 loc) · 1.37 KB
/
console.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
create table report
(
id bigint generated by default as identity,
description varchar(255),
name varchar(255),
primary key (id)
);
create table report_field
(
id bigint generated by default as identity,
report bigint,
description varchar(255),
name varchar(255),
primary key (id)
);
create table report_image
(
id bigint generated by default as identity,
description varchar(255),
name varchar(255),
relative_path varchar(255),
primary key (id)
);
create table report_image_linker
(
image bigint not null,
report bigint not null,
primary key (image, report)
);
create table report_locale
(
id bigint generated by default as identity,
template_path varchar(255),
content varchar(255),
primary key (id)
);
create table report_locale_linker
(
locale bigint not null,
report bigint not null,
primary key (locale, report)
);
create table report_table_column
(
id bigint generated by default as identity,
report_table_id bigint,
description varchar(255),
name varchar(255),
primary key (id)
);
create table report_table
(
id bigint generated by default as identity,
report bigint,
description varchar(255),
name varchar(255),
primary key (id)
);