Browse Source

sql data init script

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
53ac8e0815
1 changed files with 179 additions and 0 deletions
  1. 179
    0
      sql/data_init.sql

+ 179
- 0
sql/data_init.sql View File

@@ -0,0 +1,179 @@
1
+--
2
+-- PostgreSQL database dump
3
+--
4
+
5
+SET statement_timeout = 0;
6
+SET lock_timeout = 0;
7
+SET client_encoding = 'UTF8';
8
+SET standard_conforming_strings = on;
9
+SET check_function_bodies = false;
10
+SET client_min_messages = warning;
11
+
12
+SET search_path = public, pg_catalog;
13
+
14
+--
15
+-- Data for Name: luticate_groups; Type: TABLE DATA; Schema: public; Owner: dev
16
+--
17
+
18
+INSERT INTO luticate_groups VALUES (0, 'Super Administrators');
19
+INSERT INTO luticate_groups VALUES (1, 'Administrators');
20
+
21
+
22
+--
23
+-- Name: luticate_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: dev
24
+--
25
+
26
+SELECT pg_catalog.setval('luticate_groups_id_seq', 1, true);
27
+
28
+
29
+--
30
+-- Data for Name: luticate_permissions; Type: TABLE DATA; Schema: public; Owner: dev
31
+--
32
+
33
+INSERT INTO luticate_permissions VALUES ('LU_USER_GET', false);
34
+INSERT INTO luticate_permissions VALUES ('LU_USER_SET_PASSWORD', false);
35
+INSERT INTO luticate_permissions VALUES ('LU_USER_LOGIN', true);
36
+INSERT INTO luticate_permissions VALUES ('LU_USER_EDIT_ME', true);
37
+INSERT INTO luticate_permissions VALUES ('LU_USER_SET_PASSWORD_ME', true);
38
+INSERT INTO luticate_permissions VALUES ('LU_GROUP_ADD', false);
39
+INSERT INTO luticate_permissions VALUES ('LU_GROUP_DEL', false);
40
+INSERT INTO luticate_permissions VALUES ('LU_GROUP_EDIT', false);
41
+INSERT INTO luticate_permissions VALUES ('LU_GROUP_USER_ADD', false);
42
+INSERT INTO luticate_permissions VALUES ('LU_GROUP_USER_DEL', false);
43
+INSERT INTO luticate_permissions VALUES ('LU_PERM_ADD', false);
44
+INSERT INTO luticate_permissions VALUES ('LU_PERM_DEL', false);
45
+INSERT INTO luticate_permissions VALUES ('LU_PERM_EDIT', false);
46
+INSERT INTO luticate_permissions VALUES ('LU_PERM_EFFECTIVE_GET', false);
47
+INSERT INTO luticate_permissions VALUES ('LU_PERM_GET', false);
48
+INSERT INTO luticate_permissions VALUES ('LU_PERM_GROUP_ADD', false);
49
+INSERT INTO luticate_permissions VALUES ('LU_PERM_GROUP_DEL', false);
50
+INSERT INTO luticate_permissions VALUES ('LU_PERM_GROUP_EDIT', false);
51
+INSERT INTO luticate_permissions VALUES ('LU_PERM_GROUP_GET', false);
52
+INSERT INTO luticate_permissions VALUES ('LU_GROUP_GET', false);
53
+INSERT INTO luticate_permissions VALUES ('LU_PERM_USER_ADD', false);
54
+INSERT INTO luticate_permissions VALUES ('LU_PERM_USER_DEL', false);
55
+INSERT INTO luticate_permissions VALUES ('LU_PERM_USER_EDIT', false);
56
+INSERT INTO luticate_permissions VALUES ('LU_USER_EDIT', false);
57
+INSERT INTO luticate_permissions VALUES ('LU_USER_DEL', false);
58
+INSERT INTO luticate_permissions VALUES ('LU_USER_ADD', false);
59
+INSERT INTO luticate_permissions VALUES ('LU_PERM_USER_GET', false);
60
+
61
+
62
+--
63
+-- Data for Name: luticate_permissions_groups; Type: TABLE DATA; Schema: public; Owner: dev
64
+--
65
+
66
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_ADD', true, 0);
67
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_DEL', true, 0);
68
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_EDIT', true, 0);
69
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_GET', true, 0);
70
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_USER_ADD', true, 0);
71
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_USER_DEL', true, 0);
72
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_EFFECTIVE_GET', true, 0);
73
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GET', true, 0);
74
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GROUP_ADD', true, 0);
75
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GROUP_DEL', true, 0);
76
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GROUP_EDIT', true, 0);
77
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GROUP_GET', true, 0);
78
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_USER_ADD', true, 0);
79
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_USER_DEL', true, 0);
80
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_USER_EDIT', true, 0);
81
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_USER_GET', true, 0);
82
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_ADD', true, 0);
83
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_DEL', true, 0);
84
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_EDIT', true, 0);
85
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_EDIT_ME', true, 0);
86
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_GET', true, 0);
87
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_LOGIN', true, 0);
88
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_SET_PASSWORD', true, 0);
89
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_SET_PASSWORD_ME', true, 0);
90
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_ADD', true, 1);
91
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_DEL', true, 1);
92
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_EDIT', true, 1);
93
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_GET', true, 1);
94
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_USER_ADD', true, 1);
95
+INSERT INTO luticate_permissions_groups VALUES ('LU_GROUP_USER_DEL', true, 1);
96
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_EFFECTIVE_GET', true, 1);
97
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GET', true, 1);
98
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GROUP_ADD', true, 1);
99
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GROUP_DEL', true, 1);
100
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GROUP_EDIT', true, 1);
101
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_GROUP_GET', true, 1);
102
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_USER_ADD', true, 1);
103
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_USER_DEL', true, 1);
104
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_USER_EDIT', true, 1);
105
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_USER_GET', true, 1);
106
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_ADD', true, 1);
107
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_DEL', true, 1);
108
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_EDIT', true, 1);
109
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_EDIT_ME', true, 1);
110
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_GET', true, 1);
111
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_LOGIN', true, 1);
112
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_SET_PASSWORD', true, 1);
113
+INSERT INTO luticate_permissions_groups VALUES ('LU_USER_SET_PASSWORD_ME', true, 1);
114
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_EDIT', true, 0);
115
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_DEL', true, 0);
116
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_ADD', true, 0);
117
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_ADD', false, 1);
118
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_EDIT', false, 1);
119
+INSERT INTO luticate_permissions_groups VALUES ('LU_PERM_DEL', false, 1);
120
+
121
+
122
+--
123
+-- Data for Name: luticate_users; Type: TABLE DATA; Schema: public; Owner: dev
124
+--
125
+
126
+INSERT INTO luticate_users VALUES (0, 'anonymous', 'anonymous@example.com', '', '', NULL, 'anonymous', 'anonymous');
127
+INSERT INTO luticate_users VALUES (1, 'root', 'root@example.com', '$2y$10$ec8HHsBm1hFoiCtyj51Gwuj42PZ2oUp5BOnYq5/oh.FNAHIkgSGYO', 'LNzBBugvD6', NULL, 'root', 'root');
128
+
129
+
130
+--
131
+-- Data for Name: luticate_permissions_users; Type: TABLE DATA; Schema: public; Owner: dev
132
+--
133
+
134
+INSERT INTO luticate_permissions_users VALUES ('LU_GROUP_ADD', false, 0);
135
+INSERT INTO luticate_permissions_users VALUES ('LU_GROUP_DEL', false, 0);
136
+INSERT INTO luticate_permissions_users VALUES ('LU_GROUP_EDIT', false, 0);
137
+INSERT INTO luticate_permissions_users VALUES ('LU_GROUP_GET', false, 0);
138
+INSERT INTO luticate_permissions_users VALUES ('LU_GROUP_USER_ADD', false, 0);
139
+INSERT INTO luticate_permissions_users VALUES ('LU_GROUP_USER_DEL', false, 0);
140
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_ADD', false, 0);
141
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_DEL', false, 0);
142
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_EDIT', false, 0);
143
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_EFFECTIVE_GET', false, 0);
144
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_GET', false, 0);
145
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_GROUP_ADD', false, 0);
146
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_GROUP_DEL', false, 0);
147
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_GROUP_EDIT', false, 0);
148
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_GROUP_GET', false, 0);
149
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_USER_ADD', false, 0);
150
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_USER_DEL', false, 0);
151
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_USER_EDIT', false, 0);
152
+INSERT INTO luticate_permissions_users VALUES ('LU_PERM_USER_GET', false, 0);
153
+INSERT INTO luticate_permissions_users VALUES ('LU_USER_ADD', false, 0);
154
+INSERT INTO luticate_permissions_users VALUES ('LU_USER_DEL', false, 0);
155
+INSERT INTO luticate_permissions_users VALUES ('LU_USER_EDIT', false, 0);
156
+INSERT INTO luticate_permissions_users VALUES ('LU_USER_EDIT_ME', false, 0);
157
+INSERT INTO luticate_permissions_users VALUES ('LU_USER_GET', false, 0);
158
+INSERT INTO luticate_permissions_users VALUES ('LU_USER_SET_PASSWORD', false, 0);
159
+INSERT INTO luticate_permissions_users VALUES ('LU_USER_SET_PASSWORD_ME', false, 0);
160
+INSERT INTO luticate_permissions_users VALUES ('LU_USER_LOGIN', true, 0);
161
+
162
+
163
+--
164
+-- Data for Name: luticate_users_groups; Type: TABLE DATA; Schema: public; Owner: dev
165
+--
166
+
167
+INSERT INTO luticate_users_groups VALUES (1, 0);
168
+
169
+
170
+--
171
+-- Name: luticate_users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: dev
172
+--
173
+
174
+SELECT pg_catalog.setval('luticate_users_id_seq', 1, true);
175
+
176
+
177
+--
178
+-- PostgreSQL database dump complete
179
+--

Loading…
Cancel
Save