📄 mysql_schema.php
字号:
CREATE TABLE `<?php echo $table_prefix ?>administration_tools` ( `id` tinyint(3) unsigned NOT NULL auto_increment, `name` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `controller` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `action` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `order` tinyint(3) unsigned NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>application_logs` ( `id` int(10) unsigned NOT NULL auto_increment, `taken_by_id` int(10) unsigned default NULL, `project_id` int(10) unsigned NOT NULL default '0', `rel_object_id` int(10) NOT NULL default '0', `object_name` text <?php echo $default_collation ?>, `rel_object_manager` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `created_on` datetime NOT NULL default '0000-00-00 00:00:00', `created_by_id` int(10) unsigned default NULL, `action` enum('upload','open','close','delete','edit','add') <?php echo $default_collation ?> default NULL, `is_private` tinyint(1) unsigned NOT NULL default '0', `is_silent` tinyint(1) unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `created_on` (`created_on`), KEY `project_id` (`project_id`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>attached_files` ( `rel_object_manager` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `rel_object_id` int(10) unsigned NOT NULL default '0', `file_id` int(10) unsigned NOT NULL default '0', `created_on` datetime NOT NULL default '0000-00-00 00:00:00', `created_by_id` int(10) unsigned default NULL, PRIMARY KEY (`rel_object_manager`,`rel_object_id`,`file_id`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>comments` ( `id` int(10) unsigned NOT NULL auto_increment, `rel_object_id` int(10) unsigned NOT NULL default '0', `rel_object_manager` varchar(30) <?php echo $default_collation ?> NOT NULL default '', `text` text <?php echo $default_collation ?>, `is_private` tinyint(1) unsigned NOT NULL default '0', `is_anonymous` tinyint(1) unsigned NOT NULL default '0', `author_name` varchar(50) <?php echo $default_collation ?> default NULL, `author_email` varchar(100) <?php echo $default_collation ?> default NULL, `author_homepage` varchar(100) <?php echo $default_collation ?> NOT NULL default '', `created_on` datetime NOT NULL default '0000-00-00 00:00:00', `created_by_id` int(10) unsigned default NULL, `updated_on` datetime NOT NULL default '0000-00-00 00:00:00', `updated_by_id` int(10) unsigned default NULL, PRIMARY KEY (`id`), KEY `object_id` (`rel_object_id`,`rel_object_manager`), KEY `created_on` (`created_on`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>companies` ( `id` smallint(5) unsigned NOT NULL auto_increment, `client_of_id` smallint(5) unsigned default NULL, `name` varchar(50) <?php echo $default_collation ?> default NULL, `email` varchar(100) <?php echo $default_collation ?> default NULL, `homepage` varchar(100) <?php echo $default_collation ?> default NULL, `address` varchar(100) <?php echo $default_collation ?> default NULL, `address2` varchar(100) <?php echo $default_collation ?> default NULL, `city` varchar(50) <?php echo $default_collation ?> default NULL, `state` varchar(50) <?php echo $default_collation ?> default NULL, `zipcode` varchar(30) <?php echo $default_collation ?> default NULL, `country` varchar(10) <?php echo $default_collation ?> default NULL, `phone_number` varchar(30) <?php echo $default_collation ?> default NULL, `fax_number` varchar(30) <?php echo $default_collation ?> default NULL, `logo_file` varchar(44) <?php echo $default_collation ?> default NULL, `timezone` float(3,1) NOT NULL default '0.0', `hide_welcome_info` tinyint(1) unsigned NOT NULL default '0', `created_on` datetime NOT NULL default '0000-00-00 00:00:00', `created_by_id` int(10) unsigned default NULL, `updated_on` datetime NOT NULL default '0000-00-00 00:00:00', `updated_by_id` int(10) unsigned default NULL, PRIMARY KEY (`id`), KEY `created_on` (`created_on`), KEY `client_of_id` (`client_of_id`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>config_categories` ( `id` tinyint(3) unsigned NOT NULL auto_increment, `name` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `is_system` tinyint(1) unsigned NOT NULL default '0', `category_order` tinyint(3) unsigned NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `order` (`category_order`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>config_options` ( `id` smallint(5) unsigned NOT NULL auto_increment, `category_name` varchar(30) <?php echo $default_collation ?> NOT NULL default '', `name` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `value` text <?php echo $default_collation ?>, `config_handler_class` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `is_system` tinyint(1) unsigned NOT NULL default '0', `option_order` smallint(5) unsigned NOT NULL default '0', `dev_comment` varchar(255) <?php echo $default_collation ?> default NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `order` (`option_order`), KEY `category_id` (`category_name`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>file_repo` ( `id` varchar(40) <?php echo $default_collation ?> NOT NULL default '', `content` longblob NOT NULL, `order` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id`), KEY `order` (`order`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>file_repo_attributes` ( `id` varchar(40) <?php echo $default_collation ?> NOT NULL default '', `attribute` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `value` text <?php echo $default_collation ?> NOT NULL, PRIMARY KEY (`id`,`attribute`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>file_types` ( `id` smallint(5) unsigned NOT NULL auto_increment, `extension` varchar(10) <?php echo $default_collation ?> NOT NULL default '', `icon` varchar(30) <?php echo $default_collation ?> NOT NULL default '', `is_searchable` tinyint(1) unsigned NOT NULL default '0', `is_image` tinyint(1) unsigned NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `extension` (`extension`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>im_types` ( `id` tinyint(3) unsigned NOT NULL auto_increment, `name` varchar(30) <?php echo $default_collation ?> NOT NULL default '', `icon` varchar(30) <?php echo $default_collation ?> NOT NULL default '', PRIMARY KEY (`id`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>message_subscriptions` ( `message_id` int(10) unsigned NOT NULL default '0', `user_id` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`message_id`,`user_id`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>project_companies` ( `project_id` int(10) unsigned NOT NULL default '0', `company_id` smallint(5) unsigned NOT NULL default '0', PRIMARY KEY (`project_id`,`company_id`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>project_file_revisions` ( `id` int(10) unsigned NOT NULL auto_increment, `file_id` int(10) unsigned NOT NULL default '0', `file_type_id` smallint(5) unsigned NOT NULL default '0', `repository_id` varchar(40) <?php echo $default_collation ?> NOT NULL default '', `thumb_filename` varchar(44) <?php echo $default_collation ?> default NULL, `revision_number` int(10) unsigned NOT NULL default '0', `comment` text <?php echo $default_collation ?>, `type_string` varchar(50) <?php echo $default_collation ?> NOT NULL default '', `filesize` int(10) unsigned NOT NULL default '0', `created_on` datetime NOT NULL default '0000-00-00 00:00:00', `created_by_id` int(10) unsigned default NULL, `updated_on` datetime NOT NULL default '0000-00-00 00:00:00', `updated_by_id` int(10) unsigned default NULL, PRIMARY KEY (`id`), KEY `file_id` (`file_id`), KEY `updated_on` (`updated_on`), KEY `revision_number` (`revision_number`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>project_files` ( `id` int(10) unsigned NOT NULL auto_increment, `project_id` int(10) unsigned NOT NULL default '0', `folder_id` smallint(5) unsigned NOT NULL default '0', `filename` varchar(100) <?php echo $default_collation ?> NOT NULL default '', `description` text <?php echo $default_collation ?>, `is_private` tinyint(1) unsigned NOT NULL default '0', `is_important` tinyint(1) unsigned NOT NULL default '0', `is_locked` tinyint(1) unsigned NOT NULL default '0', `is_visible` tinyint(1) unsigned NOT NULL default '0', `expiration_time` datetime NOT NULL default '0000-00-00 00:00:00', `comments_enabled` tinyint(1) unsigned NOT NULL default '0', `anonymous_comments_enabled` tinyint(1) unsigned NOT NULL default '0', `created_on` datetime NOT NULL default '0000-00-00 00:00:00', `created_by_id` int(10) unsigned default '0', `updated_on` datetime NOT NULL default '0000-00-00 00:00:00', `updated_by_id` int(10) unsigned default '0', PRIMARY KEY (`id`), KEY `project_id` (`project_id`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>project_folders` ( `id` smallint(5) unsigned NOT NULL auto_increment, `project_id` int(10) unsigned NOT NULL default '0', `name` varchar(50) <?php echo $default_collation ?> NOT NULL default '', PRIMARY KEY (`id`), UNIQUE KEY `project_id` (`project_id`,`name`)) ENGINE=InnoDB <?php echo $default_charset ?>;CREATE TABLE `<?php echo $table_prefix ?>project_forms` (
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -