-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest-Dataset.sql
282 lines (197 loc) · 5.1 KB
/
Test-Dataset.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
--
-- PostgreSQL database cluster dump
--
\connect "template1"
\connect login_db
--
-- PostgreSQL database dump
--
SET client_encoding = 'UNICODE';
SET check_function_bodies = false;
SET SESSION AUTHORIZATION 'postgres';
SET search_path = public, pg_catalog;
--
-- Data for TOC entry 2 (OID 19393)
-- Name: user_login; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY user_login (user_name, passwd, prof_id, status) FROM stdin;
source source 1 A
target target 2 A
fdgonthier fdgonthier 3 A
birtz birtz 4 A
\.
\connect privkeys_db
--
-- PostgreSQL database dump
--
SET client_encoding = 'UNICODE';
SET check_function_bodies = false;
SET SESSION AUTHORIZATION 'postgres';
SET search_path = public, pg_catalog;
--
-- Data for TOC entry 2 (OID 19402)
-- Name: private_key; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY private_key (key_id, owner_name) FROM stdin;
10 Mister Source
11 Miss Target
2023030 Ataboy
\.
--
-- Data for TOC entry 3 (OID 19406)
-- Name: sig_key; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY sig_key (key_id, key_data) FROM stdin;
10
11
\.
--
-- Data for TOC entry 4 (OID 19417)
-- Name: enc_key; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY enc_key (key_id, key_data) FROM stdin;
10
11
2023030
\.
\connect profiles_db
--
-- PostgreSQL database dump
--
SET client_encoding = 'UNICODE';
SET check_function_bodies = false;
SET SESSION AUTHORIZATION 'postgres';
SET search_path = public, pg_catalog;
--
-- Data for TOC entry 9 (OID 19449)
-- Name: organization; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY organization (org_id, name) FROM stdin;
1 Targets
2 Sources
3 Teambox
\.
--
-- Data for TOC entry 10 (OID 19454)
-- Name: profiles; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY profiles (prof_id, key_id, org_id, prof_type, user_id, group_id) FROM stdin;
1 10 2 U 1 \N
2 11 1 U 2 \N
3 10 3 U 3 \N
4 10 3 U 4 \N
\.
--
-- Data for TOC entry 11 (OID 19468)
-- Name: user_profiles; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY user_profiles (user_id, first_name, last_name, status, prof_id) FROM stdin;
2 Miss Target A 2
1 Mister Source A 1
3 F.-D. Gonthier A 3
4 Laurent Birtz A 4
\.
--
-- Data for TOC entry 12 (OID 19477)
-- Name: group_profiles; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY group_profiles (group_id, group_name, status, prof_id) FROM stdin;
\.
--
-- Data for TOC entry 13 (OID 19486)
-- Name: email_parts; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY email_parts (email_part_id, email_part, group_id) FROM stdin;
\.
--
-- Data for TOC entry 14 (OID 19497)
-- Name: emails; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY emails (email_id, user_id, email_address, status, is_primary) FROM stdin;
6 1 [email protected] A t
7 1 [email protected] A f
1 2 [email protected] A t
8 2 [email protected] A f
2 3 [email protected] A f
3 4 [email protected] A t
4 4 [email protected] A f
\.
--
-- TOC entry 3 (OID 27234)
-- Name: org_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('org_id_seq', 1, false);
--
-- TOC entry 4 (OID 27236)
-- Name: prof_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('prof_id_seq', 1, false);
--
-- TOC entry 5 (OID 27238)
-- Name: user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('user_id_seq', 1, false);
--
-- TOC entry 6 (OID 27240)
-- Name: group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('group_id_seq', 1, false);
--
-- TOC entry 7 (OID 27242)
-- Name: email_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('email_id_seq', 1, false);
--
-- TOC entry 8 (OID 27244)
-- Name: email_part_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('email_part_id_seq', 1, false);
\connect pubkeys_db
--
-- PostgreSQL database dump
--
SET client_encoding = 'UNICODE';
SET check_function_bodies = false;
SET SESSION AUTHORIZATION 'postgres';
SET search_path = public, pg_catalog;
--
-- Data for TOC entry 3 (OID 19530)
-- Name: public_key; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public_key (key_id, status, owner_name) FROM stdin;
10 A Mister Source
11 A Miss Target
\.
--
-- Data for TOC entry 4 (OID 19534)
-- Name: sig_key; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY sig_key (key_id, key_data) FROM stdin;
10
11
\.
--
-- Data for TOC entry 5 (OID 19542)
-- Name: enc_key; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY enc_key (key_id, key_data) FROM stdin;
10
11
\.
--
-- Data for TOC entry 6 (OID 27249)
-- Name: pub_fetch_count; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY pub_fetch_count (key_id, fetch_count, fetch_last_date) FROM stdin;
\.
--
-- TOC entry 2 (OID 19528)
-- Name: email_match_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('email_match_seq', 1, false);
\connect template1
--
-- PostgreSQL database dump
--
SET client_encoding = 'UNICODE';
SET check_function_bodies = false;