-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy path10_schema.sql
More file actions
127 lines (103 loc) · 2.64 KB
/
Copy path10_schema.sql
File metadata and controls
127 lines (103 loc) · 2.64 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
-- auto-generated definition
create table jobs
(
id serial not null,
guid varchar(128) not null
constraint jobs_pk
primary key,
preset varchar(128) not null,
created_date timestamp default CURRENT_TIMESTAMP,
status varchar(64),
source varchar(128),
destination varchar(128)
);
alter table jobs
owner to postgres;
create unique index jobs_id_uindex
on jobs (id);
create unique index jobs_guid_uindex
on jobs (guid);
create index jobs_status_index
on jobs (status);
-- auto-generated definition
create table encode
(
id serial not null
constraint encode_pkey
primary key,
probe json,
progress double precision default 0,
job_id integer
constraint encode_jobs_id_fk
references jobs (id),
speed varchar(64),
fps double precision default 0,
options json
);
alter table encode
owner to postgres;
create unique index encode_id_uindex
on encode (id);
-- auto-generated definition
create table users
(
id serial not null,
username varchar(128) not null
constraint user_pkey
primary key,
password varchar(128) not null,
role varchar(64),
force_password_reset boolean default false,
active boolean default true
);
alter table users
owner to postgres;
create unique index user_id_uindex
on users (id);
create unique index user_username_uindex
on users (username);
-- auto-generated definition
create table settings_option
(
id serial not null,
name varchar(64),
description varchar(1024),
title varchar(64),
secure boolean default false
);
alter table settings_option
owner to postgres;
create unique index settings_option_id_uindex
on settings_option (id);
-- auto-generated definition
create table settings
(
settings_option_id integer not null
constraint settings_settings_option_id_fk
references settings_option (id),
value varchar(256),
id serial not null
constraint settings_pk
primary key,
encrypted boolean default false
);
alter table settings
owner to postgres;
create unique index settings_id_uindex
on settings (id);
-- auto-generated definition
create table presets
(
id serial not null
constraint presets_pk
primary key,
name varchar(128),
description varchar,
data varchar,
active boolean default false,
output varchar(128)
);
alter table presets
owner to postgres;
create unique index presets_id_uindex
on presets (id);