-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sql
More file actions
64 lines (59 loc) · 1.12 KB
/
init.sql
File metadata and controls
64 lines (59 loc) · 1.12 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
CREATE TABLE diaries (
id uuid,
user_id uuid,
created_at timestamp,
created_by uuid,
updated_at timestamp,
updated_by uuid
);
CREATE TABLE days (
id uuid,
date timestamp,
content varchar,
diary_id uuid,
created_at timestamp,
created_by uuid,
updated_at timestamp,
updated_by uuid
);
CREATE TABLE users (
id uuid,
first_name varchar,
last_name varchar,
email varchar,
password_hash varchar,
password_salt varchar,
created_at timestamp,
created_by uuid,
updated_at timestamp,
updated_by uuid
);
CREATE TABLE toolboxes (
id uuid,
user_id uuid,
label varchar,
created_at timestamp,
created_by uuid,
updated_at timestamp,
updated_by uuid
);
CREATE TABLE tools (
id uuid,
toolbox_id uuid,
label varchar,
value varchar,
created_at timestamp,
created_by uuid,
updated_at timestamp,
updated_by uuid
);
CREATE TABLE notes (
id uuid,
user_id uuid,
title varchar,
content varchar,
created_at timestamp,
created_by uuid,
updated_at timestamp,
updated_by uuid
);