This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
/
create.sqlite
90 lines (78 loc) · 2.15 KB
/
create.sqlite
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
CREATE TABLE IF NOT EXISTS ajxp_users (
login text NOT NULL,
"password" text NOT NULL,
groupPath text NOT NULL
);
CREATE TABLE IF NOT EXISTS ajxp_user_rights (
rid integer NOT NULL primary key autoincrement,
login text NOT NULL,
repo_uuid text NOT NULL,
rights text NOT NULL
);
CREATE TABLE IF NOT EXISTS ajxp_user_prefs (
rid integer NOT NULL primary key autoincrement,
login text NOT NULL,
"name" text NOT NULL,
val blob DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS ajxp_user_bookmarks (
rid integer NOT NULL primary key autoincrement,
login text NOT NULL,
repo_uuid text NOT NULL,
path text DEFAULT NULL,
title text DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS ajxp_repo (
uuid text NOT NULL,
parent_uuid text DEFAULT NULL,
owner_user_id text DEFAULT NULL,
child_user_id text DEFAULT NULL,
path text DEFAULT NULL,
display text DEFAULT NULL,
accessType text DEFAULT NULL,
recycle text DEFAULT NULL,
bcreate integer DEFAULT NULL,
writeable integer DEFAULT NULL,
enabled integer DEFAULT NULL,
isTemplate integer DEFAULT NULL,
inferOptionsFromParent integer DEFAULT NULL,
slug text DEFAULT NULL,
groupPath text DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS ajxp_repo_options (
oid integer NOT NULL primary key autoincrement,
uuid text NOT NULL,
"name" text NOT NULL,
val blob DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS ajxp_roles (
role_id text NOT NULL,
serial_role blob NOT NULL,
searchable_repositories text
);
CREATE TABLE IF NOT EXISTS ajxp_groups (
groupPath text NOT NULL,
groupLabel text NOT NULL
);
CREATE TABLE IF NOT EXISTS ajxp_plugin_configs (
id text NOT NULL,
configs longblob NOT NULL
);
CREATE TABLE IF NOT EXISTS ajxp_simple_store (
object_id text NOT NULL,
store_id text NOT NULL,
serialized_data longtext,
binary_data blob,
related_object_id text DEFAULT NULL,
insertion_date DATETIME DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS ajxp_user_teams (
team_id text NOT NULL,
user_id text NOT NULL,
team_label text NOT NULL,
owner_id text NOT NULL
);
CREATE TABLE IF NOT EXISTS ajxp_version (
db_build INT NOT NULL
);
INSERT INTO ajxp_version VALUES (0);