%PDF- %PDF-
Direktori : /proc/thread-self/root/proc/self/root/proc/thread-self/root/var/softaculous/owncloud/ |
Current File : //proc/thread-self/root/proc/self/root/proc/thread-self/root/var/softaculous/owncloud/owncloud.sql |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `owncloud10150` -- -- -------------------------------------------------------- -- -- Table structure for table `oc_accounts` -- CREATE TABLE `oc_accounts` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `email` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `user_id` varchar(255) COLLATE utf8mb4_bin NOT NULL, `lower_user_id` varchar(255) COLLATE utf8mb4_bin NOT NULL, `display_name` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `quota` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL, `last_login` int(11) NOT NULL DEFAULT '0', `backend` varchar(64) COLLATE utf8mb4_bin NOT NULL, `home` varchar(1024) COLLATE utf8mb4_bin NOT NULL, `state` smallint(6) NOT NULL DEFAULT '0' COMMENT '0: initial, 1: enabled, 2: disabled, 3: deleted', `creation_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_907AA303A76ED395` (`user_id`), UNIQUE KEY `lower_user_id_index` (`lower_user_id`), KEY `display_name_index` (`display_name`), KEY `email_index` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=2 ; -- -- Dumping data for table `oc_accounts` -- INSERT INTO `oc_accounts` VALUES (1, NULL, '[[admin_username]]', '[[lower_user_id]]', '[[admin_username]]', NULL, 0, 'OC\\User\\Database', '[[softdatadir]]/[[admin_username]]', 1, [[timestamp]]); -- -------------------------------------------------------- -- -- Table structure for table `oc_account_terms` -- CREATE TABLE `oc_account_terms` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `account_id` bigint(20) unsigned NOT NULL, `term` varchar(191) COLLATE utf8mb4_bin NOT NULL, PRIMARY KEY (`id`), KEY `account_id_index` (`account_id`), KEY `term_index` (`term`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_activity` -- CREATE TABLE `oc_activity` ( `activity_id` bigint(20) NOT NULL AUTO_INCREMENT, `timestamp` int(11) NOT NULL DEFAULT '0', `priority` int(11) NOT NULL DEFAULT '0', `type` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `user` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, `affecteduser` varchar(64) COLLATE utf8mb4_bin NOT NULL, `app` varchar(255) COLLATE utf8mb4_bin NOT NULL, `subject` varchar(255) COLLATE utf8mb4_bin NOT NULL, `subjectparams` longtext COLLATE utf8mb4_bin NOT NULL, `message` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `messageparams` longtext COLLATE utf8mb4_bin, `file` varchar(4000) COLLATE utf8mb4_bin DEFAULT NULL, `link` varchar(4000) COLLATE utf8mb4_bin DEFAULT NULL, `object_type` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `object_id` bigint(20) NOT NULL DEFAULT '0', PRIMARY KEY (`activity_id`), KEY `activity_time` (`timestamp`), KEY `activity_user_time` (`affecteduser`,`timestamp`), KEY `activity_filter_by` (`affecteduser`,`user`,`timestamp`), KEY `activity_filter_app` (`affecteduser`,`app`,`timestamp`), KEY `activity_object` (`object_type`,`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_activity_mq` -- CREATE TABLE `oc_activity_mq` ( `mail_id` bigint(20) NOT NULL AUTO_INCREMENT, `amq_timestamp` int(11) NOT NULL DEFAULT '0', `amq_latest_send` int(11) NOT NULL DEFAULT '0', `amq_type` varchar(255) COLLATE utf8mb4_bin NOT NULL, `amq_affecteduser` varchar(64) COLLATE utf8mb4_bin NOT NULL, `amq_appid` varchar(255) COLLATE utf8mb4_bin NOT NULL, `amq_subject` varchar(255) COLLATE utf8mb4_bin NOT NULL, `amq_subjectparams` varchar(4000) COLLATE utf8mb4_bin NOT NULL, PRIMARY KEY (`mail_id`), KEY `amp_user` (`amq_affecteduser`), KEY `amp_latest_send_time` (`amq_latest_send`), KEY `amp_timestamp_time` (`amq_timestamp`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_addressbookchanges` -- CREATE TABLE `oc_addressbookchanges` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `uri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `synctoken` int(10) unsigned NOT NULL DEFAULT '1', `addressbookid` int(11) NOT NULL, `operation` smallint(6) NOT NULL, PRIMARY KEY (`id`), KEY `addressbookid_synctoken` (`addressbookid`,`synctoken`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_addressbooks` -- CREATE TABLE `oc_addressbooks` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `principaluri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `displayname` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `uri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `description` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `synctoken` int(10) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `addressbook_index` (`principaluri`,`uri`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_appconfig` -- CREATE TABLE `oc_appconfig` ( `appid` varchar(32) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `configkey` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `configvalue` longtext COLLATE utf8mb4_bin, PRIMARY KEY (`appid`,`configkey`), KEY `appconfig_config_key_index` (`configkey`), KEY `appconfig_appid_key` (`appid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `oc_appconfig` -- INSERT INTO `oc_appconfig` VALUES ('activity', 'enabled', 'yes'), ('activity', 'installed_version', '2.7.2'), ('activity', 'types', 'filesystem'), ('backgroundjob', 'lastjob', '1'), ('comments', 'enabled', 'yes'), ('comments', 'installed_version', '0.3.0'), ('comments', 'types', 'logging,dav'), ('configreport', 'enabled', 'yes'), ('configreport', 'installed_version', '0.3.0'), ('configreport', 'types', 'filesystem'), ('core', 'first_install_version', '10.15.0.2'), ('core', 'installedat', '[[timestamp]].0198'), ('core', 'lastcron', '[[timestamp]]'), ('core', 'lastupdatedat', '[[timestamp]].0223'), ('core', 'oc.integritycheck.checker', '[]'), ('core', 'public_files', 'files_sharing/public.php'), ('core', 'public_webdav', 'dav/appinfo/v1/publicwebdav.php'), ('dav', 'enabled', 'yes'), ('dav', 'installed_version', '0.7.0'), ('dav', 'types', 'filesystem'), ('diagnostics', 'enabled', 'yes'), ('diagnostics', 'installed_version', '0.2.1'), ('diagnostics', 'types', 'authentication'), ('federatedfilesharing', 'enabled', 'yes'), ('federatedfilesharing', 'installed_version', '0.5.0'), ('federatedfilesharing', 'types', 'filesystem'), ('federation', 'enabled', 'yes'), ('federation', 'installed_version', '0.1.0'), ('federation', 'types', 'authentication'), ('files', 'cronjob_scan_files', '500'), ('files', 'enabled', 'yes'), ('files', 'installed_version', '1.6.0'), ('files', 'types', 'filesystem'), ('files_external', 'enabled', 'yes'), ('files_external', 'installed_version', '0.9.0'), ('files_external', 'types', 'filesystem'), ('files_mediaviewer', 'enabled', 'yes'), ('files_mediaviewer', 'installed_version', '1.0.5'), ('files_mediaviewer', 'types', ''), ('files_pdfviewer', 'enabled', 'yes'), ('files_pdfviewer', 'installed_version', '1.0.2'), ('files_pdfviewer', 'types', ''), ('files_sharing', 'enabled', 'yes'), ('files_sharing', 'installed_version', '0.14.0'), ('files_sharing', 'types', 'filesystem'), ('files_texteditor', 'enabled', 'yes'), ('files_texteditor', 'installed_version', '2.6.1'), ('files_texteditor', 'types', ''), ('files_trashbin', 'enabled', 'yes'), ('files_trashbin', 'installed_version', '0.9.1'), ('files_trashbin', 'types', 'filesystem'), ('files_versions', 'enabled', 'yes'), ('files_versions', 'installed_version', '1.3.0'), ('files_versions', 'types', 'filesystem'), ('firstrunwizard', 'enabled', 'yes'), ('firstrunwizard', 'installed_version', '1.3.0'), ('firstrunwizard', 'types', ''), ('market', 'enabled', 'yes'), ('market', 'installed_version', '0.9.0'), ('market', 'types', ''), ('notifications', 'enabled', 'yes'), ('notifications', 'installed_version', '0.6.0'), ('notifications', 'types', 'logging'), ('provisioning_api', 'enabled', 'yes'), ('provisioning_api', 'installed_version', '0.5.0'), ('provisioning_api', 'types', 'prevent_group_restriction'), ('systemtags', 'enabled', 'yes'), ('systemtags', 'installed_version', '0.3.0'), ('systemtags', 'types', 'logging'), ('updatenotification', 'enabled', 'yes'), ('updatenotification', 'installed_version', '0.2.1'), ('updatenotification', 'types', ''); -- -------------------------------------------------------- -- -- Table structure for table `oc_authtoken` -- CREATE TABLE `oc_authtoken` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `login_name` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `password` longtext COLLATE utf8mb4_bin, `name` longtext COLLATE utf8mb4_bin NOT NULL, `token` varchar(200) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `type` smallint(5) unsigned NOT NULL DEFAULT '0', `last_activity` int(10) unsigned NOT NULL DEFAULT '0', `last_check` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `authtoken_token_index` (`token`), KEY `authtoken_last_activity_index` (`last_activity`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_calendarchanges` -- CREATE TABLE `oc_calendarchanges` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `uri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `synctoken` int(10) unsigned NOT NULL DEFAULT '1', `calendarid` int(11) NOT NULL, `operation` smallint(6) NOT NULL, PRIMARY KEY (`id`), KEY `calendarid_synctoken` (`calendarid`,`synctoken`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_calendarobjects` -- CREATE TABLE `oc_calendarobjects` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `calendardata` longblob, `uri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `calendarid` int(10) unsigned NOT NULL, `lastmodified` int(10) unsigned DEFAULT NULL, `etag` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL, `size` bigint(20) unsigned NOT NULL, `componenttype` varchar(8) COLLATE utf8mb4_bin DEFAULT NULL, `firstoccurence` bigint(20) unsigned DEFAULT NULL, `lastoccurence` bigint(20) unsigned DEFAULT NULL, `uid` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `classification` int(11) DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `calobjects_index` (`calendarid`,`uri`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_calendars` -- CREATE TABLE `oc_calendars` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `principaluri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `displayname` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `uri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `synctoken` int(10) unsigned NOT NULL DEFAULT '1', `description` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `calendarorder` int(10) unsigned NOT NULL DEFAULT '0', `calendarcolor` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `timezone` longtext COLLATE utf8mb4_bin, `components` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `transparent` smallint(6) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `calendars_index` (`principaluri`,`uri`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_calendarsubscriptions` -- CREATE TABLE `oc_calendarsubscriptions` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `uri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `principaluri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `source` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `displayname` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL, `refreshrate` varchar(10) COLLATE utf8mb4_bin DEFAULT NULL, `calendarorder` int(10) unsigned NOT NULL DEFAULT '0', `calendarcolor` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `striptodos` smallint(6) DEFAULT NULL, `stripalarms` smallint(6) DEFAULT NULL, `stripattachments` smallint(6) DEFAULT NULL, `lastmodified` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `calsub_index` (`principaluri`,`uri`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_cards` -- CREATE TABLE `oc_cards` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `addressbookid` int(11) NOT NULL DEFAULT '0', `carddata` longblob, `uri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `lastmodified` bigint(20) unsigned DEFAULT NULL, `etag` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL, `size` bigint(20) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `addressbookid_uri_index` (`addressbookid`,`uri`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_cards_properties` -- CREATE TABLE `oc_cards_properties` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `addressbookid` bigint(20) NOT NULL DEFAULT '0', `cardid` bigint(20) unsigned NOT NULL DEFAULT '0', `name` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, `value` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `preferred` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `card_value_index` (`value`), KEY `card_name_index` (`name`), KEY `card_contactid_index` (`cardid`), KEY `card_bookid_name_index` (`addressbookid`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_comments` -- CREATE TABLE `oc_comments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(10) unsigned NOT NULL DEFAULT '0', `topmost_parent_id` int(10) unsigned NOT NULL DEFAULT '0', `children_count` int(10) unsigned NOT NULL DEFAULT '0', `actor_type` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `actor_id` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `message` longtext COLLATE utf8mb4_bin, `verb` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, `creation_timestamp` datetime DEFAULT NULL, `latest_child_timestamp` datetime DEFAULT NULL, `object_type` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `object_id` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `comments_parent_id_index` (`parent_id`), KEY `comments_topmost_parent_id_idx` (`topmost_parent_id`), KEY `comments_object_index` (`object_type`,`object_id`,`creation_timestamp`), KEY `comments_actor_index` (`actor_type`,`actor_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_comments_read_markers` -- CREATE TABLE `oc_comments_read_markers` ( `user_id` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `marker_datetime` datetime DEFAULT NULL, `object_type` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `object_id` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', UNIQUE KEY `comments_marker_index` (`user_id`,`object_type`,`object_id`), KEY `comments_marker_object_index` (`object_type`,`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -------------------------------------------------------- -- -- Table structure for table `oc_credentials` -- CREATE TABLE `oc_credentials` ( `user` varchar(64) COLLATE utf8mb4_bin NOT NULL, `identifier` varchar(64) COLLATE utf8mb4_bin NOT NULL, `credentials` longtext COLLATE utf8mb4_bin, PRIMARY KEY (`user`,`identifier`), KEY `credentials_user` (`user`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -------------------------------------------------------- -- -- Table structure for table `oc_dav_job_status` -- CREATE TABLE `oc_dav_job_status` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `uuid` char(36) COLLATE utf8mb4_bin NOT NULL COMMENT '(DC2Type:guid)', `user_id` varchar(64) COLLATE utf8mb4_bin NOT NULL, `status_info` varchar(4000) COLLATE utf8mb4_bin NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_18BBA548D17F50A6` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_dav_properties` -- CREATE TABLE `oc_dav_properties` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `propertypath` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `propertyname` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `propertyvalue` varchar(255) COLLATE utf8mb4_bin NOT NULL, `propertytype` smallint(6) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `propertypath_index` (`propertypath`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_dav_shares` -- CREATE TABLE `oc_dav_shares` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `principaluri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `type` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `access` smallint(6) DEFAULT NULL, `resourceid` int(10) unsigned NOT NULL, `publicuri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `dav_shares_index` (`principaluri`,`resourceid`,`type`,`publicuri`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_external_applicable` -- CREATE TABLE `oc_external_applicable` ( `applicable_id` bigint(20) NOT NULL AUTO_INCREMENT, `mount_id` bigint(20) NOT NULL, `type` int(11) NOT NULL, `value` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`applicable_id`), UNIQUE KEY `applicable_type_value_mount` (`type`,`value`,`mount_id`), KEY `applicable_mount` (`mount_id`), KEY `applicable_type_value` (`type`,`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_external_config` -- CREATE TABLE `oc_external_config` ( `config_id` bigint(20) NOT NULL AUTO_INCREMENT, `mount_id` bigint(20) NOT NULL, `key` varchar(64) COLLATE utf8mb4_bin NOT NULL, `value` varchar(4096) COLLATE utf8mb4_bin NOT NULL, PRIMARY KEY (`config_id`), UNIQUE KEY `config_mount_key` (`mount_id`,`key`), KEY `config_mount` (`mount_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_external_mounts` -- CREATE TABLE `oc_external_mounts` ( `mount_id` bigint(20) NOT NULL AUTO_INCREMENT, `mount_point` varchar(128) COLLATE utf8mb4_bin NOT NULL, `storage_backend` varchar(64) COLLATE utf8mb4_bin NOT NULL, `auth_backend` varchar(64) COLLATE utf8mb4_bin NOT NULL, `priority` int(11) NOT NULL DEFAULT '100', `type` int(11) NOT NULL, PRIMARY KEY (`mount_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_external_options` -- CREATE TABLE `oc_external_options` ( `option_id` bigint(20) NOT NULL AUTO_INCREMENT, `mount_id` bigint(20) NOT NULL, `key` varchar(64) COLLATE utf8mb4_bin NOT NULL, `value` varchar(256) COLLATE utf8mb4_bin NOT NULL, PRIMARY KEY (`option_id`), UNIQUE KEY `option_mount_key` (`mount_id`,`key`), KEY `option_mount` (`mount_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_federated_reshares` -- CREATE TABLE `oc_federated_reshares` ( `share_id` bigint(20) NOT NULL, `remote_id` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT 'share ID at the remote server', UNIQUE KEY `share_id_index` (`share_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -------------------------------------------------------- -- -- Table structure for table `oc_filecache` -- CREATE TABLE `oc_filecache` ( `fileid` bigint(20) NOT NULL AUTO_INCREMENT, `storage` int(11) NOT NULL DEFAULT '0', `path` varchar(4000) COLLATE utf8mb4_bin DEFAULT NULL, `path_hash` varchar(32) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `parent` bigint(20) NOT NULL DEFAULT '0', `name` varchar(250) COLLATE utf8mb4_bin DEFAULT NULL, `mimetype` int(11) NOT NULL DEFAULT '0', `mimepart` int(11) NOT NULL DEFAULT '0', `size` bigint(20) NOT NULL DEFAULT '0', `mtime` bigint(20) NOT NULL DEFAULT '0', `storage_mtime` bigint(20) NOT NULL DEFAULT '0', `encrypted` int(11) NOT NULL DEFAULT '0', `unencrypted_size` bigint(20) NOT NULL DEFAULT '0', `etag` varchar(40) COLLATE utf8mb4_bin DEFAULT NULL, `permissions` int(11) DEFAULT '0', `checksum` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`fileid`), UNIQUE KEY `fs_storage_path_hash` (`storage`,`path_hash`), KEY `fs_parent_name_hash` (`parent`,`name`), KEY `fs_storage_mimetype` (`storage`,`mimetype`), KEY `fs_storage_mimepart` (`storage`,`mimepart`), KEY `fs_storage_size` (`storage`,`size`,`fileid`), KEY `fs_parent_storage_size` (`parent`,`storage`,`size`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_files_trash` -- CREATE TABLE `oc_files_trash` ( `auto_id` bigint(20) NOT NULL AUTO_INCREMENT, `id` varchar(250) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `user` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `timestamp` varchar(12) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `location` varchar(512) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `type` varchar(4) COLLATE utf8mb4_bin DEFAULT NULL, `mime` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`auto_id`), KEY `id_index` (`id`), KEY `timestamp_index` (`timestamp`), KEY `user_index` (`user`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_file_locks` -- CREATE TABLE `oc_file_locks` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `lock` int(11) NOT NULL DEFAULT '0', `key` varchar(64) COLLATE utf8mb4_bin NOT NULL, `ttl` int(11) NOT NULL DEFAULT '-1', PRIMARY KEY (`id`), UNIQUE KEY `lock_key_index` (`key`), KEY `lock_ttl_index` (`ttl`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -- Dumping data for table `oc_file_locks` -- -- -------------------------------------------------------- -- -- Table structure for table `oc_groups` -- CREATE TABLE `oc_groups` ( `gid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', PRIMARY KEY (`gid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `oc_groups` -- INSERT INTO `oc_groups` VALUES ('admin'); -- -------------------------------------------------------- -- -- Table structure for table `oc_group_admin` -- CREATE TABLE `oc_group_admin` ( `gid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `uid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', PRIMARY KEY (`gid`,`uid`), KEY `group_admin_uid` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -------------------------------------------------------- -- -- Table structure for table `oc_group_user` -- CREATE TABLE `oc_group_user` ( `gid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `uid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', PRIMARY KEY (`gid`,`uid`), KEY `gu_uid_index` (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `oc_group_user` -- INSERT INTO `oc_group_user` VALUES ('admin', '[[admin_username]]'); -- -------------------------------------------------------- -- -- Table structure for table `oc_jobs` -- CREATE TABLE `oc_jobs` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `class` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `argument` varchar(4000) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `last_run` int(11) DEFAULT '0', `last_checked` int(11) DEFAULT '0', `reserved_at` int(11) DEFAULT '0', `execution_duration` int(11) NOT NULL DEFAULT '-1', PRIMARY KEY (`id`), KEY `job_class_index` (`class`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=20 ; -- -- Dumping data for table `oc_jobs` -- INSERT INTO `oc_jobs` VALUES (1, 'OCA\\Files\\BackgroundJob\\ScanFiles', 'null', [[timestamp]], [[timestamp]], 0, 0), (2, 'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems', 'null', 0, [[timestamp]], 0, -1), (3, 'OCA\\Files\\BackgroundJob\\CleanupFileLocks', 'null', 0, [[timestamp]], 0, -1), (4, 'OCA\\Files\\BackgroundJob\\CleanupPersistentFileLocks', 'null', 0, [[timestamp]], 0, -1), (5, 'OCA\\Files\\BackgroundJob\\PreviewCleanupJob', 'null', 0, [[timestamp]], 0, -1), (6, 'OCA\\DAV\\CardDAV\\SyncJob', 'null', 0, [[timestamp]], 0, -1), (7, 'OCA\\DAV\\BackgroundJob\\CleanProperties', 'null', 0, [[timestamp]], 0, -1), (8, 'OCA\\Activity\\BackgroundJob\\EmailNotification', 'null', 0, [[timestamp]], 0, -1), (9, 'OCA\\Activity\\BackgroundJob\\ExpireActivities', 'null', 0, [[timestamp]], 0, -1), (10, 'OCA\\ConfigReport\\Telemetry\\BackgroundJob', 'null', 0, [[timestamp]], 0, -1), (11, 'OCA\\Federation\\SyncJob', 'null', 0, [[timestamp]], 0, -1), (12, 'OCA\\Files_Sharing\\DeleteOrphanedSharesJob', 'null', 0, [[timestamp]], 0, -1), (13, 'OCA\\Files_Sharing\\ExpireSharesJob', 'null', 0, [[timestamp]], 0, -1), (14, 'OCA\\Files_Sharing\\External\\ScanExternalSharesJob', 'null', 0, [[timestamp]], 0, -1), (15, 'OCA\\Files_Trashbin\\BackgroundJob\\ExpireTrash', 'null', 0, [[timestamp]], 0, -1), (16, 'OCA\\Files_Versions\\BackgroundJob\\ExpireVersions', 'null', 0, [[timestamp]], 0, -1), (17, 'OCA\\Market\\CheckUpdateBackgroundJob', 'null', 0, [[timestamp]], 0, -1), (18, 'OCA\\UpdateNotification\\Notification\\BackgroundJob', 'null', 0, [[timestamp]], 0, -1), (19, '\\OC\\Authentication\\Token\\DefaultTokenCleanupJob', 'null', 0, [[timestamp]], 0, -1); -- -------------------------------------------------------- -- -- Table structure for table `oc_migrations` -- CREATE TABLE `oc_migrations` ( `app` varchar(177) COLLATE utf8_unicode_ci NOT NULL, `version` varchar(14) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`app`,`version`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `oc_migrations` -- INSERT INTO `oc_migrations` VALUES ('activity', '20161122085340'), ('activity', '20161122092159'), ('activity', '20170131134507'), ('activity', '20170724182159'), ('activity', '20181019151118'), ('activity', '20181022150134'), ('core', '20170101010100'), ('core', '20170101215145'), ('core', '20170111103310'), ('core', '20170213215145'), ('core', '20170214112458'), ('core', '20170221114437'), ('core', '20170221121536'), ('core', '20170315173825'), ('core', '20170320173955'), ('core', '20170418154659'), ('core', '20170516100103'), ('core', '20170526104128'), ('core', '20170605143658'), ('core', '20170711191432'), ('core', '20170804201253'), ('core', '20170928120000'), ('core', '20171026130750'), ('core', '20180123131835'), ('core', '20180302155233'), ('core', '20180319102121'), ('core', '20180607072706'), ('core', '20181017105216'), ('core', '20181017120818'), ('core', '20181113071753'), ('core', '20181220085457'), ('core', '20190125162909'), ('core', '20200610110817'), ('core', '20210928123126'), ('core', '20230105001100'), ('core', '20230120101715'), ('core', '20230210073645'), ('core', '20230210103154'), ('core', '20240112140951'), ('core', '20240131080456'), ('dav', '20170116150538'), ('dav', '20170116170538'), ('dav', '20170202213905'), ('dav', '20170202220512'), ('dav', '20170427182800'), ('dav', '20170519091921'), ('dav', '20170526100342'), ('dav', '20170711193427'), ('dav', '20170927201245'), ('dav', '20180622095921'), ('dav', '20181115210344'), ('dav', '20190823065724'), ('dav', '20200114181454'), ('dav', '20200427142541'), ('dav', '20210714123001'), ('federatedfilesharing', '20170804201125'), ('federatedfilesharing', '20170804201253'), ('federatedfilesharing', '20190410160725'), ('files_external', '20170814051424'), ('files_external', '20210511082903'), ('files_external', '20220329110116'), ('files_sharing', '20170804201125'), ('files_sharing', '20170804201253'), ('files_sharing', '20170830112305'), ('files_sharing', '20171115154900'), ('files_sharing', '20171215103657'), ('files_sharing', '20190426123324'), ('files_sharing', '20200504211654'), ('files_sharing', '20200823121322'), ('files_trashbin', '20170804201125'), ('files_trashbin', '20170804201253'), ('notifications', '20170801085340'), ('notifications', '20170801152524'), ('notifications', '20180119080933'), ('notifications', '20180604132522'); -- -------------------------------------------------------- -- -- Table structure for table `oc_mimetypes` -- CREATE TABLE `oc_mimetypes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `mimetype` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `mimetype_id_index` (`mimetype`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_mounts` -- CREATE TABLE `oc_mounts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `storage_id` int(11) NOT NULL, `root_id` bigint(20) NOT NULL, `user_id` varchar(64) COLLATE utf8mb4_bin NOT NULL, `mount_point` varchar(4000) COLLATE utf8mb4_bin NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `mounts_user_root_index` (`user_id`,`root_id`), KEY `mounts_user_index` (`user_id`), KEY `mounts_storage_index` (`storage_id`), KEY `mounts_root_index` (`root_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_notifications` -- CREATE TABLE `oc_notifications` ( `notification_id` int(11) NOT NULL AUTO_INCREMENT, `app` varchar(32) COLLATE utf8mb4_bin NOT NULL, `user` varchar(64) COLLATE utf8mb4_bin NOT NULL, `timestamp` int(11) NOT NULL DEFAULT '0', `object_type` varchar(64) COLLATE utf8mb4_bin NOT NULL, `object_id` varchar(64) COLLATE utf8mb4_bin NOT NULL, `subject` varchar(64) COLLATE utf8mb4_bin NOT NULL, `subject_parameters` longtext COLLATE utf8mb4_bin, `message` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, `message_parameters` longtext COLLATE utf8mb4_bin, `link` varchar(4000) COLLATE utf8mb4_bin DEFAULT NULL, `actions` longtext COLLATE utf8mb4_bin, `icon` varchar(4000) COLLATE utf8mb4_bin DEFAULT NULL, PRIMARY KEY (`notification_id`), KEY `IDX_16B80748C96E70CF` (`app`), KEY `IDX_16B807488D93D649` (`user`), KEY `IDX_16B80748A5D6E63E` (`timestamp`), KEY `IDX_16B8074811CB6B3A232D562B` (`object_type`,`object_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_persistent_locks` -- CREATE TABLE `oc_persistent_locks` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `file_id` bigint(20) NOT NULL COMMENT 'FK to fileid in table oc_file_cache', `owner_account_id` bigint(20) unsigned DEFAULT NULL COMMENT 'owner of the lock - FK to account table', `owner` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'owner of the lock - just a human readable string', `timeout` int(10) unsigned NOT NULL COMMENT 'timestamp when the lock expires', `created_at` int(10) unsigned NOT NULL COMMENT 'timestamp when the lock was created', `token` varchar(1024) COLLATE utf8mb4_bin NOT NULL COMMENT 'uuid for webdav locks - 1024 random chars for WOPI locks', `token_hash` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT 'md5(token)', `scope` smallint(6) NOT NULL COMMENT '1 - exclusive, 2 - shared', `depth` smallint(6) NOT NULL COMMENT '0, 1 or infinite', PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_F0C3D55BB3BC57DA` (`token_hash`), KEY `IDX_F0C3D55B93CB796C` (`file_id`), KEY `IDX_F0C3D55BC901C6FF` (`owner_account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_preferences` -- CREATE TABLE `oc_preferences` ( `userid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `appid` varchar(32) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `configkey` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `configvalue` longtext COLLATE utf8mb4_bin, PRIMARY KEY (`userid`,`appid`,`configkey`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `oc_preferences` -- INSERT INTO `oc_preferences` VALUES ('[[admin_username]]', 'core', 'lang', '[[language]]'); -- -------------------------------------------------------- -- -- Table structure for table `oc_privatedata` -- CREATE TABLE `oc_privatedata` ( `keyid` int(10) unsigned NOT NULL AUTO_INCREMENT, `user` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `app` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `key` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `value` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', PRIMARY KEY (`keyid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_properties` -- CREATE TABLE `oc_properties` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `fileid` bigint(20) unsigned NOT NULL, `propertyname` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `propertyvalue` varchar(255) COLLATE utf8mb4_bin NOT NULL, `propertytype` smallint(6) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `fileid_index` (`fileid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_schedulingobjects` -- CREATE TABLE `oc_schedulingobjects` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `principaluri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `calendardata` longblob, `uri` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `lastmodified` int(10) unsigned DEFAULT NULL, `etag` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL, `size` bigint(20) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_share` -- CREATE TABLE `oc_share` ( `id` int(11) NOT NULL AUTO_INCREMENT, `share_type` smallint(6) NOT NULL DEFAULT '0', `share_with` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `uid_owner` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `uid_initiator` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, `parent` int(11) DEFAULT NULL, `item_type` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `item_source` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `item_target` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL, `file_source` bigint(20) DEFAULT NULL, `file_target` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL, `permissions` smallint(6) NOT NULL DEFAULT '0', `stime` bigint(20) NOT NULL DEFAULT '0', `accepted` smallint(6) NOT NULL DEFAULT '0', `expiration` datetime DEFAULT NULL, `token` varchar(32) COLLATE utf8mb4_bin DEFAULT NULL, `mail_send` smallint(6) NOT NULL DEFAULT '0', `share_name` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, `attributes` longtext COLLATE utf8mb4_bin, PRIMARY KEY (`id`), KEY `item_share_type_index` (`item_type`,`share_type`), KEY `file_source_index` (`file_source`), KEY `token_index` (`token`), KEY `share_with_index` (`share_with`), KEY `item_source_index` (`item_source`), KEY `item_source_type_index` (`item_source`,`share_type`,`item_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_share_external` -- CREATE TABLE `oc_share_external` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `remote` varchar(512) COLLATE utf8mb4_bin NOT NULL COMMENT 'Url of the remote owncloud instance', `remote_id` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '-1', `share_token` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT 'Public share token', `password` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Optional password for the public share', `name` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT 'Original name on the remote server', `owner` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT 'User that owns the public share on the remote server', `user` varchar(64) COLLATE utf8mb4_bin NOT NULL COMMENT 'Local user which added the external share', `mountpoint` varchar(4000) COLLATE utf8mb4_bin NOT NULL COMMENT 'Full path where the share is mounted', `mountpoint_hash` varchar(32) COLLATE utf8mb4_bin NOT NULL COMMENT 'md5 hash of the mountpoint', `accepted` int(11) NOT NULL DEFAULT '0', `lastscan` bigint(20) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `sh_external_mp` (`user`,`mountpoint_hash`), KEY `sh_external_user` (`user`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_storages` -- CREATE TABLE `oc_storages` ( `id` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, `numeric_id` int(11) NOT NULL AUTO_INCREMENT, `available` int(11) NOT NULL DEFAULT '1', `last_checked` int(11) DEFAULT NULL, PRIMARY KEY (`numeric_id`), UNIQUE KEY `storages_id_index` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=3 ; -- -- Dumping data for table `oc_storages` -- INSERT INTO `oc_storages` VALUES ('local::[[softdatadir]]/[[admin_username]]/uploads/', 1, 1, NULL), ('home::[[admin_username]]', 2, 1, NULL); -- -------------------------------------------------------- -- -- Table structure for table `oc_systemtag` -- CREATE TABLE `oc_systemtag` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `visibility` smallint(6) NOT NULL DEFAULT '1', `editable` smallint(6) NOT NULL DEFAULT '1', `assignable` smallint(6) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `tag_ident` (`name`,`visibility`,`editable`,`assignable`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_systemtag_group` -- CREATE TABLE `oc_systemtag_group` ( `systemtagid` int(10) unsigned NOT NULL DEFAULT '0', `gid` varchar(255) COLLATE utf8mb4_bin NOT NULL, PRIMARY KEY (`gid`,`systemtagid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -------------------------------------------------------- -- -- Table structure for table `oc_systemtag_object_mapping` -- CREATE TABLE `oc_systemtag_object_mapping` ( `objectid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `objecttype` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `systemtagid` int(10) unsigned NOT NULL DEFAULT '0', UNIQUE KEY `mapping` (`objecttype`,`objectid`,`systemtagid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -------------------------------------------------------- -- -- Table structure for table `oc_trusted_servers` -- CREATE TABLE `oc_trusted_servers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `url` varchar(512) COLLATE utf8mb4_bin NOT NULL COMMENT 'Url of trusted server', `url_hash` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT 'sha1 hash of the url without the protocol', `token` varchar(128) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'token used to exchange the shared secret', `shared_secret` varchar(256) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'shared secret used to authenticate', `status` int(11) NOT NULL DEFAULT '2' COMMENT 'current status of the connection', `sync_token` varchar(512) COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'cardDav sync token', PRIMARY KEY (`id`), UNIQUE KEY `url_hash` (`url_hash`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_users` -- CREATE TABLE `oc_users` ( `uid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `displayname` varchar(64) COLLATE utf8mb4_bin DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', PRIMARY KEY (`uid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Dumping data for table `oc_users` -- INSERT INTO `oc_users` VALUES ('[[admin_username]]', NULL, '[[admin_pass]]'); -- -------------------------------------------------------- -- -- Table structure for table `oc_vcategory` -- CREATE TABLE `oc_vcategory` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `type` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', `category` varchar(255) COLLATE utf8mb4_bin NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `uid_index` (`uid`), KEY `type_index` (`type`), KEY `category_index` (`category`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `oc_vcategory_to_object` -- CREATE TABLE `oc_vcategory_to_object` ( `objid` bigint(20) unsigned NOT NULL DEFAULT '0', `categoryid` int(10) unsigned NOT NULL DEFAULT '0', `type` varchar(64) COLLATE utf8mb4_bin NOT NULL DEFAULT '', PRIMARY KEY (`categoryid`,`objid`,`type`), KEY `vcategory_objectd_index` (`objid`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; -- -- Constraints for dumped tables -- -- -- Constraints for table `oc_persistent_locks` -- ALTER TABLE `oc_persistent_locks` ADD CONSTRAINT `FK_F0C3D55B93CB796C` FOREIGN KEY (`file_id`) REFERENCES `oc_filecache` (`fileid`) ON DELETE CASCADE, ADD CONSTRAINT `FK_F0C3D55BC901C6FF` FOREIGN KEY (`owner_account_id`) REFERENCES `oc_accounts` (`id`) ON DELETE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;