-
Notifications
You must be signed in to change notification settings - Fork 1
/
hl_schema.sql
68 lines (61 loc) · 2.38 KB
/
hl_schema.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
59
60
61
62
63
64
65
66
67
# schema for Librarian DB
create table source (
id integer not null auto_increment,
name varchar(254) not null,
authenticator varchar(254) not null,
create_time double not null,
primary key (id)
) engine=InnoDB;
/* clone of M&C table */
create table observation (
id bigint not null,
source_id integer not null,
julian_date double not null,
polarization char(4) not null,
length double not null,
primary key (id)
) engine=InnoDB;
create table store (
id integer not null auto_increment,
name varchar(254) not null,
create_time double not null,
capacity double not null,
used double not null,
rsync_prefix varchar(254) not null,
http_prefix varchar(254) not null,
path_prefix varchar(254) not null,
ssh_prefix varchar(254) not null,
unavailable tinyint not null,
primary key (id)
) engine=InnoDB;
create table file (
id integer not null auto_increment,
name varchar(254) not null,
type char(64) not null,
create_time double not null,
obs_id bigint not null,
source_id integer not null,
store_id integer not null,
size double not null,
md5 varchar(254) not null,
deleted tinyint not null,
deleted_time double not null,
primary key (id)
) engine=InnoDB;
create table task (
id integer not null auto_increment,
create_time double not null,
task_type integer not null,
local_store_id integer not null,
file_name varchar(254) not null,
remote_site varchar(254) not null,
remote_store varchar(254) not null,
in_progress tinyint not null,
delete_when_done tinyint not null,
state integer not null,
completed tinyint not null,
completed_time double not null,
last_error varchar(254) not null,
last_error_time double not null,
primary key (id)
) engine=InnoDB;