-
Notifications
You must be signed in to change notification settings - Fork 1
/
directus.sql
1461 lines (1044 loc) · 67.9 KB
/
directus.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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--
-- PostgreSQL database cluster dump
--
SET default_transaction_read_only = off;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
--
-- Drop databases (except postgres and template1)
--
DROP DATABASE directus;
--
-- Drop roles
--
DROP ROLE directus;
--
-- Roles
--
CREATE ROLE directus;
ALTER ROLE directus WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION BYPASSRLS PASSWORD 'md5b6b2fa1d6e06b17c0856f4d9d6ed04f3';
--
-- Databases
--
--
-- Database "template1" dump
--
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.5 (Debian 12.5-1.pgdg100+1)
-- Dumped by pg_dump version 12.5 (Debian 12.5-1.pgdg100+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
UPDATE pg_catalog.pg_database SET datistemplate = false WHERE datname = 'template1';
DROP DATABASE template1;
--
-- Name: template1; Type: DATABASE; Schema: -; Owner: directus
--
CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8';
ALTER DATABASE template1 OWNER TO directus;
\connect template1
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: DATABASE template1; Type: COMMENT; Schema: -; Owner: directus
--
COMMENT ON DATABASE template1 IS 'default template for new databases';
--
-- Name: template1; Type: DATABASE PROPERTIES; Schema: -; Owner: directus
--
ALTER DATABASE template1 IS_TEMPLATE = true;
\connect template1
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: DATABASE template1; Type: ACL; Schema: -; Owner: directus
--
REVOKE CONNECT,TEMPORARY ON DATABASE template1 FROM PUBLIC;
GRANT CONNECT ON DATABASE template1 TO PUBLIC;
--
-- PostgreSQL database dump complete
--
--
-- Database "directus" dump
--
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.5 (Debian 12.5-1.pgdg100+1)
-- Dumped by pg_dump version 12.5 (Debian 12.5-1.pgdg100+1)
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: directus; Type: DATABASE; Schema: -; Owner: directus
--
CREATE DATABASE directus WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8';
ALTER DATABASE directus OWNER TO directus;
\connect directus
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: cars; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.cars (
id integer NOT NULL,
status character varying(255) DEFAULT 'draft'::character varying NOT NULL,
user_created uuid,
date_created timestamp with time zone,
user_updated uuid,
date_updated timestamp with time zone,
model character varying(255) NOT NULL,
manufacturer integer
);
ALTER TABLE public.cars OWNER TO directus;
--
-- Name: cars_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.cars_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.cars_id_seq OWNER TO directus;
--
-- Name: cars_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.cars_id_seq OWNED BY public.cars.id;
--
-- Name: directus_activity; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_activity (
id integer NOT NULL,
action character varying(45) NOT NULL,
"user" uuid,
"timestamp" timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
ip character varying(50) NOT NULL,
user_agent character varying(255),
collection character varying(64) NOT NULL,
item character varying(255) NOT NULL,
comment text
);
ALTER TABLE public.directus_activity OWNER TO directus;
--
-- Name: directus_activity_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.directus_activity_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.directus_activity_id_seq OWNER TO directus;
--
-- Name: directus_activity_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.directus_activity_id_seq OWNED BY public.directus_activity.id;
--
-- Name: directus_collections; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_collections (
collection character varying(64) NOT NULL,
icon character varying(30),
note text,
display_template character varying(255),
hidden boolean DEFAULT false NOT NULL,
singleton boolean DEFAULT false NOT NULL,
translations json,
archive_field character varying(64),
archive_app_filter boolean DEFAULT true NOT NULL,
archive_value character varying(255),
unarchive_value character varying(255),
sort_field character varying(64)
);
ALTER TABLE public.directus_collections OWNER TO directus;
--
-- Name: directus_fields; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_fields (
id integer NOT NULL,
collection character varying(64) NOT NULL,
field character varying(64) NOT NULL,
special character varying(64),
interface character varying(64),
options json,
display character varying(64),
display_options json,
locked boolean DEFAULT false NOT NULL,
readonly boolean DEFAULT false NOT NULL,
hidden boolean DEFAULT false NOT NULL,
sort integer,
width character varying(30) DEFAULT 'full'::character varying,
"group" integer,
translations json,
note text
);
ALTER TABLE public.directus_fields OWNER TO directus;
--
-- Name: directus_fields_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.directus_fields_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.directus_fields_id_seq OWNER TO directus;
--
-- Name: directus_fields_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.directus_fields_id_seq OWNED BY public.directus_fields.id;
--
-- Name: directus_files; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_files (
id uuid NOT NULL,
storage character varying(255) NOT NULL,
filename_disk character varying(255),
filename_download character varying(255) NOT NULL,
title character varying(255),
type character varying(255),
folder uuid,
uploaded_by uuid,
uploaded_on timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
modified_by uuid,
modified_on timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
charset character varying(50),
filesize integer DEFAULT 0 NOT NULL,
width integer,
height integer,
duration integer,
embed character varying(200),
description text,
location text,
tags text,
metadata json
);
ALTER TABLE public.directus_files OWNER TO directus;
--
-- Name: directus_folders; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_folders (
id uuid NOT NULL,
name character varying(255) NOT NULL,
parent uuid
);
ALTER TABLE public.directus_folders OWNER TO directus;
--
-- Name: directus_migrations; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_migrations (
version character varying(255) NOT NULL,
name character varying(255) NOT NULL,
"timestamp" timestamp with time zone DEFAULT CURRENT_TIMESTAMP
);
ALTER TABLE public.directus_migrations OWNER TO directus;
--
-- Name: directus_permissions; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_permissions (
id integer NOT NULL,
role uuid,
collection character varying(64) NOT NULL,
action character varying(10) NOT NULL,
permissions json,
validation json,
presets json,
fields text,
"limit" integer
);
ALTER TABLE public.directus_permissions OWNER TO directus;
--
-- Name: directus_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.directus_permissions_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.directus_permissions_id_seq OWNER TO directus;
--
-- Name: directus_permissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.directus_permissions_id_seq OWNED BY public.directus_permissions.id;
--
-- Name: directus_presets; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_presets (
id integer NOT NULL,
bookmark character varying(255),
"user" uuid,
role uuid,
collection character varying(64),
search character varying(100),
filters json,
layout character varying(100) DEFAULT 'tabular'::character varying,
layout_query json,
layout_options json
);
ALTER TABLE public.directus_presets OWNER TO directus;
--
-- Name: directus_presets_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.directus_presets_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.directus_presets_id_seq OWNER TO directus;
--
-- Name: directus_presets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.directus_presets_id_seq OWNED BY public.directus_presets.id;
--
-- Name: directus_relations; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_relations (
id integer NOT NULL,
many_collection character varying(64) NOT NULL,
many_field character varying(64) NOT NULL,
many_primary character varying(64) NOT NULL,
one_collection character varying(64),
one_field character varying(64),
one_primary character varying(64),
one_collection_field character varying(64),
one_allowed_collections text,
junction_field character varying(64)
);
ALTER TABLE public.directus_relations OWNER TO directus;
--
-- Name: directus_relations_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.directus_relations_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.directus_relations_id_seq OWNER TO directus;
--
-- Name: directus_relations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.directus_relations_id_seq OWNED BY public.directus_relations.id;
--
-- Name: directus_revisions; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_revisions (
id integer NOT NULL,
activity integer NOT NULL,
collection character varying(64) NOT NULL,
item character varying(255) NOT NULL,
data json,
delta json,
parent integer
);
ALTER TABLE public.directus_revisions OWNER TO directus;
--
-- Name: directus_revisions_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.directus_revisions_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.directus_revisions_id_seq OWNER TO directus;
--
-- Name: directus_revisions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.directus_revisions_id_seq OWNED BY public.directus_revisions.id;
--
-- Name: directus_roles; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_roles (
id uuid NOT NULL,
name character varying(100) NOT NULL,
icon character varying(30) DEFAULT 'supervised_user_circle'::character varying NOT NULL,
description text,
ip_access text,
enforce_tfa boolean DEFAULT false NOT NULL,
module_list json,
collection_list json,
admin_access boolean DEFAULT false NOT NULL,
app_access boolean DEFAULT true NOT NULL
);
ALTER TABLE public.directus_roles OWNER TO directus;
--
-- Name: directus_sessions; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_sessions (
token character varying(64) NOT NULL,
"user" uuid NOT NULL,
expires timestamp with time zone NOT NULL,
ip character varying(255),
user_agent character varying(255)
);
ALTER TABLE public.directus_sessions OWNER TO directus;
--
-- Name: directus_settings; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_settings (
id integer NOT NULL,
project_name character varying(100) DEFAULT 'Directus'::character varying NOT NULL,
project_url character varying(255),
project_color character varying(10),
project_logo uuid,
public_foreground uuid,
public_background uuid,
public_note text,
auth_login_attempts integer DEFAULT 25,
auth_password_policy character varying(100),
storage_asset_transform character varying(7) DEFAULT 'all'::character varying,
storage_asset_presets json,
custom_css text
);
ALTER TABLE public.directus_settings OWNER TO directus;
--
-- Name: directus_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.directus_settings_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.directus_settings_id_seq OWNER TO directus;
--
-- Name: directus_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.directus_settings_id_seq OWNED BY public.directus_settings.id;
--
-- Name: directus_users; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_users (
id uuid NOT NULL,
first_name character varying(50),
last_name character varying(50),
email character varying(128) NOT NULL,
password character varying(255),
location character varying(255),
title character varying(50),
description text,
tags json,
avatar uuid,
language character varying(8) DEFAULT 'en-US'::character varying,
theme character varying(20) DEFAULT 'auto'::character varying,
tfa_secret character varying(255),
status character varying(16) DEFAULT 'active'::character varying NOT NULL,
role uuid,
token character varying(255),
last_access timestamp with time zone,
last_page character varying(255)
);
ALTER TABLE public.directus_users OWNER TO directus;
--
-- Name: directus_webhooks; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.directus_webhooks (
id integer NOT NULL,
name character varying(255) NOT NULL,
method character varying(10) DEFAULT 'POST'::character varying NOT NULL,
url text,
status character varying(10) DEFAULT 'active'::character varying NOT NULL,
data boolean DEFAULT true NOT NULL,
actions character varying(100) NOT NULL,
collections character varying(255) NOT NULL
);
ALTER TABLE public.directus_webhooks OWNER TO directus;
--
-- Name: directus_webhooks_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.directus_webhooks_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.directus_webhooks_id_seq OWNER TO directus;
--
-- Name: directus_webhooks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.directus_webhooks_id_seq OWNED BY public.directus_webhooks.id;
--
-- Name: manufacturers; Type: TABLE; Schema: public; Owner: directus
--
CREATE TABLE public.manufacturers (
id integer NOT NULL,
manufacturer character varying(255) DEFAULT 'E.g. Audi'::character varying NOT NULL
);
ALTER TABLE public.manufacturers OWNER TO directus;
--
-- Name: manufacturers_id_seq; Type: SEQUENCE; Schema: public; Owner: directus
--
CREATE SEQUENCE public.manufacturers_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.manufacturers_id_seq OWNER TO directus;
--
-- Name: manufacturers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: directus
--
ALTER SEQUENCE public.manufacturers_id_seq OWNED BY public.manufacturers.id;
--
-- Name: cars id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.cars ALTER COLUMN id SET DEFAULT nextval('public.cars_id_seq'::regclass);
--
-- Name: directus_activity id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.directus_activity ALTER COLUMN id SET DEFAULT nextval('public.directus_activity_id_seq'::regclass);
--
-- Name: directus_fields id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.directus_fields ALTER COLUMN id SET DEFAULT nextval('public.directus_fields_id_seq'::regclass);
--
-- Name: directus_permissions id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.directus_permissions ALTER COLUMN id SET DEFAULT nextval('public.directus_permissions_id_seq'::regclass);
--
-- Name: directus_presets id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.directus_presets ALTER COLUMN id SET DEFAULT nextval('public.directus_presets_id_seq'::regclass);
--
-- Name: directus_relations id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.directus_relations ALTER COLUMN id SET DEFAULT nextval('public.directus_relations_id_seq'::regclass);
--
-- Name: directus_revisions id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.directus_revisions ALTER COLUMN id SET DEFAULT nextval('public.directus_revisions_id_seq'::regclass);
--
-- Name: directus_settings id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.directus_settings ALTER COLUMN id SET DEFAULT nextval('public.directus_settings_id_seq'::regclass);
--
-- Name: directus_webhooks id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.directus_webhooks ALTER COLUMN id SET DEFAULT nextval('public.directus_webhooks_id_seq'::regclass);
--
-- Name: manufacturers id; Type: DEFAULT; Schema: public; Owner: directus
--
ALTER TABLE ONLY public.manufacturers ALTER COLUMN id SET DEFAULT nextval('public.manufacturers_id_seq'::regclass);
--
-- Data for Name: cars; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.cars (id, status, user_created, date_created, user_updated, date_updated, model, manufacturer) FROM stdin;
1 published dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:47:16.364+00 dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 14:01:01.336+00 Octavia RS iV 3
\.
--
-- Data for Name: directus_activity; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_activity (id, action, "user", "timestamp", ip, user_agent, collection, item, comment) FROM stdin;
1 authenticate dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:25:59.543816+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_users dee95160-b78e-4aa1-b06d-89489a8eab03 \N
2 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:26:30.111347+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_files 000555d4-03af-43ae-be82-07b44fcb9f33 \N
3 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.805066+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_collections cars \N
4 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.805066+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 1 \N
5 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.805066+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 2 \N
6 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.805066+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 3 \N
7 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.805066+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 4 \N
8 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.805066+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 5 \N
9 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.805066+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 6 \N
10 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.805066+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 7 \N
11 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.914317+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_relations 1 \N
12 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:45:30.914317+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_relations 2 \N
13 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:46:51.075685+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 8 \N
14 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:46:54.264676+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_collections cars \N
15 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:47:16.35544+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 cars 1 \N
16 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:47:33.98344+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 1 \N
17 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:47:34.869066+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 1 \N
18 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:47:37.994997+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 1 \N
19 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:47:43.190451+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 1 \N
20 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:47:47.220271+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 1 \N
21 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:47:52.113215+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 1 \N
22 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:47:56.235274+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 1 \N
23 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:49:07.76905+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_collections manufacturers \N
24 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:49:07.76905+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 9 \N
25 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:49:30.912707+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 10 \N
26 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:49:47.792082+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 manufacturers 1 \N
27 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:49:53.333607+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 manufacturers 2 \N
28 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:49:58.105979+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 manufacturers 3 \N
29 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:50:01.806529+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 2 \N
30 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:50:02.334386+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 2 \N
31 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:50:02.904126+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 2 \N
32 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:51:55.451757+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_collections cars \N
33 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:54:43.884919+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_collections manufacturers \N
34 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:55:17.063244+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_collections manufacturers \N
35 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:57:55.393111+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 11 \N
36 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:57:55.456598+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_relations 3 \N
37 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:58:13.493704+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 cars 1 \N
38 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:58:23.830755+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 1 \N
39 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:58:27.095955+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_presets 1 \N
40 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:59:15.17342+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 11 \N
41 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:59:15.241801+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_relations 3 \N
42 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 14:00:06.472296+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_fields 11 \N
43 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 14:00:06.545929+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_relations 3 \N
44 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 14:01:01.333825+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 cars 1 \N
45 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 14:05:17.665852+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_permissions 1 \N
46 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 14:05:19.949686+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_permissions 2 \N
47 create dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 14:05:35.383178+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_permissions 3 \N
48 update dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 14:05:49.868525+00 172.18.0.1 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 directus_permissions 3 \N
\.
--
-- Data for Name: directus_collections; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_collections (collection, icon, note, display_template, hidden, singleton, translations, archive_field, archive_app_filter, archive_value, unarchive_value, sort_field) FROM stdin;
cars directions_car Cars \N f f \N status t archived draft \N
manufacturers handyman Manufacturers \N f f \N \N t \N \N \N
\.
--
-- Data for Name: directus_fields; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_fields (id, collection, field, special, interface, options, display, display_options, locked, readonly, hidden, sort, width, "group", translations, note) FROM stdin;
1 cars id \N numeric \N \N \N f t t \N full \N \N \N
2 cars status \N dropdown {"choices":[{"text":"Published","value":"published"},{"text":"Draft","value":"draft"},{"text":"Archived","value":"archived"}]} labels {"showAsDot":true,"choices":[{"background":"#2F80ED","value":"published"},{"background":"#ECEFF1","value":"draft"},{"background":"#F2994A","value":"archived"}]} f f f \N full \N \N \N
4 cars user_created user-created user {"display":"both"} user \N f t t \N half \N \N \N
5 cars date_created date-created datetime \N datetime {"relative":true} f t t \N half \N \N \N
6 cars user_updated user-updated user {"display":"both"} user \N f t t \N half \N \N \N
7 cars date_updated date-updated datetime \N datetime {"relative":true} f t t \N half \N \N \N
8 cars model \N \N \N \N \N f f f \N full \N \N E.g. Octavia
9 manufacturers id \N numeric \N \N \N f t t \N full \N \N \N
10 manufacturers manufacturer \N \N \N \N \N f f f \N full \N \N \N
11 cars manufacturer \N many-to-one {"template":"{{manufacturer}}"} related-values {"template":"{{manufacturer}}"} f f f \N full \N \N \N
\.
--
-- Data for Name: directus_files; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_files (id, storage, filename_disk, filename_download, title, type, folder, uploaded_by, uploaded_on, modified_by, modified_on, charset, filesize, width, height, duration, embed, description, location, tags, metadata) FROM stdin;
000555d4-03af-43ae-be82-07b44fcb9f33 local 000555d4-03af-43ae-be82-07b44fcb9f33.jpeg PbPYzVD.jpg Pb P Yz Vd image/jpeg \N dee95160-b78e-4aa1-b06d-89489a8eab03 2021-01-16 13:26:30.111347+00 \N 2021-01-16 13:26:30.238+00 \N 398052 2560 1440 \N \N \N \N \N {}
\.
--
-- Data for Name: directus_folders; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_folders (id, name, parent) FROM stdin;
\.
--
-- Data for Name: directus_migrations; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_migrations (version, name, "timestamp") FROM stdin;
20201028A Remove Collection Foreign Keys 2021-01-16 13:01:32.765856+00
20201029A Remove System Relations 2021-01-16 13:01:32.772408+00
20201029B Remove System Collections 2021-01-16 13:01:32.776301+00
20201029C Remove System Fields 2021-01-16 13:01:32.78265+00
20201105A Add Cascade System Relations 2021-01-16 13:01:32.847502+00
20201105B Change Webhook URL Type 2021-01-16 13:01:32.851476+00
\.
--
-- Data for Name: directus_permissions; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_permissions (id, role, collection, action, permissions, validation, presets, fields, "limit") FROM stdin;
1 \N cars read \N \N \N * \N
2 \N manufacturers read \N \N \N * \N
3 \N directus_collections read \N \N \N * \N
\.
--
-- Data for Name: directus_presets; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_presets (id, bookmark, "user", role, collection, search, filters, layout, layout_query, layout_options) FROM stdin;
2 \N dee95160-b78e-4aa1-b06d-89489a8eab03 \N manufacturers \N \N tabular {"tabular":{"sort":"manufacturer"}} \N
1 \N dee95160-b78e-4aa1-b06d-89489a8eab03 \N cars \N [{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}] tabular {"tabular":{"fields":["id","manufacturer","model","date_created","date_updated"]}} \N
\.
--
-- Data for Name: directus_relations; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_relations (id, many_collection, many_field, many_primary, one_collection, one_field, one_primary, one_collection_field, one_allowed_collections, junction_field) FROM stdin;
1 cars user_created id directus_users \N id \N \N \N
2 cars user_updated id directus_users \N id \N \N \N
3 cars manufacturer id manufacturers cars id \N \N \N
\.
--
-- Data for Name: directus_revisions; Type: TABLE DATA; Schema: public; Owner: directus
--
COPY public.directus_revisions (id, activity, collection, item, data, delta, parent) FROM stdin;
1 2 directus_files 000555d4-03af-43ae-be82-07b44fcb9f33 {"title":"Pb P Yz Vd","uploaded_by":"dee95160-b78e-4aa1-b06d-89489a8eab03","filename_download":"PbPYzVD.jpg","type":"image/jpeg","storage":"local","id":"000555d4-03af-43ae-be82-07b44fcb9f33"} {"title":"Pb P Yz Vd","uploaded_by":"dee95160-b78e-4aa1-b06d-89489a8eab03","filename_download":"PbPYzVD.jpg","type":"image/jpeg","storage":"local","id":"000555d4-03af-43ae-be82-07b44fcb9f33"} \N
2 3 directus_collections cars {"sort_field":"sort","archive_field":"status","archive_value":"archived","unarchive_value":"draft","singleton":false,"collection":"cars"} {"sort_field":"sort","archive_field":"status","archive_value":"archived","unarchive_value":"draft","singleton":false,"collection":"cars"} \N
3 4 directus_fields 1 {"hidden":true,"interface":"numeric","readonly":true,"field":"id","collection":"cars","id":1} {"hidden":true,"interface":"numeric","readonly":true,"field":"id","collection":"cars","id":1} \N
4 5 directus_fields 2 {"width":"full","options":{"choices":[{"text":"Published","value":"published"},{"text":"Draft","value":"draft"},{"text":"Archived","value":"archived"}]},"interface":"dropdown","display":"labels","display_options":{"showAsDot":true,"choices":[{"background":"#2F80ED","value":"published"},{"background":"#ECEFF1","value":"draft"},{"background":"#F2994A","value":"archived"}]},"field":"status","collection":"cars","id":2} {"width":"full","options":{"choices":[{"text":"Published","value":"published"},{"text":"Draft","value":"draft"},{"text":"Archived","value":"archived"}]},"interface":"dropdown","display":"labels","display_options":{"showAsDot":true,"choices":[{"background":"#2F80ED","value":"published"},{"background":"#ECEFF1","value":"draft"},{"background":"#F2994A","value":"archived"}]},"field":"status","collection":"cars","id":2} \N
5 6 directus_fields 3 {"interface":"numeric","hidden":true,"field":"sort","collection":"cars","id":3} {"interface":"numeric","hidden":true,"field":"sort","collection":"cars","id":3} \N
6 7 directus_fields 4 {"special":["user-created"],"interface":"user","options":{"display":"both"},"display":"user","readonly":true,"hidden":true,"width":"half","field":"user_created","collection":"cars","id":4} {"special":["user-created"],"interface":"user","options":{"display":"both"},"display":"user","readonly":true,"hidden":true,"width":"half","field":"user_created","collection":"cars","id":4} \N
7 8 directus_fields 5 {"special":["date-created"],"interface":"datetime","readonly":true,"hidden":true,"width":"half","display":"datetime","display_options":{"relative":true},"field":"date_created","collection":"cars","id":5} {"special":["date-created"],"interface":"datetime","readonly":true,"hidden":true,"width":"half","display":"datetime","display_options":{"relative":true},"field":"date_created","collection":"cars","id":5} \N
8 9 directus_fields 6 {"special":["user-updated"],"interface":"user","options":{"display":"both"},"display":"user","readonly":true,"hidden":true,"width":"half","field":"user_updated","collection":"cars","id":6} {"special":["user-updated"],"interface":"user","options":{"display":"both"},"display":"user","readonly":true,"hidden":true,"width":"half","field":"user_updated","collection":"cars","id":6} \N
9 10 directus_fields 7 {"special":["date-updated"],"interface":"datetime","readonly":true,"hidden":true,"width":"half","display":"datetime","display_options":{"relative":true},"field":"date_updated","collection":"cars","id":7} {"special":["date-updated"],"interface":"datetime","readonly":true,"hidden":true,"width":"half","display":"datetime","display_options":{"relative":true},"field":"date_updated","collection":"cars","id":7} \N
10 11 directus_relations 1 {"many_collection":"cars","many_field":"user_created","many_primary":"id","one_collection":"directus_users","one_primary":"id","id":1} {"many_collection":"cars","many_field":"user_created","many_primary":"id","one_collection":"directus_users","one_primary":"id","id":1} \N
11 12 directus_relations 2 {"many_collection":"cars","many_field":"user_updated","many_primary":"id","one_collection":"directus_users","one_primary":"id","id":2} {"many_collection":"cars","many_field":"user_updated","many_primary":"id","one_collection":"directus_users","one_primary":"id","id":2} \N
12 13 directus_fields 8 {"hidden":false,"readonly":false,"note":"E.g. Octavia","collection":"cars","field":"model","id":8} {"hidden":false,"readonly":false,"note":"E.g. Octavia","collection":"cars","field":"model","id":8} \N
13 14 directus_collections cars {"collection":"cars","icon":"directions_car","note":"Cars","display_template":null,"hidden":false,"singleton":false,"translations":null,"archive_field":"status","archive_app_filter":true,"archive_value":"archived","unarchive_value":"draft","sort_field":"sort"} {"icon":"directions_car","note":"Cars"} \N
14 15 cars 1 {"status":"draft","model":"Octavia RS iV","id":1} {"status":"draft","model":"Octavia RS iV","id":1} \N
15 16 directus_presets 1 {"bookmark":null,"role":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["id","sort","date_updated"]}},"layout_options":null,"collection":"cars","id":1} {"bookmark":null,"role":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["id","sort","date_updated"]}},"layout_options":null,"collection":"cars","id":1} \N
16 17 directus_presets 1 {"id":1,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["id","sort","date_updated","model"]}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":"[{\\"key\\":\\"hide-archived\\",\\"field\\":\\"status\\",\\"operator\\":\\"neq\\",\\"value\\":\\"archived\\",\\"locked\\":true}]","layout":"tabular","layout_query":"{\\"tabular\\":{\\"fields\\":[\\"id\\",\\"sort\\",\\"date_updated\\",\\"model\\"]}}","layout_options":null} \N
17 18 directus_presets 1 {"id":1,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["model","id","sort","date_updated"]}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":"[{\\"key\\":\\"hide-archived\\",\\"field\\":\\"status\\",\\"operator\\":\\"neq\\",\\"value\\":\\"archived\\",\\"locked\\":true}]","layout":"tabular","layout_query":"{\\"tabular\\":{\\"fields\\":[\\"model\\",\\"id\\",\\"sort\\",\\"date_updated\\"]}}","layout_options":null} \N
22 23 directus_collections manufacturers {"singleton":false,"collection":"manufacturers"} {"singleton":false,"collection":"manufacturers"} \N
18 19 directus_presets 1 {"id":1,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["id","model","sort","date_updated"]}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":"[{\\"key\\":\\"hide-archived\\",\\"field\\":\\"status\\",\\"operator\\":\\"neq\\",\\"value\\":\\"archived\\",\\"locked\\":true}]","layout":"tabular","layout_query":"{\\"tabular\\":{\\"fields\\":[\\"id\\",\\"model\\",\\"sort\\",\\"date_updated\\"]}}","layout_options":null} \N
19 20 directus_presets 1 {"id":1,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["id","model","date_updated"]}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":"[{\\"key\\":\\"hide-archived\\",\\"field\\":\\"status\\",\\"operator\\":\\"neq\\",\\"value\\":\\"archived\\",\\"locked\\":true}]","layout":"tabular","layout_query":"{\\"tabular\\":{\\"fields\\":[\\"id\\",\\"model\\",\\"date_updated\\"]}}","layout_options":null} \N
20 21 directus_presets 1 {"id":1,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["id","model","date_updated","date_created"]}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":"[{\\"key\\":\\"hide-archived\\",\\"field\\":\\"status\\",\\"operator\\":\\"neq\\",\\"value\\":\\"archived\\",\\"locked\\":true}]","layout":"tabular","layout_query":"{\\"tabular\\":{\\"fields\\":[\\"id\\",\\"model\\",\\"date_updated\\",\\"date_created\\"]}}","layout_options":null} \N
21 22 directus_presets 1 {"id":1,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["id","model","date_created","date_updated"]}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":"[{\\"key\\":\\"hide-archived\\",\\"field\\":\\"status\\",\\"operator\\":\\"neq\\",\\"value\\":\\"archived\\",\\"locked\\":true}]","layout":"tabular","layout_query":"{\\"tabular\\":{\\"fields\\":[\\"id\\",\\"model\\",\\"date_created\\",\\"date_updated\\"]}}","layout_options":null} \N
23 24 directus_fields 9 {"hidden":true,"interface":"numeric","readonly":true,"field":"id","collection":"manufacturers","id":9} {"hidden":true,"interface":"numeric","readonly":true,"field":"id","collection":"manufacturers","id":9} \N
24 25 directus_fields 10 {"hidden":false,"readonly":false,"collection":"manufacturers","field":"manufacturer","id":10} {"hidden":false,"readonly":false,"collection":"manufacturers","field":"manufacturer","id":10} \N
25 26 manufacturers 1 {"manufacturer":"Audi","id":1} {"manufacturer":"Audi","id":1} \N
26 27 manufacturers 2 {"manufacturer":"BMW","id":2} {"manufacturer":"BMW","id":2} \N
27 28 manufacturers 3 {"manufacturer":"Skoda","id":3} {"manufacturer":"Skoda","id":3} \N
28 29 directus_presets 2 {"bookmark":null,"role":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","search":null,"filters":null,"layout":"tabular","layout_query":{"tabular":{"sort":"manufacturer"}},"layout_options":null,"collection":"manufacturers","id":2} {"bookmark":null,"role":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","search":null,"filters":null,"layout":"tabular","layout_query":{"tabular":{"sort":"manufacturer"}},"layout_options":null,"collection":"manufacturers","id":2} \N
29 30 directus_presets 2 {"id":2,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"manufacturers","search":null,"filters":null,"layout":"tabular","layout_query":{"tabular":{"sort":"-manufacturer"}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"manufacturers","search":null,"filters":null,"layout":"tabular","layout_query":"{\\"tabular\\":{\\"sort\\":\\"-manufacturer\\"}}","layout_options":null} \N
30 31 directus_presets 2 {"id":2,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"manufacturers","search":null,"filters":null,"layout":"tabular","layout_query":{"tabular":{"sort":"manufacturer"}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"manufacturers","search":null,"filters":null,"layout":"tabular","layout_query":"{\\"tabular\\":{\\"sort\\":\\"manufacturer\\"}}","layout_options":null} \N
31 32 directus_collections cars {"collection":"cars","icon":"directions_car","note":"Cars","display_template":null,"hidden":false,"singleton":false,"translations":null,"archive_field":"status","archive_app_filter":true,"archive_value":"archived","unarchive_value":"draft","sort_field":null} {"sort_field":null} \N
32 33 directus_collections manufacturers {"collection":"manufacturers","icon":"handyman","note":null,"display_template":null,"hidden":false,"singleton":false,"translations":null,"archive_field":null,"archive_app_filter":true,"archive_value":null,"unarchive_value":null,"sort_field":null} {"icon":"handyman"} \N
33 34 directus_collections manufacturers {"collection":"manufacturers","icon":"handyman","note":"Manufacturers","display_template":null,"hidden":false,"singleton":false,"translations":null,"archive_field":null,"archive_app_filter":true,"archive_value":null,"unarchive_value":null,"sort_field":null} {"note":"Manufacturers"} \N
34 35 directus_fields 11 {"hidden":false,"interface":"many-to-one","display":"related-values","readonly":false,"collection":"cars","field":"manufacturer","id":11} {"hidden":false,"interface":"many-to-one","display":"related-values","readonly":false,"collection":"cars","field":"manufacturer","id":11} \N
35 36 directus_relations 3 {"many_collection":"cars","many_field":"manufacturer","many_primary":"id","one_collection":"manufacturers","one_primary":"id","one_field":"cars","id":3} {"many_collection":"cars","many_field":"manufacturer","many_primary":"id","one_collection":"manufacturers","one_primary":"id","one_field":"cars","id":3} \N
36 37 cars 1 {"id":1,"status":"draft","user_created":"dee95160-b78e-4aa1-b06d-89489a8eab03","date_created":"2021-01-16T13:47:16Z","user_updated":"dee95160-b78e-4aa1-b06d-89489a8eab03","date_updated":"2021-01-16T13:58:13Z","model":"Octavia RS iV","manufacturer":3} {"manufacturer":3,"user_updated":"dee95160-b78e-4aa1-b06d-89489a8eab03","date_updated":"2021-01-16T13:58:13.496Z"} \N
37 38 directus_presets 1 {"id":1,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["id","model","date_created","date_updated","manufacturer"]}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":"[{\\"key\\":\\"hide-archived\\",\\"field\\":\\"status\\",\\"operator\\":\\"neq\\",\\"value\\":\\"archived\\",\\"locked\\":true}]","layout":"tabular","layout_query":"{\\"tabular\\":{\\"fields\\":[\\"id\\",\\"model\\",\\"date_created\\",\\"date_updated\\",\\"manufacturer\\"]}}","layout_options":null} \N
38 39 directus_presets 1 {"id":1,"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":[{"key":"hide-archived","field":"status","operator":"neq","value":"archived","locked":true}],"layout":"tabular","layout_query":{"tabular":{"fields":["id","manufacturer","model","date_created","date_updated"]}},"layout_options":null} {"bookmark":null,"user":"dee95160-b78e-4aa1-b06d-89489a8eab03","role":null,"collection":"cars","search":null,"filters":"[{\\"key\\":\\"hide-archived\\",\\"field\\":\\"status\\",\\"operator\\":\\"neq\\",\\"value\\":\\"archived\\",\\"locked\\":true}]","layout":"tabular","layout_query":"{\\"tabular\\":{\\"fields\\":[\\"id\\",\\"manufacturer\\",\\"model\\",\\"date_created\\",\\"date_updated\\"]}}","layout_options":null} \N
39 40 directus_fields 11 {"id":11,"collection":"cars","field":"manufacturer","special":null,"interface":"many-to-one","options":null,"display":"related-values","display_options":{"template":"{{manufacturer}}"},"locked":false,"readonly":false,"hidden":false,"sort":null,"width":"full","group":null,"translations":null,"note":null} {"id":11,"collection":"cars","field":"manufacturer","special":null,"interface":"many-to-one","options":null,"display":"related-values","display_options":"{\\"template\\":\\"{{manufacturer}}\\"}","locked":false,"readonly":false,"hidden":false,"sort":null,"width":"full","group":null,"translations":null,"note":null} \N
40 41 directus_relations 3 {"id":3,"many_collection":"cars","many_field":"manufacturer","many_primary":"id","one_collection":"manufacturers","one_field":"cars","one_primary":"id","one_collection_field":null,"one_allowed_collections":null,"junction_field":null} {"id":3,"many_collection":"cars","many_field":"manufacturer","many_primary":"id","one_collection":"manufacturers","one_field":"cars","one_primary":"id","one_collection_field":null,"one_allowed_collections":null,"junction_field":null} \N
41 42 directus_fields 11 {"id":11,"collection":"cars","field":"manufacturer","special":null,"interface":"many-to-one","options":{"template":"{{manufacturer}}"},"display":"related-values","display_options":{"template":"{{manufacturer}}"},"locked":false,"readonly":false,"hidden":false,"sort":null,"width":"full","group":null,"translations":null,"note":null} {"id":11,"collection":"cars","field":"manufacturer","special":null,"interface":"many-to-one","options":"{\\"template\\":\\"{{manufacturer}}\\"}","display":"related-values","display_options":"{\\"template\\":\\"{{manufacturer}}\\"}","locked":false,"readonly":false,"hidden":false,"sort":null,"width":"full","group":null,"translations":null,"note":null} \N