214 lines
53 KiB
SQL
214 lines
53 KiB
SQL
PRAGMA foreign_keys=OFF;
|
|
BEGIN TRANSACTION;
|
|
CREATE TABLE `directus_migrations` (`version` varchar(255) not null, `name` varchar(255) not null, `timestamp` datetime default CURRENT_TIMESTAMP, primary key (`version`));
|
|
INSERT INTO directus_migrations VALUES('20201028A','Remove Collection Foreign Keys','2023-06-09 14:51:48');
|
|
INSERT INTO directus_migrations VALUES('20201029A','Remove System Relations','2023-06-09 14:51:48');
|
|
INSERT INTO directus_migrations VALUES('20201029B','Remove System Collections','2023-06-09 14:51:48');
|
|
INSERT INTO directus_migrations VALUES('20201029C','Remove System Fields','2023-06-09 14:51:48');
|
|
INSERT INTO directus_migrations VALUES('20201105A','Add Cascade System Relations','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20201105B','Change Webhook URL Type','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210225A','Add Relations Sort Field','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210304A','Remove Locked Fields','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210312A','Webhooks Collections Text','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210331A','Add Refresh Interval','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210415A','Make Filesize Nullable','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210416A','Add Collections Accountability','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210422A','Remove Files Interface','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210506A','Rename Interfaces','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210510A','Restructure Relations','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210518A','Add Foreign Key Constraints','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210519A','Add System Fk Triggers','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210521A','Add Collections Icon Color','2023-06-09 14:51:49');
|
|
INSERT INTO directus_migrations VALUES('20210525A','Add Insights','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210608A','Add Deep Clone Config','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210626A','Change Filesize Bigint','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210716A','Add Conditions to Fields','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210721A','Add Default Folder','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210802A','Replace Groups','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210803A','Add Required to Fields','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210805A','Update Groups','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210805B','Change Image Metadata Structure','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210811A','Add Geometry Config','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210831A','Remove Limit Column','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210903A','Add Auth Provider','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210907A','Webhooks Collections Not Null','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210910A','Move Module Setup','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210920A','Webhooks URL Not Null','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210924A','Add Collection Organization','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210927A','Replace Fields Group','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210927B','Replace M2M Interface','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20210929A','Rename Login Action','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20211007A','Update Presets','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20211009A','Add Auth Data','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20211016A','Add Webhook Headers','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20211103A','Set Unique to User Token','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20211103B','Update Special Geometry','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20211104A','Remove Collections Listing','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20211118A','Add Notifications','2023-06-09 14:51:50');
|
|
INSERT INTO directus_migrations VALUES('20211211A','Add Shares','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20211230A','Add Project Descriptor','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220303A','Remove Default Project Color','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220308A','Add Bookmark Icon and Color','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220314A','Add Translation Strings','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220322A','Rename Field Typecast Flags','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220323A','Add Field Validation','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220325A','Fix Typecast Flags','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220325B','Add Default Language','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220402A','Remove Default Value Panel Icon','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220429A','Add Flows','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220429B','Add Color to Insights Icon','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220429C','Drop Non Null From IP of Activity','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220429D','Drop Non Null From Sender of Notifications','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220614A','Rename Hook Trigger to Event','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220801A','Update Notifications Timestamp Column','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220802A','Add Custom Aspect Ratios','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20220826A','Add Origin to Accountability','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20230401A','Update Material Icons','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20230525A','Add Preview Settings','2023-06-09 14:51:51');
|
|
INSERT INTO directus_migrations VALUES('20230526A','Migrate Translation Strings','2023-06-09 14:51:51');
|
|
CREATE TABLE IF NOT EXISTS "directus_folders" (`id` char(36) NOT NULL, `name` varchar(255) NOT NULL, `parent` char(36), PRIMARY KEY (`id`), FOREIGN KEY (`parent`) REFERENCES `directus_folders` (`id`));
|
|
INSERT INTO directus_folders VALUES('4fe3c63a-cbec-4e7a-af2d-2ba454720476','pages',NULL);
|
|
INSERT INTO directus_folders VALUES('7c256639-be0b-4aac-9b41-e0d65635d92d','vendors',NULL);
|
|
CREATE TABLE IF NOT EXISTS "directus_relations" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `many_collection` varchar(64) NOT NULL, `many_field` varchar(64) NOT NULL, `one_collection` varchar(64), `one_field` varchar(64), `one_collection_field` varchar(64), `one_allowed_collections` text, `junction_field` varchar(64), `sort_field` varchar(64), `one_deselect_action` varchar(255) NOT NULL DEFAULT 'nullify');
|
|
INSERT INTO directus_relations VALUES(1,'categories','parent_id','categories','subcategories',NULL,NULL,NULL,NULL,'nullify');
|
|
INSERT INTO directus_relations VALUES(8,'vendors_categories','categories_id','categories','vendors',NULL,NULL,'vendors_id',NULL,'nullify');
|
|
INSERT INTO directus_relations VALUES(9,'vendors_categories','vendors_id','vendors','categories',NULL,NULL,'categories_id',NULL,'nullify');
|
|
INSERT INTO directus_relations VALUES(10,'menus_menu_items','menu_items_id','menu_items',NULL,NULL,NULL,'menus_id',NULL,'nullify');
|
|
INSERT INTO directus_relations VALUES(11,'menus_menu_items','menus_id','menus','menus_menu_items',NULL,NULL,'menu_items_id','sort','nullify');
|
|
CREATE TABLE IF NOT EXISTS "directus_revisions" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `activity` integer NOT NULL, `collection` varchar(64) NOT NULL, `item` varchar(255) NOT NULL, `data` json, `delta` json, `parent` integer, FOREIGN KEY (`parent`) REFERENCES `directus_revisions` (`id`), FOREIGN KEY (`activity`) REFERENCES `directus_activity` (`id`) ON DELETE CASCADE);
|
|
CREATE TABLE `directus_dashboards` (`id` char(36) not null, `name` varchar(255) not null, `icon` varchar(30) not null default 'dashboard', `note` text, `date_created` datetime default CURRENT_TIMESTAMP, `user_created` char(36), `color` varchar(255) null, foreign key(`user_created`) references `directus_users`(`id`) on delete SET NULL, primary key (`id`));
|
|
CREATE TABLE IF NOT EXISTS "directus_files" (`id` char(36) NOT NULL, `storage` varchar(255) NOT NULL, `filename_disk` varchar(255), `filename_download` varchar(255) NOT NULL, `title` varchar(255), `type` varchar(255), `folder` char(36), `uploaded_by` char(36), `uploaded_on` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `modified_by` char(36), `modified_on` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `charset` varchar(50), `filesize` bigint DEFAULT null, `width` integer, `height` integer, `duration` integer, `embed` varchar(200), `description` text, `location` text, `tags` text, `metadata` json, PRIMARY KEY (`id`), FOREIGN KEY (`uploaded_by`) REFERENCES `directus_users` (`id`), FOREIGN KEY (`modified_by`) REFERENCES `directus_users` (`id`), FOREIGN KEY (`folder`) REFERENCES `directus_folders` (`id`) ON DELETE SET NULL);
|
|
CREATE TABLE IF NOT EXISTS "directus_permissions" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `role` char(36), `collection` varchar(64) NOT NULL, `action` varchar(10) NOT NULL, `permissions` json, `validation` json, `presets` json, `fields` text, FOREIGN KEY (`role`) REFERENCES `directus_roles` (`id`) ON DELETE CASCADE);
|
|
INSERT INTO directus_permissions VALUES(1,NULL,'pages','read','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(4,NULL,'categories','read','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(9,NULL,'vendors','read','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(31,NULL,'vendors_categories','read','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(33,NULL,'globals','read','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(34,NULL,'menus','read','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(35,NULL,'menus_menu_items','read','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(36,NULL,'menu_items','read','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(37,NULL,'categories','create','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(38,NULL,'vendors','create','{}','{}',NULL,'*');
|
|
INSERT INTO directus_permissions VALUES(39,NULL,'vendors_categories','create','{}','{}',NULL,'*');
|
|
CREATE TABLE IF NOT EXISTS "directus_webhooks" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `name` varchar(255) NOT NULL, `method` varchar(10) NOT NULL DEFAULT 'POST', `url` varchar(255) NOT NULL, `status` varchar(10) NOT NULL DEFAULT 'active', `data` boolean NOT NULL DEFAULT '1', `actions` varchar(100) NOT NULL, `collections` varchar(255) NOT NULL, `headers` json);
|
|
CREATE TABLE IF NOT EXISTS "directus_collections" (`collection` varchar(64) NOT NULL, `icon` varchar(30), `note` text, `display_template` varchar(255), `hidden` boolean NOT NULL DEFAULT '0', `singleton` boolean NOT NULL DEFAULT '0', `translations` json, `archive_field` varchar(64), `archive_app_filter` boolean NOT NULL DEFAULT '1', `archive_value` varchar(255), `unarchive_value` varchar(255), `sort_field` varchar(64), `accountability` varchar(255) DEFAULT 'all', `color` varchar(255) NULL, `item_duplication_fields` json NULL, `sort` integer, `group` varchar(64), `collapse` varchar(255) NOT NULL DEFAULT 'open', `preview_url` varchar(255) null, PRIMARY KEY (`collection`), FOREIGN KEY (`group`) REFERENCES `directus_collections` (`collection`));
|
|
INSERT INTO directus_collections VALUES('pages','note',NULL,NULL,0,0,NULL,'status',1,'archived','draft',NULL,'all',NULL,NULL,3,NULL,'open',NULL);
|
|
INSERT INTO directus_collections VALUES('categories','category',NULL,'{{name}}',0,0,NULL,NULL,0,NULL,NULL,NULL,'all',NULL,NULL,4,NULL,'open',NULL);
|
|
INSERT INTO directus_collections VALUES('vendors','factory',NULL,'{{name}}',0,0,NULL,'status',1,'archived','draft',NULL,'all',NULL,NULL,5,NULL,'open',NULL);
|
|
INSERT INTO directus_collections VALUES('vendors_categories','import_export',NULL,NULL,1,0,NULL,NULL,1,NULL,NULL,NULL,'all',NULL,NULL,6,NULL,'open',NULL);
|
|
INSERT INTO directus_collections VALUES('globals','globe_uk',NULL,NULL,0,1,NULL,NULL,0,NULL,NULL,NULL,'all',NULL,NULL,1,NULL,'open',NULL);
|
|
INSERT INTO directus_collections VALUES('menus','restaurant_menu',NULL,NULL,0,0,NULL,NULL,1,NULL,NULL,NULL,'all',NULL,NULL,2,NULL,'open',NULL);
|
|
INSERT INTO directus_collections VALUES('menu_items','link',NULL,'{{label}} : {{url}}',1,0,NULL,NULL,1,NULL,NULL,'sort','all',NULL,NULL,1,'menus','open',NULL);
|
|
INSERT INTO directus_collections VALUES('menus_menu_items','import_export',NULL,NULL,1,0,NULL,NULL,1,NULL,NULL,NULL,'all',NULL,NULL,7,NULL,'open',NULL);
|
|
CREATE TABLE IF NOT EXISTS "directus_fields" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `collection` varchar(64) NOT NULL, `field` varchar(64) NOT NULL, `special` varchar(64), `interface` varchar(64), `options` json, `display` varchar(64), `display_options` json, `readonly` boolean NOT NULL DEFAULT '0', `hidden` boolean NOT NULL DEFAULT '0', `sort` integer, `width` varchar(30) DEFAULT 'full', `translations` json, `note` text, `conditions` json, `required` boolean DEFAULT '0', `group` varchar(64), `validation` json, `validation_message` text);
|
|
INSERT INTO directus_fields VALUES(1,'pages','slug',NULL,'input',NULL,NULL,NULL,0,0,2,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(2,'pages','status',NULL,'select-dropdown','{"choices":[{"text":"$t:published","value":"published"},{"text":"$t:draft","value":"draft"},{"text":"$t:archived","value":"archived"}]}','labels','{"showAsDot":true,"choices":[{"text":"$t:published","value":"published","foreground":"#FFFFFF","background":"var(--primary)"},{"text":"$t:draft","value":"draft","foreground":"#18222F","background":"#D3DAE4"},{"text":"$t:archived","value":"archived","foreground":"#FFFFFF","background":"var(--warning)"}]}',0,0,3,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(3,'pages','title',NULL,'input',NULL,NULL,NULL,0,0,4,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(4,'pages','content',NULL,'input-rich-text-html','{"toolbar":["undo","redo","bold","italic","underline","strikethrough","subscript","superscript","fontfamily","fontsize","h1","h2","h3","h4","h5","h6","alignleft","aligncenter","alignright","alignjustify","alignnone","indent","outdent","numlist","bullist","forecolor","backcolor","removeformat","cut","copy","paste","remove","selectall","blockquote","customLink","unlink","customImage","customMedia","table","hr","code","fullscreen","visualaid"],"folder":"4fe3c63a-cbec-4e7a-af2d-2ba454720476"}',NULL,NULL,0,0,5,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(5,'categories','id','uuid','input',NULL,NULL,NULL,1,1,1,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(6,'categories','slug',NULL,'input','{"font":"monospace","trim":true,"slug":true}',NULL,NULL,0,0,2,'full',NULL,NULL,NULL,1,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(7,'categories','name',NULL,'input',NULL,NULL,NULL,0,0,3,'full',NULL,NULL,NULL,1,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(8,'categories','subcategories','o2m','list-o2m',NULL,'related-values','{"template":"{{name}}"}',0,0,5,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(9,'categories','parent_id',NULL,'select-dropdown-m2o',NULL,'related-values','{"template":"{{name}}"}',0,1,4,'full','[{"language":"en-US","translation":"Parent category"}]',NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(10,'vendors','id','uuid','input',NULL,NULL,NULL,1,1,1,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(11,'vendors','status',NULL,'select-dropdown','{"choices":[{"text":"$t:published","value":"published"},{"text":"$t:draft","value":"draft"},{"text":"$t:archived","value":"archived"}]}','labels','{"showAsDot":true,"choices":[{"text":"$t:published","value":"published","foreground":"#FFFFFF","background":"var(--primary)"},{"text":"$t:draft","value":"draft","foreground":"#18222F","background":"#D3DAE4"},{"text":"$t:archived","value":"archived","foreground":"#FFFFFF","background":"var(--warning)"}]}',0,0,2,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(12,'vendors','slug',NULL,'input','{"font":"monospace","trim":true,"slug":true}',NULL,NULL,0,0,3,'full',NULL,NULL,NULL,1,NULL,'{"_and":[{"slug":{"_regex":"/[0-9a-z\\-_]+/"}}]}',NULL);
|
|
INSERT INTO directus_fields VALUES(13,'vendors','name',NULL,'input',NULL,NULL,NULL,0,0,4,'full',NULL,NULL,NULL,1,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(17,'vendors','website',NULL,'input',NULL,NULL,NULL,0,0,6,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(18,'vendors','description',NULL,'input-multiline','{"trim":true}',NULL,NULL,0,0,5,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(19,'vendors','address','alias,no-data,group','group-detail',NULL,NULL,NULL,0,0,7,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(20,'vendors','address_line_1',NULL,'input',NULL,NULL,NULL,0,0,1,'full',NULL,NULL,NULL,0,'address',NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(21,'vendors','address_line_2',NULL,'input',NULL,NULL,NULL,0,0,2,'full',NULL,NULL,NULL,0,'address',NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(22,'vendors','city',NULL,'input',NULL,NULL,NULL,0,0,3,'full',NULL,NULL,NULL,0,'address',NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(23,'vendors','state',NULL,'input',NULL,NULL,NULL,0,0,4,'full',NULL,NULL,NULL,0,'address',NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(24,'vendors','country',NULL,'input',NULL,NULL,NULL,0,0,5,'full',NULL,NULL,NULL,0,'address',NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(40,'vendors','categories','m2m','list-m2m','{"enableCreate":false,"template":"{{categories_id.name}}"}','related-values','{"template":"{{categories_id.name}}"}',0,0,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(41,'vendors_categories','id',NULL,NULL,NULL,NULL,NULL,0,1,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(42,'categories','vendors','m2m','list-m2m',NULL,'related-values','{"template":"{{vendors_id.name}}"}',0,0,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(43,'vendors_categories','vendors_id',NULL,NULL,NULL,NULL,NULL,0,1,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(44,'vendors_categories','categories_id',NULL,NULL,NULL,NULL,NULL,0,1,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(45,'globals','id','uuid','input',NULL,NULL,NULL,1,1,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(46,'globals','site_name',NULL,'input',NULL,NULL,NULL,0,0,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(47,'globals','meta_title',NULL,'input',NULL,NULL,NULL,0,0,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(48,'globals','meta_description',NULL,'input',NULL,NULL,NULL,0,0,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(50,'pages','show_in','cast-json','select-multiple-checkbox','{"choices":[{"text":"Main menu","value":"MAIN_MENU"},{"text":"Footer","value":"FOOTER"}]}','labels',NULL,0,0,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(51,'globals','copyright',NULL,'input',NULL,NULL,NULL,0,0,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(52,'menus','id',NULL,'input',NULL,NULL,NULL,0,0,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(53,'menu_items','id','uuid','input',NULL,NULL,NULL,1,1,1,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(54,'menu_items','sort',NULL,'input',NULL,NULL,NULL,0,1,2,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(55,'menu_items','url',NULL,'input',NULL,NULL,NULL,0,0,4,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(56,'menu_items','label',NULL,'input',NULL,NULL,NULL,0,0,3,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(57,'menus','menus_menu_items','m2m','list-m2m','{"template":"{{menu_items_id.label}} : {{menu_items_id.url}}"}',NULL,NULL,0,0,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(58,'menus_menu_items','id',NULL,NULL,NULL,NULL,NULL,0,1,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(59,'menus_menu_items','menus_id',NULL,NULL,NULL,NULL,NULL,0,1,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(60,'menus_menu_items','menu_items_id',NULL,NULL,NULL,NULL,NULL,0,1,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
INSERT INTO directus_fields VALUES(61,'menus_menu_items','sort',NULL,NULL,NULL,NULL,NULL,0,1,NULL,'full',NULL,NULL,NULL,0,NULL,NULL,NULL);
|
|
CREATE TABLE IF NOT EXISTS "directus_roles" (`id` char(36) NOT NULL, `name` varchar(100) NOT NULL, `icon` varchar(30) NOT NULL DEFAULT 'supervised_user_circle', `description` text, `ip_access` text, `enforce_tfa` boolean NOT NULL DEFAULT '0', `admin_access` boolean NOT NULL DEFAULT '0', `app_access` boolean NOT NULL DEFAULT '1', PRIMARY KEY (`id`));
|
|
INSERT INTO directus_roles VALUES('067808bd-7c13-40be-8c11-9ba654b79465','Administrator','verified','$t:admin_description',NULL,0,1,1);
|
|
CREATE TABLE `directus_shares` (`id` char(36) not null, `name` varchar(255), `collection` varchar(64), `item` varchar(255), `role` char(36), `password` varchar(255), `user_created` char(36), `date_created` datetime default CURRENT_TIMESTAMP, `date_start` datetime null default null, `date_end` datetime null default null, `times_used` integer default '0', `max_uses` integer, foreign key(`collection`) references `directus_collections`(`collection`) on delete CASCADE, foreign key(`role`) references `directus_roles`(`id`) on delete CASCADE, foreign key(`user_created`) references `directus_users`(`id`) on delete SET NULL, primary key (`id`));
|
|
CREATE TABLE IF NOT EXISTS "directus_sessions" (`token` varchar(64) NOT NULL, `user` char(36), `expires` datetime NOT NULL, `ip` varchar(255), `user_agent` varchar(255), `share` char(36), `origin` varchar(255) null, PRIMARY KEY (`token`), FOREIGN KEY (`user`) REFERENCES `directus_users` (`id`) ON DELETE CASCADE, FOREIGN KEY (`share`) REFERENCES `directus_shares` (`id`) ON DELETE CASCADE);
|
|
INSERT INTO directus_sessions VALUES('zVkLBSmqN7wGs-xJoUosnjDGg9IRciBMAEkD5NCgH7FMhs7FMFYYLVJUKeUkx2Ks','f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',1689178506425,'127.0.0.1','Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0',NULL,'http://0.0.0.0:8055');
|
|
INSERT INTO directus_sessions VALUES('Cmb57EldF4eN2GH3YnDxJ3_9Xo1uDVMq4Bif3rByZonrIXBi0Q-M8md14m4k9VLF','f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',1689258341674,'127.0.0.1','Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',NULL,'http://0.0.0.0:8055');
|
|
CREATE TABLE IF NOT EXISTS "directus_users" (`id` char(36) NOT NULL, `first_name` varchar(50), `last_name` varchar(50), `email` varchar(128), `password` varchar(255), `location` varchar(255), `title` varchar(50), `description` text, `tags` json, `avatar` char(36), `language` varchar(255) DEFAULT null, `theme` varchar(20) DEFAULT 'auto', `tfa_secret` varchar(255), `status` varchar(16) NOT NULL DEFAULT 'active', `role` char(36), `token` varchar(255), `last_access` datetime, `last_page` varchar(255), `provider` varchar(128) NOT NULL DEFAULT 'default', `external_identifier` varchar(255), `auth_data` json, `email_notifications` boolean DEFAULT '1', PRIMARY KEY (`id`), FOREIGN KEY (`role`) REFERENCES `directus_roles` (`id`) ON DELETE SET NULL);
|
|
INSERT INTO directus_users VALUES('f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',NULL,NULL,'okram@civokram.com','$argon2id$v=19$m=65536,t=3,p=4$rk0X9HITfk7OIfvEjOrbew$Q4wUp0tjs42ocHPwVPzI3dksy+JKWzQzO5a3gqOwDg8',NULL,NULL,NULL,NULL,NULL,NULL,'auto',NULL,'active','067808bd-7c13-40be-8c11-9ba654b79465',NULL,1688653541690,'/content/vendors','default',NULL,NULL,1);
|
|
CREATE TABLE IF NOT EXISTS "directus_panels" (`id` char(36) NOT NULL, `dashboard` char(36) NOT NULL, `name` varchar(255), `icon` varchar(30) DEFAULT null, `color` varchar(10), `show_header` boolean NOT NULL DEFAULT '0', `note` text, `type` varchar(255) NOT NULL, `position_x` integer NOT NULL, `position_y` integer NOT NULL, `width` integer NOT NULL, `height` integer NOT NULL, `options` json, `date_created` datetime DEFAULT CURRENT_TIMESTAMP, `user_created` char(36), FOREIGN KEY (`dashboard`) REFERENCES `directus_dashboards` (`id`) ON DELETE CASCADE, FOREIGN KEY (`user_created`) REFERENCES `directus_users` (`id`) ON DELETE SET NULL, PRIMARY KEY (`id`));
|
|
CREATE TABLE `directus_flows` (`id` char(36) not null, `name` varchar(255) not null, `icon` varchar(30), `color` varchar(255) null, `description` text, `status` varchar(255) not null default 'active', `trigger` varchar(255), `accountability` varchar(255) default 'all', `options` json, `operation` char(36), `date_created` datetime default CURRENT_TIMESTAMP, `user_created` char(36), foreign key(`user_created`) references `directus_users`(`id`) on delete SET NULL, primary key (`id`));
|
|
CREATE TABLE `directus_operations` (`id` char(36) not null, `name` varchar(255), `key` varchar(255) not null, `type` varchar(255) not null, `position_x` integer not null, `position_y` integer not null, `options` json, `resolve` char(36), `reject` char(36), `flow` char(36) not null, `date_created` datetime default CURRENT_TIMESTAMP, `user_created` char(36), foreign key(`resolve`) references `directus_operations`(`id`), foreign key(`reject`) references `directus_operations`(`id`), foreign key(`flow`) references `directus_flows`(`id`) on delete CASCADE, foreign key(`user_created`) references `directus_users`(`id`) on delete SET NULL, primary key (`id`));
|
|
CREATE TABLE IF NOT EXISTS "directus_activity" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `action` varchar(45) NOT NULL, `user` char(36), `timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `ip` varchar(50), `user_agent` varchar(255), `collection` varchar(64) NOT NULL, `item` varchar(255) NOT NULL, `comment` text, `origin` varchar(255) null);
|
|
CREATE TABLE IF NOT EXISTS "directus_notifications" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `timestamp` datetime DEFAULT CURRENT_TIMESTAMP, `status` varchar(255) DEFAULT 'inbox', `recipient` char(36) NOT NULL, `sender` char(36), `subject` varchar(255) NOT NULL, `message` text, `collection` varchar(64), `item` varchar(255), FOREIGN KEY (`recipient`) REFERENCES `directus_users` (`id`) ON DELETE CASCADE, FOREIGN KEY (`sender`) REFERENCES `directus_users` (`id`));
|
|
CREATE TABLE IF NOT EXISTS "directus_presets" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `bookmark` varchar(255), `user` char(36), `role` char(36), `collection` varchar(64), `search` varchar(100), `layout` varchar(100) DEFAULT 'tabular', `layout_query` json, `layout_options` json, `refresh_interval` integer, `filter` json, `icon` varchar(30) DEFAULT 'bookmark', `color` varchar(255) NULL, FOREIGN KEY (`user`) REFERENCES `directus_users` (`id`) ON DELETE CASCADE, FOREIGN KEY (`role`) REFERENCES `directus_roles` (`id`) ON DELETE CASCADE);
|
|
INSERT INTO directus_presets VALUES(1,NULL,'f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',NULL,'directus_files',NULL,'cards','{"cards":{"sort":["-uploaded_on"],"limit":25,"page":1}}','{"cards":{"icon":"insert_drive_file","title":"{{ title }}","subtitle":"{{ type }} • {{ filesize }}","size":4,"imageFit":"crop"}}',NULL,NULL,'bookmark',NULL);
|
|
INSERT INTO directus_presets VALUES(2,NULL,'f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',NULL,'pages',NULL,'tabular','{"tabular":{"page":1,"fields":["status","slug","title","content"]}}','{"tabular":{"widths":{"status":105,"content":350}}}',NULL,NULL,'bookmark',NULL);
|
|
INSERT INTO directus_presets VALUES(3,NULL,'f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',NULL,'directus_users',NULL,'cards','{"cards":{"sort":["email"],"limit":25,"page":1}}','{"cards":{"icon":"account_circle","title":"{{ first_name }} {{ last_name }}","subtitle":"{{ email }}","size":4}}',NULL,NULL,'bookmark',NULL);
|
|
INSERT INTO directus_presets VALUES(4,NULL,'f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',NULL,'directus_presets',NULL,NULL,'{"tabular":{"limit":25}}',NULL,NULL,NULL,'bookmark',NULL);
|
|
INSERT INTO directus_presets VALUES(5,NULL,'f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',NULL,'categories','',NULL,'{"tabular":{"limit":50,"page":1,"fields":["name","subcategories","vendors"],"sort":["name"]}}','{"tabular":{"widths":{"name":354,"subcategories":259}}}',NULL,'{"_and":[{"parent_id":{"id":{"_null":true}}}]}','bookmark',NULL);
|
|
INSERT INTO directus_presets VALUES(6,NULL,'f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',NULL,'vendors',NULL,NULL,'{"tabular":{"page":1,"limit":25,"fields":["status","name","city","state","country","categories"],"sort":["name"]}}','{"tabular":{"widths":{"status":104,"name":342,"categories.categories_id.name":505},"spacing":"compact"}}',NULL,NULL,'bookmark',NULL);
|
|
INSERT INTO directus_presets VALUES(8,NULL,'f9df4549-e9e6-4b67-a0bd-7e4aa657bff6',NULL,'menus',NULL,NULL,'{"tabular":{"limit":25,"fields":["id","menus_menu_items.menu_items_id.label"]}}','{"tabular":{"widths":{"menus_menu_items.menu_items_id.label":475}}}',NULL,NULL,'bookmark',NULL);
|
|
CREATE TABLE `directus_translations` (`id` char(36) not null, `language` varchar(255) not null, `key` varchar(255) not null, `value` text not null, primary key (`id`));
|
|
CREATE TABLE IF NOT EXISTS "directus_settings" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `project_name` varchar(100) NOT NULL DEFAULT 'Directus', `project_url` varchar(255), `project_color` varchar(50) DEFAULT null, `project_logo` char(36), `public_foreground` char(36), `public_background` char(36), `public_note` text, `auth_login_attempts` integer DEFAULT '25', `auth_password_policy` varchar(100), `storage_asset_transform` varchar(7) DEFAULT 'all', `storage_asset_presets` json, `custom_css` text, `storage_default_folder` char(36), `basemaps` json, `mapbox_key` varchar(255), `module_bar` json, `project_descriptor` varchar(100) NULL, `default_language` varchar(255) NOT NULL DEFAULT 'en-US', `custom_aspect_ratios` json, FOREIGN KEY (`project_logo`) REFERENCES `directus_files` (`id`), FOREIGN KEY (`public_foreground`) REFERENCES `directus_files` (`id`), FOREIGN KEY (`public_background`) REFERENCES `directus_files` (`id`), CONSTRAINT `directus_settings_storage_default_folder_foreign` FOREIGN KEY (`storage_default_folder`) REFERENCES `directus_folders` (`id`) ON DELETE SET NULL);
|
|
INSERT INTO directus_settings VALUES(1,'Directus',NULL,NULL,NULL,NULL,NULL,NULL,25,NULL,'all',NULL,NULL,NULL,NULL,NULL,'[{"type":"module","id":"content","enabled":true},{"type":"module","id":"users","enabled":true},{"type":"module","id":"files","enabled":true},{"type":"module","id":"insights","enabled":true},{"type":"module","id":"settings","enabled":true,"locked":true}]',NULL,'en-US',NULL);
|
|
CREATE TABLE IF NOT EXISTS "categories" (`id` char(36) NOT NULL, `slug` varchar(255) NULL DEFAULT null, `name` varchar(255) NULL, `parent_id` char(36) NULL, PRIMARY KEY (`id`), CONSTRAINT `categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `categories` (`id`) ON DELETE NO ACTION);
|
|
CREATE TABLE IF NOT EXISTS "vendors" (`id` char(36) NOT NULL, `status` varchar(255) NOT NULL DEFAULT 'draft', `slug` varchar(255) NULL DEFAULT null, `name` varchar(255) null, `website` varchar(255) null, `description` text null, `address_line_1` varchar(255) null, `address_line_2` varchar(255) null, `city` varchar(255) null, `state` varchar(255) null, `country` varchar(255) null, PRIMARY KEY (`id`));
|
|
CREATE TABLE IF NOT EXISTS "vendors_categories" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `vendors_id` char(36) NULL, `categories_id` char(36) NULL, CONSTRAINT `vendors_categories_categories_id_foreign` FOREIGN KEY (`categories_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL, CONSTRAINT `vendors_categories_vendors_id_foreign` FOREIGN KEY (`vendors_id`) REFERENCES `vendors` (`id`) ON DELETE SET NULL);
|
|
CREATE TABLE `globals` (`id` char(36) not null, `site_name` varchar(255) null, `meta_title` varchar(255) null, `meta_description` varchar(255) null, `copyright` varchar(255) null, primary key (`id`));
|
|
INSERT INTO globals VALUES('4f8d9e66-ec95-4bdd-a5e7-34df8ea68a45','PCA Pijac','PCA Pijac','Tha bEST pijac evar majkemi!','© 2003 PCA Pijac. All Rights Reversed');
|
|
CREATE TABLE IF NOT EXISTS "pages" (`slug` varchar(255) NOT NULL, `status` varchar(255) NOT NULL DEFAULT 'draft', `title` varchar(255) NULL, `content` text NULL, `show_in` json NULL, PRIMARY KEY (`slug`));
|
|
INSERT INTO pages VALUES('about-us','published','About Us','<p>Lorem ipsum ...</p>','[]');
|
|
INSERT INTO pages VALUES('privacy-policy','published','Privacy',replace('<h1>Privacy Policy</h1>\n<p>Last updated: June 14, 2023</p>\n<p>This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the Service and tells You about Your privacy rights and how the law protects You.</p>\n<p>We use Your Personal data to provide and improve the Service. By using the Service, You agree to the collection and use of information in accordance with this Privacy Policy. This Privacy Policy has been created with the help of the <a href="https://www.freeprivacypolicy.com/free-privacy-policy-generator/" target="_blank" rel="noopener">Free Privacy Policy Generator</a>.</p>\n<h1>Interpretation and Definitions</h1>\n<h2>Interpretation</h2>\n<p>The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.</p>\n<h2>Definitions</h2>\n<p>For the purposes of this Privacy Policy:</p>\n<ul>\n<li>\n<p><strong>Account</strong> means a unique account created for You to access our Service or parts of our Service.</p>\n</li>\n<li>\n<p><strong>Affiliate</strong> means an entity that controls, is controlled by or is under common control with a party, where "control" means ownership of 50% or more of the shares, equity interest or other securities entitled to vote for election of directors or other managing authority.</p>\n</li>\n<li>\n<p><strong>Company</strong> (referred to as either "the Company", "We", "Us" or "Our" in this Agreement) refers to PCA Pijac, Maršala Tite 1, Belgrade.</p>\n</li>\n<li>\n<p><strong>Cookies</strong> are small files that are placed on Your computer, mobile device or any other device by a website, containing the details of Your browsing history on that website among its many uses.</p>\n</li>\n<li>\n<p><strong>Country</strong> refers to: Serbia</p>\n</li>\n<li>\n<p><strong>Device</strong> means any device that can access the Service such as a computer, a cellphone or a digital tablet.</p>\n</li>\n<li>\n<p><strong>Personal Data</strong> is any information that relates to an identified or identifiable individual.</p>\n</li>\n<li>\n<p><strong>Service</strong> refers to the Website.</p>\n</li>\n<li>\n<p><strong>Service Provider</strong> means any natural or legal person who processes the data on behalf of the Company. It refers to third-party companies or individuals employed by the Company to facilitate the Service, to provide the Service on behalf of the Company, to perform services related to the Service or to assist the Company in analyzing how the Service is used.</p>\n</li>\n<li>\n<p><strong>Usage Data</strong> refers to data collected automatically, either generated by the use of the Service or from the Service infrastructure itself (for example, the duration of a page visit).</p>\n</li>\n<li>\n<p><strong>Website</strong> refers to PCA Pijac, accessible from <a href="pcapijac.com" target="_blank" rel="external nofollow noopener">pcapijac.com</a></p>\n</li>\n<li>\n<p><strong>You</strong> means the individual accessing or using the Service, or the company, or other legal entity on behalf of which such individual is accessing or using the Service, as applicable.</p>\n</li>\n</ul>\n<h1>Collecting and Using Your Personal Data</h1>\n<h2>Types of Data Collected</h2>\n<h3>Personal Data</h3>\n<p>While using Our Service, We may ask You to provide Us with certain personally identifiable information that can be used to contact or identify You. Personally identifiable information may include, but is not limited to:</p>\n<ul>\n<li>\n<p>Email address</p>\n</li>\n<li>\n<p>Usage Data</p>\n</li>\n</ul>\n<h3>Usage Data</h3>\n<p>Usage Data is collected automatically when using the Service.</p>\n<p>Usage Data may include information such as Your Device''s Internet Protocol address (e.g. IP address), browser type, browser version, the pages of our Service that You visit, the time and date of Your visit, the time spent on those pages, unique device identifiers and other diagnostic data.</p>\n<p>When You access the Service by or through a mobile device, We may collect certain information automatically, including, but not limited to, the type of mobile device You use, Your mobile device unique ID, the IP address of Your mobile device, Your mobile operating system, the type of mobile Internet browser You use, unique device identifiers and other diagnostic data.</p>\n<p>We may also collect information that Your browser sends whenever You visit our Service or when You access the Service by or through a mobile device.</p>\n<h3>Tracking Technologies and Cookies</h3>\n<p>We use Cookies and similar tracking technologies to track the activity on Our Service and store certain information. Tracking technologies used are beacons, tags, and scripts to collect and track information and to improve and analyze Our Service. The technologies We use may include:</p>\n<ul>\n<li><strong>Cookies or Browser Cookies.</strong> A cookie is a small file placed on Your Device. You can instruct Your browser to refuse all Cookies or to indicate when a Cookie is being sent. However, if You do not accept Cookies, You may not be able to use some parts of our Service. Unless you have adjusted Your browser setting so that it will refuse Cookies, our Service may use Cookies.</li>\n<li><strong>Web Beacons.</strong> Certain sections of our Service and our emails may contain small electronic files known as web beacons (also referred to as clear gifs, pixel tags, and single-pixel gifs) that permit the Company, for example, to count users who have visited those pages or opened an email and for other related website statistics (for example, recording the popularity of a certain section and verifying system and server integrity).</li>\n</ul>\n<p>Cookies can be "Persistent" or "Session" Cookies. Persistent Cookies remain on Your personal computer or mobile device when You go offline, while Session Cookies are deleted as soon as You close Your web browser. Learn more about cookies on the <a href="https://www.freeprivacypolicy.com/blog/sample-privacy-policy-template/#Use_Of_Cookies_And_Tracking" target="_blank" rel="noopener">Free Privacy Policy website</a> article.</p>\n<p>We use both Session and Persistent Cookies for the purposes set out below:</p>\n<ul>\n<li>\n<p><strong>Necessary / Essential Cookies</strong></p>\n<p>Type: Session Cookies</p>\n<p>Administered by: Us</p>\n<p>Purpose: These Cookies are essential to provide You with services available through the Website and to enable You to use some of its features. They help to authenticate users and prevent fraudulent use of user accounts. Without these Cookies, the services that You have asked for cannot be provided, and We only use these Cookies to provide You with those services.</p>\n</li>\n<li>\n<p><strong>Cookies Policy / Notice Acceptance Cookies</strong></p>\n<p>Type: Persistent Cookies</p>\n<p>Administered by: Us</p>\n<p>Purpose: These Cookies identify if users have accepted the use of cookies on the Website.</p>\n</li>\n<li>\n<p><strong>Functionality Cookies</strong></p>\n<p>Type: Persistent Cookies</p>\n<p>Administered by: Us</p>\n<p>Purpose: These Cookies allow us to remember choices You make when You use the Website, such as remembering your login details or language preference. The purpose of these Cookies is to provide You with a more personal experience and to avoid You having to re-enter your preferences every time You use the Website.</p>\n</li>\n</ul>\n<p>For more information about the cookies we use and your choices regarding cookies, please visit our Cookies Policy or the Cookies section of our Privacy Policy.</p>\n<h2>Use of Your Personal Data</h2>\n<p>The Company may use Personal Data for the following purposes:</p>\n<ul>\n<li>\n<p><strong>To provide and maintain our Service</strong>, including to monitor the usage of our Service.</p>\n</li>\n<li>\n<p><strong>To manage Your Account:</strong> to manage Your registration as a user of the Service. The Personal Data You provide can give You access to different functionalities of the Service that are available to You as a registered user.</p>\n</li>\n<li>\n<p><strong>For the performance of a contract:</strong> the development, compliance and undertaking of the purchase contract for the products, items or services You have purchased or of any other contract with Us through the Service.</p>\n</li>\n<li>\n<p><strong>To contact You:</strong> To contact You by email, telephone calls, SMS, or other equivalent forms of electronic communication, such as a mobile application''s push notifications regarding updates or informative communications related to the functionalities, products or contracted services, including the security updates, when necessary or reasonable for their implementation.</p>\n</li>\n<li>\n<p><strong>To provide You</strong> with news, special offers and general information about other goods, services and events which we offer that are similar to those that you have already purchased or enquired about unless You have opted not to receive such information.</p>\n</li>\n<li>\n<p><strong>To manage Your requests:</strong> To attend and manage Your requests to Us.</p>\n</li>\n<li>\n<p><strong>For business transfers:</strong> We may use Your information to evaluate or conduct a merger, divestiture, restructuring, reorganization, dissolution, or other sale or transfer of some or all of Our assets, whether as a going concern or as part of bankruptcy, liquidation, or similar proceeding, in which Personal Data held by Us about our Service users is among the assets transferred.</p>\n</li>\n<li>\n<p><strong>For other purposes</strong>: We may use Your information for other purposes, such as data analysis, identifying usage trends, determining the effectiveness of our promotional campaigns and to evaluate and improve our Service, products, services, marketing and your experience.</p>\n</li>\n</ul>\n<p>We may share Your personal information in the following situations:</p>\n<ul>\n<li><strong>With Service Providers:</strong> We may share Your personal information with Service Providers to monitor and analyze the use of our Service, to contact You.</li>\n<li><strong>For business transfers:</strong> We may share or transfer Your personal information in connection with, or during negotiations of, any merger, sale of Company assets, financing, or acquisition of all or a portion of Our business to another company.</li>\n<li><strong>With Affiliates:</strong> We may share Your information with Our affiliates, in which case we will require those affiliates to honor this Privacy Policy. Affiliates include Our parent company and any other subsidiaries, joint venture partners or other companies that We control or that are under common control with Us.</li>\n<li><strong>With business partners:</strong> We may share Your information with Our business partners to offer You certain products, services or promotions.</li>\n<li><strong>With other users:</strong> when You share personal information or otherwise interact in the public areas with other users, such information may be viewed by all users and may be publicly distributed outside.</li>\n<li><strong>With Your consent</strong>: We may disclose Your personal information for any other purpose with Your consent.</li>\n</ul>\n<h2>Retention of Your Personal Data</h2>\n<p>The Company will retain Your Personal Data only for as long as is necessary for the purposes set out in this Privacy Policy. We will retain and use Your Personal Data to the extent necessary to comply with our legal obligations (for example, if we are required to retain your data to comply with applicable laws), resolve disputes, and enforce our legal agreements and policies.</p>\n<p>The Company will also retain Usage Data for internal analysis purposes. Usage Data is generally retained for a shorter period of time, except when this data is used to strengthen the security or to improve the functionality of Our Service, or We are legally obligated to retain this data for longer time periods.</p>\n<h2>Transfer of Your Personal Data</h2>\n<p>Your information, including Personal Data, is processed at the Company''s operating offices and in any other places where the parties involved in the processing are located. It means that this information may be transferred to — and maintained on — computers located outside of Your state, province, country or other governmental jurisdiction where the data protection laws may differ than those from Your jurisdiction.</p>\n<p>Your consent to this Privacy Policy followed by Your submission of such information represents Your agreement to that transfer.</p>\n<p>The Company will take all steps reasonably necessary to ensure that Your data is treated securely and in accordance with this Privacy Policy and no transfer of Your Personal Data will take place to an organization or a country unless there are adequate controls in place including the security of Your data and other personal information.</p>\n<h2>Delete Your Personal Data</h2>\n<p>You have the right to delete or request that We assist in deleting the Personal Data that We have collected about You.</p>\n<p>Our Service may give You the ability to delete certain information about You from within the Service.</p>\n<p>You may update, amend, or delete Your information at any time by signing in to Your Account, if you have one, and visiting the account settings section that allows you to manage Your personal information. You may also contact Us to request access to, correct, or delete any personal information that You have provided to Us.</p>\n<p>Please note, however, that We may need to retain certain information when we have a legal obligation or lawful basis to do so.</p>\n<h2>Disclosure of Your Personal Data</h2>\n<h3>Business Transactions</h3>\n<p>If the Company is involved in a merger, acquisition or asset sale, Your Personal Data may be transferred. We will provide notice before Your Personal Data is transferred and becomes subject to a different Privacy Policy.</p>\n<h3>Law enforcement</h3>\n<p>Under certain circumstances, the Company may be required to disclose Your Personal Data if required to do so by law or in response to valid requests by public authorities (e.g. a court or a government agency).</p>\n<h3>Other legal requirements</h3>\n<p>The Company may disclose Your Personal Data in the good faith belief that such action is necessary to:</p>\n<ul>\n<li>Comply with a legal obligation</li>\n<li>Protect and defend the rights or property of the Company</li>\n<li>Prevent or investigate possible wrongdoing in connection with the Service</li>\n<li>Protect the personal safety of Users of the Service or the public</li>\n<li>Protect against legal liability</li>\n</ul>\n<h2>Security of Your Personal Data</h2>\n<p>The security of Your Personal Data is important to Us, but remember that no method of transmission over the Internet, or method of electronic storage is 100% secure. While We strive to use commercially acceptable means to protect Your Personal Data, We cannot guarantee its absolute security.</p>\n<h1>Children''s Privacy</h1>\n<p>Our Service does not address anyone under the age of 13. We do not knowingly collect personally identifiable information from anyone under the age of 13. If You are a parent or guardian and You are aware that Your child has provided Us with Personal Data, please contact Us. If We become aware that We have collected Personal Data from anyone under the age of 13 without verification of parental consent, We take steps to remove that information from Our servers.</p>\n<p>If We need to rely on consent as a legal basis for processing Your information and Your country requires consent from a parent, We may require Your parent''s consent before We collect and use that information.</p>\n<h1>Links to Other Websites</h1>\n<p>Our Service may contain links to other websites that are not operated by Us. If You click on a third party link, You will be directed to that third party''s site. We strongly advise You to review the Privacy Policy of every site You visit.</p>\n<p>We have no control over and assume no responsibility for the content, privacy policies or practices of any third party sites or services.</p>\n<h1>Changes to this Privacy Policy</h1>\n<p>We may update Our Privacy Policy from time to time. We will notify You of any changes by posting the new Privacy Policy on this page.</p>\n<p>We will let You know via email and/or a prominent notice on Our Service, prior to the change becoming effective and update the "Last updated" date at the top of this Privacy Policy.</p>\n<p>You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page.</p>\n<h1>Contact Us</h1>\n<p>If you have any questions about this Privacy Policy, You can contact us:</p>\n<ul>\n<li>By email: privacy@pcapijac.com</li>\n</ul>','\n',char(10)),'["FOOTER"]');
|
|
CREATE TABLE `menus` (`id` varchar(255) not null, primary key (`id`));
|
|
INSERT INTO menus VALUES('MAIN_MENU');
|
|
INSERT INTO menus VALUES('FOOTER_MENU');
|
|
CREATE TABLE `menu_items` (`id` char(36) not null, `sort` integer null, `url` varchar(255) null, `label` varchar(255) null, primary key (`id`));
|
|
INSERT INTO menu_items VALUES('35ce29b2-bf57-49ec-9f44-4d978f9cb832',NULL,'/','Home');
|
|
INSERT INTO menu_items VALUES('95634276-8332-49c7-a794-4f1d92400a1b',NULL,'/vendors','Vendors');
|
|
INSERT INTO menu_items VALUES('ec47e07a-6442-4e94-bbc4-d6432634f5c3',NULL,'/about-us','About Us');
|
|
INSERT INTO menu_items VALUES('bd58efd2-caa9-42d9-b967-ca1a951e630b',NULL,'/privacy-policy','Privacy Policy');
|
|
CREATE TABLE IF NOT EXISTS "menus_menu_items" (`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `menus_id` varchar(255) NULL, `menu_items_id` char(36) NULL, `sort` integer NULL, CONSTRAINT `menus_menu_items_menu_items_id_foreign` FOREIGN KEY (`menu_items_id`) REFERENCES `menu_items` (`id`) ON DELETE SET NULL, CONSTRAINT `menus_menu_items_menus_id_foreign` FOREIGN KEY (`menus_id`) REFERENCES `menus` (`id`) ON DELETE SET NULL);
|
|
INSERT INTO menus_menu_items VALUES(1,'MAIN_MENU','35ce29b2-bf57-49ec-9f44-4d978f9cb832',NULL);
|
|
INSERT INTO menus_menu_items VALUES(2,'MAIN_MENU','95634276-8332-49c7-a794-4f1d92400a1b',NULL);
|
|
INSERT INTO menus_menu_items VALUES(3,'MAIN_MENU','ec47e07a-6442-4e94-bbc4-d6432634f5c3',1);
|
|
INSERT INTO menus_menu_items VALUES(4,'FOOTER_MENU','35ce29b2-bf57-49ec-9f44-4d978f9cb832',1);
|
|
INSERT INTO menus_menu_items VALUES(5,'FOOTER_MENU','95634276-8332-49c7-a794-4f1d92400a1b',2);
|
|
INSERT INTO menus_menu_items VALUES(6,'FOOTER_MENU','bd58efd2-caa9-42d9-b967-ca1a951e630b',3);
|
|
DELETE FROM sqlite_sequence;
|
|
INSERT INTO sqlite_sequence VALUES('directus_relations',11);
|
|
INSERT INTO sqlite_sequence VALUES('directus_revisions',64052);
|
|
INSERT INTO sqlite_sequence VALUES('directus_permissions',39);
|
|
INSERT INTO sqlite_sequence VALUES('directus_webhooks',0);
|
|
INSERT INTO sqlite_sequence VALUES('directus_fields',61);
|
|
INSERT INTO sqlite_sequence VALUES('directus_activity',64341);
|
|
INSERT INTO sqlite_sequence VALUES('directus_notifications',0);
|
|
INSERT INTO sqlite_sequence VALUES('directus_presets',8);
|
|
INSERT INTO sqlite_sequence VALUES('directus_settings',1);
|
|
INSERT INTO sqlite_sequence VALUES('vendors_categories',5793);
|
|
INSERT INTO sqlite_sequence VALUES('menus_menu_items',6);
|
|
CREATE UNIQUE INDEX `directus_users_external_identifier_unique` on `directus_users` (`external_identifier`);
|
|
CREATE UNIQUE INDEX `directus_users_email_unique` on `directus_users` (`email`);
|
|
CREATE UNIQUE INDEX `directus_users_token_unique` on `directus_users` (`token`);
|
|
CREATE UNIQUE INDEX `directus_flows_operation_unique` on `directus_flows` (`operation`);
|
|
CREATE UNIQUE INDEX `directus_operations_resolve_unique` on `directus_operations` (`resolve`);
|
|
CREATE UNIQUE INDEX `directus_operations_reject_unique` on `directus_operations` (`reject`);
|
|
CREATE UNIQUE INDEX `categories_slug_unique` on `categories` (`slug`);
|
|
CREATE UNIQUE INDEX `vendors_slug_unique` on `vendors` (`slug`);
|
|
COMMIT;
|