-
Notifications
You must be signed in to change notification settings - Fork 0
/
tables.sql
44 lines (40 loc) · 947 Bytes
/
tables.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
CREATE TABLE customer
(
doli_id int(11) NOT NULL,
kimai_id int(11) NOT NULL,
token varchar(32) NOT NULL,
PRIMARY KEY(doli_id, kimai_id)
);
CREATE TABLE user
(
doli_id int(11) NOT NULL,
kimai_id int(11) NOT NULL,
token varchar(32) NOT NULL,
username varchar(50) NOT NULL,
PRIMARY KEY(doli_id, kimai_id)
);
CREATE TABLE project
(
doli_id int(11) NOT NULL,
kimai_id int(11) NOT NULL,
token varchar(32) NOT NULL,
PRIMARY KEY(doli_id, kimai_id)
);
CREATE TABLE task
(
doli_id int(11) NOT NULL,
kimai_id int(11) NOT NULL,
token varchar(32) NOT NULL,
PRIMARY KEY(doli_id, kimai_id)
);
CREATE TABLE merged_timesheet (
kimai_id int(11) NOT NULL,
task_id int(11) NOT NULL,
activity_id int(11) NOT NULL,
project_id int(11) NOT NULL,
duration int(11) NOT NULL,
user_id int(11) NOT NULL,
start DATETIME NOT NULL,
token VARCHAR(32) NOT NULL,
PRIMARY KEY (kimai_id)
);