forgeplus/db/init202.sql

8691 lines
3.2 MiB
MySQL
Raw Permalink Normal View History

2024-06-28 10:29:10 +08:00
-- MySQL dump 10.13 Distrib 8.1.0, for macos12.6 (x86_64)
--
-- Host: localhost Database: local_forgepus_v3
-- ------------------------------------------------------
-- Server version 5.7.25
/*!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 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `action_node_inputs`
--
DROP TABLE IF EXISTS `action_node_inputs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `action_node_inputs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`action_nodes_id` bigint(20) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`input_type` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`is_required` tinyint(1) DEFAULT '0',
`sort_no` int(11) DEFAULT '0',
`user_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_action_node_inputs_on_action_nodes_id` (`action_nodes_id`) USING BTREE,
KEY `index_action_node_inputs_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `action_node_inputs`
--
LOCK TABLES `action_node_inputs` WRITE;
/*!40000 ALTER TABLE `action_node_inputs` DISABLE KEYS */;
/*!40000 ALTER TABLE `action_node_inputs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `action_node_selects`
--
DROP TABLE IF EXISTS `action_node_selects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `action_node_selects` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`action_nodes_id` bigint(20) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`val` varchar(255) DEFAULT NULL,
`val_ext` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`download_url` varchar(255) DEFAULT NULL,
`sort_no` int(11) DEFAULT '0',
`use_count` int(11) DEFAULT '0',
`user_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_action_node_selects_on_action_nodes_id` (`action_nodes_id`) USING BTREE,
KEY `index_action_node_selects_on_user_id` (`user_id`) USING BTREE,
KEY `index_action_node_selects_on_name` (`name`(191)) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=191 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `action_node_selects`
--
LOCK TABLES `action_node_selects` WRITE;
/*!40000 ALTER TABLE `action_node_selects` DISABLE KEYS */;
/*!40000 ALTER TABLE `action_node_selects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `action_node_types`
--
DROP TABLE IF EXISTS `action_node_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `action_node_types` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`sort_no` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `action_node_types`
--
LOCK TABLES `action_node_types` WRITE;
/*!40000 ALTER TABLE `action_node_types` DISABLE KEYS */;
/*!40000 ALTER TABLE `action_node_types` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `action_nodes`
--
DROP TABLE IF EXISTS `action_nodes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `action_nodes` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`full_name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`icon` varchar(255) DEFAULT NULL,
`action_node_types_id` bigint(20) DEFAULT NULL,
`is_local` tinyint(1) DEFAULT '0',
`local_url` varchar(255) DEFAULT NULL,
`yaml` text,
`sort_no` int(11) DEFAULT '0',
`use_count` int(11) DEFAULT '0',
`user_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`label` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_action_nodes_on_action_node_types_id` (`action_node_types_id`) USING BTREE,
KEY `index_action_nodes_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `action_nodes`
--
LOCK TABLES `action_nodes` WRITE;
/*!40000 ALTER TABLE `action_nodes` DISABLE KEYS */;
/*!40000 ALTER TABLE `action_nodes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `action_pipelines`
--
DROP TABLE IF EXISTS `action_pipelines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `action_pipelines` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`pipeline_name` varchar(255) DEFAULT NULL,
`pipeline_status` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`file_name` varchar(255) DEFAULT NULL,
`is_graphic_design` tinyint(1) DEFAULT '0',
`repo_name` varchar(255) DEFAULT NULL,
`repo_identifier` varchar(255) DEFAULT NULL,
`repo_owner` varchar(255) DEFAULT NULL,
`branch` varchar(255) DEFAULT NULL,
`event` varchar(255) DEFAULT NULL,
`sha` varchar(255) DEFAULT NULL,
`json` text,
`yaml` text,
`disable` tinyint(1) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_action_pipelines_on_project_id` (`project_id`) USING BTREE,
KEY `index_action_pipelines_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `action_pipelines`
--
LOCK TABLES `action_pipelines` WRITE;
/*!40000 ALTER TABLE `action_pipelines` DISABLE KEYS */;
/*!40000 ALTER TABLE `action_pipelines` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `action_templates`
--
DROP TABLE IF EXISTS `action_templates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `action_templates` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`img` varchar(255) DEFAULT NULL,
`sort_no` int(11) DEFAULT '0',
`json` text,
`yaml` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `action_templates`
--
LOCK TABLES `action_templates` WRITE;
/*!40000 ALTER TABLE `action_templates` DISABLE KEYS */;
/*!40000 ALTER TABLE `action_templates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `api_keys`
--
DROP TABLE IF EXISTS `api_keys`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `api_keys` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`access_token` varchar(255) DEFAULT NULL,
`expires_at` datetime DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`active` tinyint(1) DEFAULT '1',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_api_keys_on_user_id` (`user_id`) USING BTREE,
KEY `index_api_keys_on_access_token` (`access_token`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `api_keys`
--
LOCK TABLES `api_keys` WRITE;
/*!40000 ALTER TABLE `api_keys` DISABLE KEYS */;
/*!40000 ALTER TABLE `api_keys` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `applied_contests`
--
DROP TABLE IF EXISTS `applied_contests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `applied_contests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`contest_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`role` varchar(255) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_applied_contests_on_contest_id` (`contest_id`) USING BTREE,
KEY `index_applied_contests_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `applied_contests`
--
LOCK TABLES `applied_contests` WRITE;
/*!40000 ALTER TABLE `applied_contests` DISABLE KEYS */;
/*!40000 ALTER TABLE `applied_contests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `applied_messages`
--
DROP TABLE IF EXISTS `applied_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `applied_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`applied_id` int(11) DEFAULT NULL,
`applied_type` varchar(255) DEFAULT NULL,
`viewed` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`name` varchar(255) DEFAULT NULL,
`applied_user_id` int(11) DEFAULT NULL,
`role` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `applied_messages`
--
LOCK TABLES `applied_messages` WRITE;
/*!40000 ALTER TABLE `applied_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `applied_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `applied_projects`
--
DROP TABLE IF EXISTS `applied_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `applied_projects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`role` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `applied_projects`
--
LOCK TABLES `applied_projects` WRITE;
/*!40000 ALTER TABLE `applied_projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `applied_projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `applied_transfer_projects`
--
DROP TABLE IF EXISTS `applied_transfer_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `applied_transfer_projects` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` bigint(20) DEFAULT NULL,
`owner_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`status` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_applied_transfer_projects_on_project_id` (`project_id`) USING BTREE,
KEY `index_applied_transfer_projects_on_owner_id` (`owner_id`) USING BTREE,
KEY `index_applied_transfer_projects_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `applied_transfer_projects`
--
LOCK TABLES `applied_transfer_projects` WRITE;
/*!40000 ALTER TABLE `applied_transfer_projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `applied_transfer_projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `apply_actions`
--
DROP TABLE IF EXISTS `apply_actions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `apply_actions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`reason` varchar(255) DEFAULT NULL,
`container_id` int(11) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`dealer_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`status` tinyint(4) DEFAULT '0',
`apply_reason` text,
`noticed` tinyint(1) DEFAULT '0',
`ip_addr` varchar(255) DEFAULT NULL,
`reject_description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_apply_actions_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `apply_actions`
--
LOCK TABLES `apply_actions` WRITE;
/*!40000 ALTER TABLE `apply_actions` DISABLE KEYS */;
/*!40000 ALTER TABLE `apply_actions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `apply_add_departments`
--
DROP TABLE IF EXISTS `apply_add_departments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `apply_add_departments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`department_id` int(11) DEFAULT NULL,
`school_id` int(11) DEFAULT NULL,
`remarks` text,
`user_id` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_apply_add_departments_on_department_id` (`department_id`) USING BTREE,
KEY `index_apply_add_departments_on_school_id` (`school_id`) USING BTREE,
KEY `index_apply_add_departments_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `apply_add_departments`
--
LOCK TABLES `apply_add_departments` WRITE;
/*!40000 ALTER TABLE `apply_add_departments` DISABLE KEYS */;
/*!40000 ALTER TABLE `apply_add_departments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `apply_project_masters`
--
DROP TABLE IF EXISTS `apply_project_masters`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `apply_project_masters` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`apply_type` varchar(255) DEFAULT NULL,
`apply_id` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `apply_project_masters`
--
LOCK TABLES `apply_project_masters` WRITE;
/*!40000 ALTER TABLE `apply_project_masters` DISABLE KEYS */;
/*!40000 ALTER TABLE `apply_project_masters` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `apply_resources`
--
DROP TABLE IF EXISTS `apply_resources`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `apply_resources` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`status` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`attachment_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`container_id` int(11) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`content` text,
`apply_user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `apply_resources`
--
LOCK TABLES `apply_resources` WRITE;
/*!40000 ALTER TABLE `apply_resources` DISABLE KEYS */;
/*!40000 ALTER TABLE `apply_resources` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `apply_user_authentications`
--
DROP TABLE IF EXISTS `apply_user_authentications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `apply_user_authentications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`auth_type` int(11) DEFAULT NULL,
`remarks` varchar(255) DEFAULT NULL,
`dealer` int(11) DEFAULT NULL,
`deal_time` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`is_delete` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_apply_user_authentications_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `apply_user_authentications`
--
LOCK TABLES `apply_user_authentications` WRITE;
/*!40000 ALTER TABLE `apply_user_authentications` DISABLE KEYS */;
/*!40000 ALTER TABLE `apply_user_authentications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ar_internal_metadata`
--
DROP TABLE IF EXISTS `ar_internal_metadata`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ar_internal_metadata` (
`key` varchar(255) NOT NULL,
`value` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`key`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ar_internal_metadata`
--
LOCK TABLES `ar_internal_metadata` WRITE;
/*!40000 ALTER TABLE `ar_internal_metadata` DISABLE KEYS */;
/*!40000 ALTER TABLE `ar_internal_metadata` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `attachment_group_settings`
--
DROP TABLE IF EXISTS `attachment_group_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `attachment_group_settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachment_id` int(11) DEFAULT NULL,
`course_group_id` int(11) DEFAULT NULL,
`course_id` int(11) DEFAULT NULL,
`publish_time` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_attachment_group_settings_on_attachment_id` (`attachment_id`) USING BTREE,
KEY `index_attachment_group_settings_on_course_group_id` (`course_group_id`) USING BTREE,
KEY `index_attachment_group_settings_on_course_id` (`course_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attachment_group_settings`
--
LOCK TABLES `attachment_group_settings` WRITE;
/*!40000 ALTER TABLE `attachment_group_settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachment_group_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `attachment_histories`
--
DROP TABLE IF EXISTS `attachment_histories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `attachment_histories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`container_id` int(11) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`filename` varchar(255) DEFAULT '',
`disk_filename` varchar(255) DEFAULT '',
`filesize` int(11) DEFAULT '0',
`content_type` varchar(255) DEFAULT '',
`digest` varchar(60) DEFAULT '',
`downloads` int(11) DEFAULT '0',
`author_id` int(11) DEFAULT NULL,
`created_on` datetime DEFAULT NULL,
`description` text,
`disk_directory` varchar(255) DEFAULT NULL,
`attachtype` int(11) DEFAULT NULL,
`is_public` int(11) DEFAULT NULL,
`copy_from` int(11) DEFAULT NULL,
`quotes` int(11) DEFAULT NULL,
`version` int(11) DEFAULT NULL,
`attachment_id` int(11) DEFAULT NULL,
`is_publish` int(11) DEFAULT '1',
`publish_time` date DEFAULT NULL,
`cloud_url` varchar(255) DEFAULT '',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attachment_histories`
--
LOCK TABLES `attachment_histories` WRITE;
/*!40000 ALTER TABLE `attachment_histories` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachment_histories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `attachments`
--
DROP TABLE IF EXISTS `attachments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `attachments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`container_id` int(11) DEFAULT NULL,
`container_type` varchar(30) DEFAULT NULL,
`filename` varchar(255) NOT NULL DEFAULT '',
`disk_filename` varchar(255) NOT NULL DEFAULT '',
`filesize` int(11) NOT NULL DEFAULT '0',
`content_type` varchar(255) DEFAULT '',
`digest` varchar(60) NOT NULL DEFAULT '',
`downloads` int(11) NOT NULL DEFAULT '0',
`author_id` int(11) NOT NULL DEFAULT '0',
`created_on` datetime DEFAULT NULL,
`description` text,
`disk_directory` varchar(255) DEFAULT NULL,
`attachtype` int(11) DEFAULT '1',
`is_public` int(11) DEFAULT '1',
`copy_from` int(11) DEFAULT NULL,
`quotes` int(11) DEFAULT '0',
`is_publish` int(11) DEFAULT '1',
`publish_time` datetime DEFAULT NULL,
`resource_bank_id` int(11) DEFAULT NULL,
`unified_setting` tinyint(1) DEFAULT '1',
`cloud_url` varchar(255) DEFAULT '',
`course_second_category_id` int(11) DEFAULT '0',
`delay_publish` tinyint(1) DEFAULT '0',
`uuid` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_attachments_on_author_id` (`author_id`) USING BTREE,
KEY `index_attachments_on_created_on` (`created_on`) USING BTREE,
KEY `index_attachments_on_container_id_and_container_type` (`container_id`,`container_type`) USING BTREE,
KEY `index_attachments_on_course_second_category_id` (`course_second_category_id`) USING BTREE,
KEY `index_attachments_on_quotes` (`quotes`) USING BTREE,
KEY `index_attachments_on_is_public` (`is_public`) USING BTREE,
KEY `index_attachments_on_uuid` (`uuid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1968 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attachments`
--
LOCK TABLES `attachments` WRITE;
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `attachmentstypes`
--
DROP TABLE IF EXISTS `attachmentstypes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `attachmentstypes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`typeId` int(11) NOT NULL,
`typeName` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attachmentstypes`
--
LOCK TABLES `attachmentstypes` WRITE;
/*!40000 ALTER TABLE `attachmentstypes` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachmentstypes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_sources`
--
DROP TABLE IF EXISTS `auth_sources`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `auth_sources` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(30) NOT NULL DEFAULT '',
`name` varchar(60) NOT NULL DEFAULT '',
`host` varchar(60) DEFAULT NULL,
`port` int(11) DEFAULT NULL,
`account` varchar(255) DEFAULT NULL,
`account_password` varchar(255) DEFAULT '',
`base_dn` varchar(255) DEFAULT NULL,
`attr_login` varchar(30) DEFAULT NULL,
`attr_firstname` varchar(30) DEFAULT NULL,
`attr_lastname` varchar(30) DEFAULT NULL,
`attr_mail` varchar(30) DEFAULT NULL,
`onthefly_register` tinyint(1) NOT NULL DEFAULT '0',
`tls` tinyint(1) NOT NULL DEFAULT '0',
`filter` varchar(255) DEFAULT NULL,
`timeout` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_auth_sources_on_id_and_type` (`id`,`type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_sources`
--
LOCK TABLES `auth_sources` WRITE;
/*!40000 ALTER TABLE `auth_sources` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_sources` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `authentications`
--
DROP TABLE IF EXISTS `authentications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `authentications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` tinyint(4) DEFAULT NULL,
`permissions` text,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `authentications`
--
LOCK TABLES `authentications` WRITE;
/*!40000 ALTER TABLE `authentications` DISABLE KEYS */;
/*!40000 ALTER TABLE `authentications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `authentications_users`
--
DROP TABLE IF EXISTS `authentications_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `authentications_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`authentication_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `authentications_users`
--
LOCK TABLES `authentications_users` WRITE;
/*!40000 ALTER TABLE `authentications_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `authentications_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bidding_users`
--
DROP TABLE IF EXISTS `bidding_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bidding_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_package_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_bidding_users_on_project_package_id` (`project_package_id`) USING BTREE,
KEY `index_bidding_users_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bidding_users`
--
LOCK TABLES `bidding_users` WRITE;
/*!40000 ALTER TABLE `bidding_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `bidding_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `biding_projects`
--
DROP TABLE IF EXISTS `biding_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `biding_projects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`bid_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`reward` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `biding_projects`
--
LOCK TABLES `biding_projects` WRITE;
/*!40000 ALTER TABLE `biding_projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `biding_projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bids`
--
DROP TABLE IF EXISTS `bids`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bids` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`budget` varchar(255) NOT NULL,
`author_id` int(11) DEFAULT NULL,
`deadline` date DEFAULT NULL,
`description` text,
`created_on` datetime NOT NULL,
`updated_on` datetime NOT NULL,
`commit` int(11) DEFAULT NULL,
`reward_type` int(11) DEFAULT NULL,
`homework_type` int(11) DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`is_evaluation` int(11) DEFAULT NULL,
`proportion` int(11) DEFAULT '60',
`comment_status` int(11) DEFAULT '0',
`evaluation_num` int(11) DEFAULT '3',
`open_anonymous_evaluation` int(11) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bids`
--
LOCK TABLES `bids` WRITE;
/*!40000 ALTER TABLE `bids` DISABLE KEYS */;
/*!40000 ALTER TABLE `bids` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bot`
--
DROP TABLE IF EXISTS `bot`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bot` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`bot_name` varchar(255) NOT NULL COMMENT 'bot名称',
`bot_des` longtext COMMENT 'bot描述',
`webhook` varchar(255) NOT NULL COMMENT 'bot回调url',
`is_public` tinyint(4) DEFAULT NULL COMMENT '0:私有1公开',
`logo` varchar(255) DEFAULT NULL COMMENT 'logo',
`state` tinyint(4) DEFAULT NULL COMMENT '0:挂起1工作',
`client_id` varchar(255) DEFAULT NULL COMMENT '客户端id后台生成',
`client_secret` varchar(255) DEFAULT NULL COMMENT '客户端密钥(后台生成)',
`web_url` varchar(255) DEFAULT NULL COMMENT '主页网址',
`category` varchar(255) DEFAULT NULL COMMENT '类型',
`install_num` int(11) DEFAULT '0' COMMENT '下载数量',
`update_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
`uid` int(11) DEFAULT NULL,
`owner_id` int(11) DEFAULT NULL,
`private_key` text,
`oauth_callback_url` varchar(255) NOT NULL COMMENT 'oauth回调地址',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `name` (`bot_name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bot`
--
LOCK TABLES `bot` WRITE;
/*!40000 ALTER TABLE `bot` DISABLE KEYS */;
/*!40000 ALTER TABLE `bot` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bot_category`
--
DROP TABLE IF EXISTS `bot_category`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bot_category` (
`id` int(11) NOT NULL,
`category` varchar(255) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bot_category`
--
LOCK TABLES `bot_category` WRITE;
/*!40000 ALTER TABLE `bot_category` DISABLE KEYS */;
/*!40000 ALTER TABLE `bot_category` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bot_limit_event`
--
DROP TABLE IF EXISTS `bot_limit_event`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `bot_limit_event` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`bot_id` int(11) NOT NULL COMMENT 'bot的唯一标识',
`read_write_code` tinyint(4) NOT NULL COMMENT '0只读1读写2:无权限',
`read_write_pr` tinyint(4) NOT NULL COMMENT '0只读1读写2:无权限',
`read_write_issue` tinyint(4) NOT NULL DEFAULT '2' COMMENT '0:只读 1:读写 2:无权限',
`auth_category` tinyint(4) NOT NULL COMMENT '0:代码仓库权限 1:合并请求权限 3:疑修事件权限',
`event` tinyint(4) NOT NULL COMMENT '0:git推送到存储库 1:创建分支或标签 2:删除分支或标签 3:PR被打开或重新打开 4:PR被分配 5:无权限 6:PR评论被创建、编辑或删除 7:ISSUE已打开、已关闭、已重新打开或编辑 8:ISSUE已被指派或取消指派 9:ISSUE标记被更新或清除 10:ISSUE评论被创建、编辑或删除',
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bot_limit_event`
--
LOCK TABLES `bot_limit_event` WRITE;
/*!40000 ALTER TABLE `bot_limit_event` DISABLE KEYS */;
/*!40000 ALTER TABLE `bot_limit_event` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ci_cloud_accounts`
--
DROP TABLE IF EXISTS `ci_cloud_accounts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ci_cloud_accounts` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`ip_num` int(11) DEFAULT NULL,
`account` varchar(255) DEFAULT NULL,
`secret` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`ci_user_id` int(11) DEFAULT NULL,
`server_type` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `dev_ops_cloud_accounts_p_u_ip` (`user_id`,`ip_num`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ci_cloud_accounts`
--
LOCK TABLES `ci_cloud_accounts` WRITE;
/*!40000 ALTER TABLE `ci_cloud_accounts` DISABLE KEYS */;
/*!40000 ALTER TABLE `ci_cloud_accounts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ci_languages`
--
DROP TABLE IF EXISTS `ci_languages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ci_languages` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL COMMENT 'The name of project language.',
`content` text NOT NULL COMMENT 'The content of project language.',
`usage_amount` int(11) DEFAULT '0' COMMENT 'number of people Using the language',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`cover_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ci_languages`
--
LOCK TABLES `ci_languages` WRITE;
/*!40000 ALTER TABLE `ci_languages` DISABLE KEYS */;
/*!40000 ALTER TABLE `ci_languages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ci_pipeline_stage_steps`
--
DROP TABLE IF EXISTS `ci_pipeline_stage_steps`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ci_pipeline_stage_steps` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`step_name` varchar(255) NOT NULL COMMENT '步骤名称',
`stage_id` int(11) NOT NULL COMMENT '阶段id',
`template_id` int(11) DEFAULT NULL COMMENT '模板id',
`content` text,
`show_index` int(11) NOT NULL DEFAULT '0' COMMENT '阶段排序',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ci_pipeline_stage_steps`
--
LOCK TABLES `ci_pipeline_stage_steps` WRITE;
/*!40000 ALTER TABLE `ci_pipeline_stage_steps` DISABLE KEYS */;
/*!40000 ALTER TABLE `ci_pipeline_stage_steps` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ci_pipeline_stages`
--
DROP TABLE IF EXISTS `ci_pipeline_stages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ci_pipeline_stages` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`stage_name` varchar(255) NOT NULL COMMENT '阶段名称',
`stage_type` varchar(255) NOT NULL COMMENT '阶段类型init/build/deploy/customize/confirm',
`pipeline_id` int(11) NOT NULL COMMENT '阶段所属流水线id',
`show_index` int(11) NOT NULL DEFAULT '0' COMMENT '阶段排序',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ci_pipeline_stages`
--
LOCK TABLES `ci_pipeline_stages` WRITE;
/*!40000 ALTER TABLE `ci_pipeline_stages` DISABLE KEYS */;
/*!40000 ALTER TABLE `ci_pipeline_stages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ci_pipelines`
--
DROP TABLE IF EXISTS `ci_pipelines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ci_pipelines` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`pipeline_name` varchar(255) NOT NULL COMMENT '流水线名称',
`pipeline_status` varchar(255) NOT NULL DEFAULT 'unknown' COMMENT 'successed/failed/running/errored/pending/killed/unknown',
`file_name` varchar(255) NOT NULL COMMENT '文件名称',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`login` varchar(255) DEFAULT NULL,
`sync` int(11) NOT NULL DEFAULT '0' COMMENT '0 未同步到gitea1 已同步',
`identifier` varchar(255) DEFAULT NULL,
`branch` varchar(255) DEFAULT NULL,
`event` varchar(255) DEFAULT NULL,
`sha` varchar(255) DEFAULT NULL,
`owner` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ci_pipelines`
--
LOCK TABLES `ci_pipelines` WRITE;
/*!40000 ALTER TABLE `ci_pipelines` DISABLE KEYS */;
/*!40000 ALTER TABLE `ci_pipelines` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ci_templates`
--
DROP TABLE IF EXISTS `ci_templates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ci_templates` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`template_name` varchar(255) NOT NULL COMMENT '模板名称',
`stage_type` varchar(255) NOT NULL COMMENT '模板所属阶段类型init/build/deploy/customize/confirm',
`category` varchar(255) NOT NULL COMMENT '模板分类',
`content` text NOT NULL COMMENT '模板yml内容',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`parent_category` varchar(255) DEFAULT NULL,
`login` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_ci_templates_on_stage_type` (`stage_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ci_templates`
--
LOCK TABLES `ci_templates` WRITE;
/*!40000 ALTER TABLE `ci_templates` DISABLE KEYS */;
/*!40000 ALTER TABLE `ci_templates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `claims`
--
DROP TABLE IF EXISTS `claims`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `claims` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_claims_on_issue_id` (`issue_id`) USING BTREE,
KEY `index_claims_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `claims`
--
LOCK TABLES `claims` WRITE;
/*!40000 ALTER TABLE `claims` DISABLE KEYS */;
/*!40000 ALTER TABLE `claims` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `clas`
--
DROP TABLE IF EXISTS `clas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `clas` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`content` text COLLATE utf8mb4_unicode_ci,
`organization_id` int(11) NOT NULL,
`pr_need` tinyint(1) DEFAULT '0',
`count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_clas_on_key` (`key`(190)) USING BTREE,
KEY `index_clas_on_organization_id` (`organization_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `clas`
--
LOCK TABLES `clas` WRITE;
/*!40000 ALTER TABLE `clas` DISABLE KEYS */;
/*!40000 ALTER TABLE `clas` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `code_review_assignments`
--
DROP TABLE IF EXISTS `code_review_assignments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `code_review_assignments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) DEFAULT NULL,
`change_id` int(11) DEFAULT NULL,
`attachment_id` int(11) DEFAULT NULL,
`file_path` varchar(255) DEFAULT NULL,
`rev` varchar(255) DEFAULT NULL,
`rev_to` varchar(255) DEFAULT NULL,
`action_type` varchar(255) DEFAULT NULL,
`changeset_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `code_review_assignments`
--
LOCK TABLES `code_review_assignments` WRITE;
/*!40000 ALTER TABLE `code_review_assignments` DISABLE KEYS */;
/*!40000 ALTER TABLE `code_review_assignments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `code_review_project_settings`
--
DROP TABLE IF EXISTS `code_review_project_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `code_review_project_settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`tracker_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`updated_by` int(11) DEFAULT NULL,
`hide_code_review_tab` tinyint(1) DEFAULT '0',
`auto_relation` int(11) DEFAULT '1',
`assignment_tracker_id` int(11) DEFAULT NULL,
`auto_assign` text,
`lock_version` int(11) NOT NULL DEFAULT '0',
`tracker_in_review_dialog` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `code_review_project_settings`
--
LOCK TABLES `code_review_project_settings` WRITE;
/*!40000 ALTER TABLE `code_review_project_settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `code_review_project_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `code_review_user_settings`
--
DROP TABLE IF EXISTS `code_review_user_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `code_review_user_settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`mail_notification` int(11) NOT NULL DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `code_review_user_settings`
--
LOCK TABLES `code_review_user_settings` WRITE;
/*!40000 ALTER TABLE `code_review_user_settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `code_review_user_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `code_reviews`
--
DROP TABLE IF EXISTS `code_reviews`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `code_reviews` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`change_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`line` int(11) DEFAULT NULL,
`updated_by_id` int(11) DEFAULT NULL,
`lock_version` int(11) NOT NULL DEFAULT '0',
`status_changed_from` int(11) DEFAULT NULL,
`status_changed_to` int(11) DEFAULT NULL,
`issue_id` int(11) DEFAULT NULL,
`action_type` varchar(255) DEFAULT NULL,
`file_path` varchar(255) DEFAULT NULL,
`rev` varchar(255) DEFAULT NULL,
`rev_to` varchar(255) DEFAULT NULL,
`attachment_id` int(11) DEFAULT NULL,
`file_count` int(11) NOT NULL DEFAULT '0',
`diff_all` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `code_reviews`
--
LOCK TABLES `code_reviews` WRITE;
/*!40000 ALTER TABLE `code_reviews` DISABLE KEYS */;
/*!40000 ALTER TABLE `code_reviews` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `code_tests`
--
DROP TABLE IF EXISTS `code_tests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `code_tests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`homework_id` int(11) DEFAULT NULL,
`wait_time` int(11) DEFAULT '0',
`language` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`time_used` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`student_work_id` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `code_tests`
--
LOCK TABLES `code_tests` WRITE;
/*!40000 ALTER TABLE `code_tests` DISABLE KEYS */;
/*!40000 ALTER TABLE `code_tests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `comments`
--
DROP TABLE IF EXISTS `comments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`commented_type` varchar(30) NOT NULL DEFAULT '',
`commented_id` int(11) NOT NULL DEFAULT '0',
`author_id` int(11) NOT NULL DEFAULT '0',
`comments` text,
`created_on` datetime NOT NULL,
`updated_on` datetime NOT NULL,
`parent_id` int(11) DEFAULT NULL,
`comments_count` int(11) DEFAULT '0',
`reply_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_comments_on_commented_id_and_commented_type` (`commented_id`,`commented_type`) USING BTREE,
KEY `index_comments_on_author_id` (`author_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `comments`
--
LOCK TABLES `comments` WRITE;
/*!40000 ALTER TABLE `comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `comments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `commit_issues`
--
DROP TABLE IF EXISTS `commit_issues`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `commit_issues` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`commit_id` varchar(255) DEFAULT NULL,
`issue_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `commit_issues`
--
LOCK TABLES `commit_issues` WRITE;
/*!40000 ALTER TABLE `commit_issues` DISABLE KEYS */;
/*!40000 ALTER TABLE `commit_issues` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `commit_logs`
--
DROP TABLE IF EXISTS `commit_logs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `commit_logs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`repository_id` int(11) DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`full_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`commit_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ref` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` text COLLATE utf8mb4_unicode_ci,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_commit_logs_on_user_id` (`user_id`) USING BTREE,
KEY `index_commit_logs_on_project_id` (`project_id`) USING BTREE,
KEY `index_commit_logs_on_commit_id` (`commit_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `commit_logs`
--
LOCK TABLES `commit_logs` WRITE;
/*!40000 ALTER TABLE `commit_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `commit_logs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `commits`
--
DROP TABLE IF EXISTS `commits`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `commits` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`repository_id` int(11) DEFAULT NULL,
`version` varchar(255) DEFAULT NULL,
`committer` varchar(255) DEFAULT NULL,
`comments` text,
`committed_on` datetime DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `commits`
--
LOCK TABLES `commits` WRITE;
/*!40000 ALTER TABLE `commits` DISABLE KEYS */;
/*!40000 ALTER TABLE `commits` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `compose_projects`
--
DROP TABLE IF EXISTS `compose_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `compose_projects` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`compose_id` int(11) DEFAULT NULL,
`position` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_compose_projects_on_user_id_and_project_id_and_compose_id` (`user_id`,`project_id`,`compose_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `compose_projects`
--
LOCK TABLES `compose_projects` WRITE;
/*!40000 ALTER TABLE `compose_projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `compose_projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `compose_users`
--
DROP TABLE IF EXISTS `compose_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `compose_users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`compose_id` int(11) DEFAULT NULL,
`is_manager` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_compose_users_on_user_id_and_compose_id` (`user_id`,`compose_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `compose_users`
--
LOCK TABLES `compose_users` WRITE;
/*!40000 ALTER TABLE `compose_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `compose_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `composes`
--
DROP TABLE IF EXISTS `composes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `composes` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`description` text,
`show_mode` int(11) DEFAULT '0',
`compose_mode` tinyint(1) DEFAULT '0',
`compose_users_count` int(11) DEFAULT '0',
`compose_projects_count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_composes_on_user_id_and_show_mode_and_compose_mode` (`user_id`,`show_mode`,`compose_mode`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `composes`
--
LOCK TABLES `composes` WRITE;
/*!40000 ALTER TABLE `composes` DISABLE KEYS */;
/*!40000 ALTER TABLE `composes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `coo_imgs`
--
DROP TABLE IF EXISTS `coo_imgs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `coo_imgs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`src_states` varchar(255) DEFAULT NULL,
`url_states` varchar(255) DEFAULT NULL,
`img_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`position` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `coo_imgs`
--
LOCK TABLES `coo_imgs` WRITE;
/*!40000 ALTER TABLE `coo_imgs` DISABLE KEYS */;
/*!40000 ALTER TABLE `coo_imgs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `coop_imgs`
--
DROP TABLE IF EXISTS `coop_imgs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `coop_imgs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`src_states` varchar(255) DEFAULT NULL,
`url_states` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`img_type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `coop_imgs`
--
LOCK TABLES `coop_imgs` WRITE;
/*!40000 ALTER TABLE `coop_imgs` DISABLE KEYS */;
/*!40000 ALTER TABLE `coop_imgs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cooperations`
--
DROP TABLE IF EXISTS `cooperations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `cooperations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`mail` varchar(255) DEFAULT NULL,
`qq` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`user_type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cooperations`
--
LOCK TABLES `cooperations` WRITE;
/*!40000 ALTER TABLE `cooperations` DISABLE KEYS */;
/*!40000 ALTER TABLE `cooperations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `daily_platform_statistics`
--
DROP TABLE IF EXISTS `daily_platform_statistics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `daily_platform_statistics` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`date` date DEFAULT NULL,
`pv` bigint(20) DEFAULT '0',
`visitor` bigint(20) DEFAULT '0',
`ip` bigint(20) DEFAULT '0',
`weekly_keep_rate` float DEFAULT '0',
`source_through` float DEFAULT '0',
`source_link` float DEFAULT '0',
`source_search` float DEFAULT '0',
`source_custom` float DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_daily_platform_statistics_on_date` (`date`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `daily_platform_statistics`
--
LOCK TABLES `daily_platform_statistics` WRITE;
/*!40000 ALTER TABLE `daily_platform_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `daily_platform_statistics` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `daily_project_statistics`
--
DROP TABLE IF EXISTS `daily_project_statistics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `daily_project_statistics` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` bigint(20) DEFAULT NULL,
`date` date DEFAULT NULL,
`score` int(11) DEFAULT '0',
`visits` int(11) DEFAULT '0',
`watchers` int(11) DEFAULT '0',
`praises` int(11) DEFAULT '0',
`forks` int(11) DEFAULT '0',
`issues` int(11) DEFAULT '0',
`pullrequests` int(11) DEFAULT '0',
`commits` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`closed_issues` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_daily_project_statistics_on_project_id` (`project_id`) USING BTREE,
KEY `index_daily_project_statistics_on_date` (`date`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `daily_project_statistics`
--
LOCK TABLES `daily_project_statistics` WRITE;
/*!40000 ALTER TABLE `daily_project_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `daily_project_statistics` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `data_exceptions`
--
DROP TABLE IF EXISTS `data_exceptions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `data_exceptions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`message` varchar(255) DEFAULT NULL,
`container_id` int(11) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `data_exceptions`
--
LOCK TABLES `data_exceptions` WRITE;
/*!40000 ALTER TABLE `data_exceptions` DISABLE KEYS */;
/*!40000 ALTER TABLE `data_exceptions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `department_members`
--
DROP TABLE IF EXISTS `department_members`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `department_members` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`department_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_department_members_on_department_id` (`department_id`) USING BTREE,
KEY `index_department_members_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `department_members`
--
LOCK TABLES `department_members` WRITE;
/*!40000 ALTER TABLE `department_members` DISABLE KEYS */;
/*!40000 ALTER TABLE `department_members` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `departments`
--
DROP TABLE IF EXISTS `departments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `departments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`school_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`is_auth` tinyint(1) DEFAULT '0',
`identifier` varchar(255) DEFAULT NULL,
`host_count` int(11) DEFAULT '5',
`is_delete` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_departments_on_school_id` (`school_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `departments`
--
LOCK TABLES `departments` WRITE;
/*!40000 ALTER TABLE `departments` DISABLE KEYS */;
/*!40000 ALTER TABLE `departments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `diff_record_contents`
--
DROP TABLE IF EXISTS `diff_record_contents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `diff_record_contents` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`diff_record_id` bigint(20) DEFAULT NULL,
`content` text,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_diff_record_contents_on_diff_record_id` (`diff_record_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `diff_record_contents`
--
LOCK TABLES `diff_record_contents` WRITE;
/*!40000 ALTER TABLE `diff_record_contents` DISABLE KEYS */;
/*!40000 ALTER TABLE `diff_record_contents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `diff_records`
--
DROP TABLE IF EXISTS `diff_records`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `diff_records` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`container_id` bigint(20) DEFAULT NULL,
`column_name` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_diff_records_on_user_id` (`user_id`) USING BTREE,
KEY `index_diff_records_on_container_type_and_container_id` (`container_type`,`container_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `diff_records`
--
LOCK TABLES `diff_records` WRITE;
/*!40000 ALTER TABLE `diff_records` DISABLE KEYS */;
/*!40000 ALTER TABLE `diff_records` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `documents`
--
DROP TABLE IF EXISTS `documents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `documents` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL DEFAULT '0',
`category_id` int(11) NOT NULL DEFAULT '0',
`title` varchar(60) NOT NULL DEFAULT '',
`description` text,
`created_on` datetime DEFAULT NULL,
`user_id` int(11) DEFAULT '0',
`is_public` int(11) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
KEY `documents_project_id` (`project_id`) USING BTREE,
KEY `index_documents_on_category_id` (`category_id`) USING BTREE,
KEY `index_documents_on_created_on` (`created_on`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `documents`
--
LOCK TABLES `documents` WRITE;
/*!40000 ALTER TABLE `documents` DISABLE KEYS */;
/*!40000 ALTER TABLE `documents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dts`
--
DROP TABLE IF EXISTS `dts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `dts` (
`Num` int(11) NOT NULL DEFAULT '0',
`Defect` varchar(50) DEFAULT NULL,
`Category` varchar(50) DEFAULT NULL,
`File` varchar(255) DEFAULT NULL,
`Method` varchar(255) DEFAULT NULL,
`Module` varchar(20) DEFAULT NULL,
`Variable` varchar(50) DEFAULT NULL,
`StartLine` int(11) DEFAULT NULL,
`IPLine` int(11) DEFAULT NULL,
`IPLineCode` varchar(200) DEFAULT NULL,
`Judge` varchar(15) DEFAULT NULL,
`Review` tinyint(4) DEFAULT NULL,
`Description` varchar(255) DEFAULT NULL,
`PreConditions` longtext,
`TraceInfo` longtext,
`Code` longtext,
`project_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`id` int(11) NOT NULL,
PRIMARY KEY (`Num`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dts`
--
LOCK TABLES `dts` WRITE;
/*!40000 ALTER TABLE `dts` DISABLE KEYS */;
/*!40000 ALTER TABLE `dts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `editor_of_documents`
--
DROP TABLE IF EXISTS `editor_of_documents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `editor_of_documents` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`editor_id` int(11) DEFAULT NULL,
`org_document_comment_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `editor_of_documents`
--
LOCK TABLES `editor_of_documents` WRITE;
/*!40000 ALTER TABLE `editor_of_documents` DISABLE KEYS */;
/*!40000 ALTER TABLE `editor_of_documents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `edu_settings`
--
DROP TABLE IF EXISTS `edu_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `edu_settings` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`value` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_edu_settings_on_name` (`name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `edu_settings`
--
LOCK TABLES `edu_settings` WRITE;
/*!40000 ALTER TABLE `edu_settings` DISABLE KEYS */;
INSERT INTO `edu_settings` VALUES (1,'code_debug','true','2023-11-29 08:08:38','2024-06-19 08:15:16',''),(2,'autologin_cookie_name','autologin_trustie','2023-12-05 03:06:04','2024-06-19 08:15:25','1'),(3,'attachment_folder','/files/','2023-12-08 07:09:36','2024-06-19 08:15:30','1'),(4,'site_page_deploy_key','XsJvrDLofg91TCqpO3WzdumPUiH7l8y','2023-12-20 01:34:58','2023-12-20 01:34:58',''),(5,'site_page_deploy_domain','gitlink.net','2023-12-20 01:35:10','2023-12-20 01:35:10',''),(6,'is_local','true','2024-06-19 08:20:01','2024-06-19 08:20:01',''),(7,'open_blockchain_users','innov,xxq250','2024-06-20 03:29:09','2024-06-20 03:29:09','');
/*!40000 ALTER TABLE `edu_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `enabled_modules`
--
DROP TABLE IF EXISTS `enabled_modules`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `enabled_modules` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`course_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `enabled_modules_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `enabled_modules`
--
LOCK TABLES `enabled_modules` WRITE;
/*!40000 ALTER TABLE `enabled_modules` DISABLE KEYS */;
/*!40000 ALTER TABLE `enabled_modules` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `enumerations`
--
DROP TABLE IF EXISTS `enumerations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `enumerations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL DEFAULT '',
`position` int(11) DEFAULT '1',
`is_default` tinyint(1) NOT NULL DEFAULT '0',
`type` varchar(255) DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT '1',
`project_id` int(11) DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`position_name` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_enumerations_on_project_id` (`project_id`) USING BTREE,
KEY `index_enumerations_on_id_and_type` (`id`,`type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `enumerations`
--
LOCK TABLES `enumerations` WRITE;
/*!40000 ALTER TABLE `enumerations` DISABLE KEYS */;
/*!40000 ALTER TABLE `enumerations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `error_checks`
--
DROP TABLE IF EXISTS `error_checks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `error_checks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`game_indentifier` varchar(255) DEFAULT NULL,
`login` varchar(255) DEFAULT NULL,
`path` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `error_checks`
--
LOCK TABLES `error_checks` WRITE;
/*!40000 ALTER TABLE `error_checks` DISABLE KEYS */;
/*!40000 ALTER TABLE `error_checks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `evaluate_records`
--
DROP TABLE IF EXISTS `evaluate_records`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `evaluate_records` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`shixun_id` int(11) DEFAULT NULL,
`game_id` int(11) DEFAULT NULL,
`consume_time` float DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`file_update` float DEFAULT NULL,
`git_pull` float DEFAULT NULL,
`create_pod` float DEFAULT NULL,
`pod_execute` float DEFAULT NULL,
`student_work` float DEFAULT NULL,
`test_cases` float DEFAULT NULL,
`retry` float DEFAULT NULL,
`game_build` float DEFAULT NULL,
`return_back` float DEFAULT NULL,
`brige` float DEFAULT NULL,
`create_status` datetime DEFAULT NULL,
`front_js` float DEFAULT NULL,
`identifier` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_evaluate_records_on_identifier` (`identifier`) USING BTREE,
KEY `index_evaluate_records_on_game_id` (`game_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `evaluate_records`
--
LOCK TABLES `evaluate_records` WRITE;
/*!40000 ALTER TABLE `evaluate_records` DISABLE KEYS */;
/*!40000 ALTER TABLE `evaluate_records` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `faqs`
--
DROP TABLE IF EXISTS `faqs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `faqs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`question` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `faqs`
--
LOCK TABLES `faqs` WRITE;
/*!40000 ALTER TABLE `faqs` DISABLE KEYS */;
/*!40000 ALTER TABLE `faqs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `feedback_message_histories`
--
DROP TABLE IF EXISTS `feedback_message_histories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `feedback_message_histories` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`feedback_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_feedback_message_histories_on_feedback_id` (`feedback_id`) USING BTREE,
KEY `index_feedback_message_histories_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `feedback_message_histories`
--
LOCK TABLES `feedback_message_histories` WRITE;
/*!40000 ALTER TABLE `feedback_message_histories` DISABLE KEYS */;
/*!40000 ALTER TABLE `feedback_message_histories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `feedbacks`
--
DROP TABLE IF EXISTS `feedbacks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `feedbacks` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_feedbacks_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `feedbacks`
--
LOCK TABLES `feedbacks` WRITE;
/*!40000 ALTER TABLE `feedbacks` DISABLE KEYS */;
/*!40000 ALTER TABLE `feedbacks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `first_pages`
--
DROP TABLE IF EXISTS `first_pages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `first_pages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`web_title` varchar(255) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`description` text,
`page_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`sort_type` int(11) DEFAULT NULL,
`image_width` int(11) DEFAULT '107',
`image_height` int(11) DEFAULT '63',
`show_course` int(11) DEFAULT '1',
`show_contest` int(11) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `first_pages`
--
LOCK TABLES `first_pages` WRITE;
/*!40000 ALTER TABLE `first_pages` DISABLE KEYS */;
/*!40000 ALTER TABLE `first_pages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `forge_applied_messages`
--
DROP TABLE IF EXISTS `forge_applied_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `forge_applied_messages` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`applied_type` varchar(255) DEFAULT NULL,
`applied_id` bigint(20) DEFAULT NULL,
`viewed` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`applied_user_id` bigint(20) DEFAULT NULL,
`role` int(11) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_forge_applied_messages_on_user_id` (`user_id`) USING BTREE,
KEY `index_forge_applied_messages_on_applied_type_and_applied_id` (`applied_type`,`applied_id`) USING BTREE,
KEY `index_forge_applied_messages_on_applied_user_id` (`applied_user_id`) USING BTREE,
KEY `index_forge_applied_messages_on_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `forge_applied_messages`
--
LOCK TABLES `forge_applied_messages` WRITE;
/*!40000 ALTER TABLE `forge_applied_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `forge_applied_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `forge_applied_projects`
--
DROP TABLE IF EXISTS `forge_applied_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `forge_applied_projects` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`role` int(11) DEFAULT '0',
`status` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`project_invite_link_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_forge_applied_projects_on_project_id` (`project_id`) USING BTREE,
KEY `index_forge_applied_projects_on_user_id` (`user_id`) USING BTREE,
KEY `index_forge_applied_projects_on_project_invite_link_id` (`project_invite_link_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `forge_applied_projects`
--
LOCK TABLES `forge_applied_projects` WRITE;
/*!40000 ALTER TABLE `forge_applied_projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `forge_applied_projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `fork_users`
--
DROP TABLE IF EXISTS `fork_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `fork_users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`fork_project_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_fork_users_on_project_id` (`project_id`) USING BTREE,
KEY `index_fork_users_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `fork_users`
--
LOCK TABLES `fork_users` WRITE;
/*!40000 ALTER TABLE `fork_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `fork_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `gitlab_urls`
--
DROP TABLE IF EXISTS `gitlab_urls`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `gitlab_urls` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`myshixun_id` int(11) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`myshixun_identifier` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `gitlab_urls`
--
LOCK TABLES `gitlab_urls` WRITE;
/*!40000 ALTER TABLE `gitlab_urls` DISABLE KEYS */;
/*!40000 ALTER TABLE `gitlab_urls` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `gitlink_competition_applies`
--
DROP TABLE IF EXISTS `gitlink_competition_applies`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `gitlink_competition_applies` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`competition_id` int(11) DEFAULT NULL,
`competition_identifier` varchar(255) DEFAULT NULL,
`team_id` int(11) DEFAULT NULL,
`team_name` varchar(255) DEFAULT NULL,
`school_name` varchar(255) DEFAULT NULL,
`educoder_login` varchar(255) DEFAULT NULL,
`nickname` varchar(255) DEFAULT NULL,
`phone` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`identity` varchar(255) DEFAULT NULL,
`role` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `gitlink_competition_applies`
--
LOCK TABLES `gitlink_competition_applies` WRITE;
/*!40000 ALTER TABLE `gitlink_competition_applies` DISABLE KEYS */;
/*!40000 ALTER TABLE `gitlink_competition_applies` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `groups_users`
--
DROP TABLE IF EXISTS `groups_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `groups_users` (
`group_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
UNIQUE KEY `groups_users_ids` (`group_id`,`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `groups_users`
--
LOCK TABLES `groups_users` WRITE;
/*!40000 ALTER TABLE `groups_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `groups_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `homepages`
--
DROP TABLE IF EXISTS `homepages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `homepages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`article_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_homepages_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `homepages`
--
LOCK TABLES `homepages` WRITE;
/*!40000 ALTER TABLE `homepages` DISABLE KEYS */;
/*!40000 ALTER TABLE `homepages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `identity_verifications`
--
DROP TABLE IF EXISTS `identity_verifications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `identity_verifications` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`card_front` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_back` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`hold_card_front` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`hold_card_back` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`state` int(11) DEFAULT '0',
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_identity_verifications_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `identity_verifications`
--
LOCK TABLES `identity_verifications` WRITE;
/*!40000 ALTER TABLE `identity_verifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `identity_verifications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ignores`
--
DROP TABLE IF EXISTS `ignores`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ignores` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`content` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=190 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ignores`
--
LOCK TABLES `ignores` WRITE;
/*!40000 ALTER TABLE `ignores` DISABLE KEYS */;
INSERT INTO `ignores` VALUES (1,'OCaml','*.annot\n*.cmo\n*.cma\n*.cmi\n*.a\n*.o\n*.cmx\n*.cmxs\n*.cmxa\n\n# ocamlbuild working directory\n_build/\n\n# ocamlbuild targets\n*.byte\n*.native\n\n# oasis generated files\nsetup.data\nsetup.log\n\n# Merlin configuring file for Vim and Emacs\n.merlin\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(2,'Redcar','.redcar\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(3,'Scheme','*.ss~\n*.ss#*\n.#*.ss\n\n*.scm~\n*.scm#*\n.#*.scm\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(4,'XilinxISE','# intermediate build files\n*.bgn\n*.bit\n*.bld\n*.cmd_log\n*.drc\n*.ll\n*.lso\n*.msd\n*.msk\n*.ncd\n*.ngc\n*.ngd\n*.ngr\n*.pad\n*.par\n*.pcf\n*.prj\n*.ptwx\n*.rbb\n*.rbd\n*.stx\n*.syr\n*.twr\n*.twx\n*.unroutes\n*.ut\n*.xpi\n*.xst\n*_bitgen.xwbt\n*_envsettings.html\n*_map.map\n*_map.mrp\n*_map.ngm\n*_map.xrpt\n*_ngdbuild.xrpt\n*_pad.csv\n*_pad.txt\n*_par.xrpt\n*_summary.html\n*_summary.xml\n*_usage.xml\n*_xst.xrpt\n\n# iMPACT generated files\n_impactbatch.log\nimpact.xsl\nimpact_impact.xwbt\nise_impact.cmd\nwebtalk_impact.xml\n\n# Core Generator generated files\nxaw2verilog.log\n\n# project-wide generated files\n*.gise\npar_usage_statistics.html\nusage_statistics_webtalk.html\nwebtalk.log\nwebtalk_pn.xml\n\n# generated folders\niseconfig/\nxlnx_auto_0_xdb/\nxst/\n_ngo/\n_xmsgs/\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(5,'Xcode','# Xcode\n#\n# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore\n\n## Build generated\nbuild/\nDerivedData/\n\n## Various settings\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata/\n\n## Other\n*.moved-aside\n*.xccheckout\n*.xcscmblueprint\n\n## Obj-C/Swift specific\n*.hmap\n*.ipa\n*.dSYM.zip\n*.dSYM\n\n## Playgrounds\ntimeline.xctimeline\nplayground.xcworkspace\n\n# Swift Package Manager\n#\n# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.\n# Packages/\n# Package.pins\n# Package.resolved\n.build/\n\n# CocoaPods\n#\n# We recommend against adding the Pods directory to your .gitignore. However\n# you should judge for yourself, the pros and cons are mentioned at:\n# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control\n#\n# Pods/\n#\n# Add this line if you want to avoid checking in source code from the Xcode workspace\n# *.xcworkspace\n\n# Carthage\n#\n# Add this line if you want to avoid checking in source code from Carthage dependencies.\n# Carthage/Checkouts\n\nCarthage/Build\n\n# fastlane\n#\n# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the\n# screenshots whenever they are needed.\n# For more information about the recommended setup visit:\n# https://docs.fastlane.tools/best-practices/source-control/#source-control\n\nfastlane/report.xml\nfastlane/Preview.html\nfastlane/screenshots/**/*.png\nfastlane/test_output\n\n# Code Injection\n#\n# After new code Injection tools there\'s a generated folder /iOSInjectionProject\n# https://github.com/johnno1962/injectionforxcode\n\niOSInjectionProject/\n\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(6,'Ada','# Object file\n*.o\n\n# Ada Library Information\n*.ali\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(7,'Gcov','# gcc coverage testing tool files\n\n*.gcno\n*.gcda\n*.gcov\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(8,'SVN','.svn/\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(9,'Scrivener','/Files/binder.autosave\n/Files/binder.backup\n/Files/search.indexes\n/Files/user.lock\n/Files/Docs/docs.checksum\n/QuickLook/\n/Settings/ui.plist\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(10,'Vim','# Swap\n[._]*.s[a-v][a-z]\n[._]*.sw[a-p]\n[._]s[a-rt-v][a-z]\n[._]ss[a-gi-z]\n[._]sw[a-p]\n\n# Session\nSession.vim\n\n# Temporary\n.netrwhist\n*~\n# Auto-generated tag files\ntags\n# Persistent undo\n[._]*.un~\n','2021-08-27 08:51:43','2021-08-27 08:51:43'),(11,'RhodesRhomobile','rholog-*\nsim-*\nbin/libs\nb
/*!40000 ALTER TABLE `ignores` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `install_bot`
--
DROP TABLE IF EXISTS `install_bot`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `install_bot` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`bot_id` int(11) NOT NULL COMMENT 'bot唯一标识',
`installer_id` int(11) NOT NULL COMMENT '安装者唯一标识',
`store_id` int(11) NOT NULL COMMENT '仓库唯一标识',
`state` tinyint(4) NOT NULL COMMENT '0挂起1工作2卸载',
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间 ',
`update_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`installer_login` varchar(255) NOT NULL,
`store_repo` varchar(255) NOT NULL,
`webhook_id` int(11) DEFAULT NULL,
`webhook_response_msg` text COMMENT 'webhook请求返回信息',
`repo_owner` varchar(255) DEFAULT NULL COMMENT '仓库拥有者login(组织/个人)',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `install_bot`
--
LOCK TABLES `install_bot` WRITE;
/*!40000 ALTER TABLE `install_bot` DISABLE KEYS */;
/*!40000 ALTER TABLE `install_bot` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `invite_lists`
--
DROP TABLE IF EXISTS `invite_lists`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `invite_lists` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`mail` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `invite_lists`
--
LOCK TABLES `invite_lists` WRITE;
/*!40000 ALTER TABLE `invite_lists` DISABLE KEYS */;
/*!40000 ALTER TABLE `invite_lists` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_assigners`
--
DROP TABLE IF EXISTS `issue_assigners`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issue_assigners` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`issue_id` bigint(20) DEFAULT NULL,
`assigner_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_issue_assigners_on_issue_id` (`issue_id`) USING BTREE,
KEY `index_issue_assigners_on_assigner_id` (`assigner_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2752 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_assigners`
--
LOCK TABLES `issue_assigners` WRITE;
/*!40000 ALTER TABLE `issue_assigners` DISABLE KEYS */;
/*!40000 ALTER TABLE `issue_assigners` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_depends`
--
DROP TABLE IF EXISTS `issue_depends`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issue_depends` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`issue_id` int(11) DEFAULT NULL,
`depend_issue_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_issue_depends_on_user_id_and_issue_id_and_depend_issue_id` (`user_id`,`issue_id`,`depend_issue_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_depends`
--
LOCK TABLES `issue_depends` WRITE;
/*!40000 ALTER TABLE `issue_depends` DISABLE KEYS */;
/*!40000 ALTER TABLE `issue_depends` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_participants`
--
DROP TABLE IF EXISTS `issue_participants`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issue_participants` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`issue_id` bigint(20) DEFAULT NULL,
`participant_id` bigint(20) DEFAULT NULL,
`participant_type` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_issue_participants_on_issue_id` (`issue_id`) USING BTREE,
KEY `index_issue_participants_on_participant_id` (`participant_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=11390 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_participants`
--
LOCK TABLES `issue_participants` WRITE;
/*!40000 ALTER TABLE `issue_participants` DISABLE KEYS */;
/*!40000 ALTER TABLE `issue_participants` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_priorities`
--
DROP TABLE IF EXISTS `issue_priorities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issue_priorities` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`position` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `index_issue_priorities_on_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_priorities`
--
LOCK TABLES `issue_priorities` WRITE;
/*!40000 ALTER TABLE `issue_priorities` DISABLE KEYS */;
INSERT INTO `issue_priorities` VALUES (1,'',1,'2021-08-27 08:51:44','2021-08-27 08:51:44'),(2,'正常',2,'2021-08-27 08:51:44','2021-08-27 08:51:44'),(3,'',3,'2021-08-27 08:51:44','2021-08-27 08:51:44'),(4,'紧急',4,'2021-08-27 08:51:44','2021-08-27 08:51:44');
/*!40000 ALTER TABLE `issue_priorities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_relations`
--
DROP TABLE IF EXISTS `issue_relations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issue_relations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`issue_from_id` int(11) NOT NULL,
`issue_to_id` int(11) NOT NULL,
`relation_type` varchar(255) NOT NULL DEFAULT '',
`delay` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_issue_relations_on_issue_from_id_and_issue_to_id` (`issue_from_id`,`issue_to_id`) USING BTREE,
KEY `index_issue_relations_on_issue_from_id` (`issue_from_id`) USING BTREE,
KEY `index_issue_relations_on_issue_to_id` (`issue_to_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_relations`
--
LOCK TABLES `issue_relations` WRITE;
/*!40000 ALTER TABLE `issue_relations` DISABLE KEYS */;
/*!40000 ALTER TABLE `issue_relations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_statuses`
--
DROP TABLE IF EXISTS `issue_statuses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issue_statuses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL DEFAULT '',
`is_closed` tinyint(1) NOT NULL DEFAULT '0',
`is_default` tinyint(1) NOT NULL DEFAULT '0',
`position` int(11) DEFAULT '1',
`default_done_ratio` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_issue_statuses_on_position` (`position`),
KEY `index_issue_statuses_on_is_closed` (`is_closed`),
KEY `index_issue_statuses_on_is_default` (`is_default`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_statuses`
--
LOCK TABLES `issue_statuses` WRITE;
/*!40000 ALTER TABLE `issue_statuses` DISABLE KEYS */;
INSERT INTO `issue_statuses` VALUES (1,'新增',0,1,1,NULL),(2,'正在解决',0,0,2,NULL),(3,'已解决',0,0,3,NULL),(5,'关闭',1,0,5,NULL),(6,'拒绝',0,0,6,NULL);
/*!40000 ALTER TABLE `issue_statuses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_tags`
--
DROP TABLE IF EXISTS `issue_tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issue_tags` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`color` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`issues_count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`gid` int(11) DEFAULT NULL,
`gitea_url` varchar(255) DEFAULT NULL,
`pull_requests_count` int(11) DEFAULT '0',
`pm_project_id` int(11) DEFAULT NULL,
`organization_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_issue_tags_on_user_id_and_name_and_project_id` (`user_id`,`name`,`project_id`) USING BTREE,
KEY `index_issue_tags_on_organization_id` (`organization_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4978 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_tags`
--
LOCK TABLES `issue_tags` WRITE;
/*!40000 ALTER TABLE `issue_tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `issue_tags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_tags_relates`
--
DROP TABLE IF EXISTS `issue_tags_relates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issue_tags_relates` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) DEFAULT NULL,
`issue_tag_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_issue_tags_relates_on_issue_id_and_issue_tag_id` (`issue_id`,`issue_tag_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2093 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_tags_relates`
--
LOCK TABLES `issue_tags_relates` WRITE;
/*!40000 ALTER TABLE `issue_tags_relates` DISABLE KEYS */;
/*!40000 ALTER TABLE `issue_tags_relates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_times`
--
DROP TABLE IF EXISTS `issue_times`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issue_times` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`issue_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`start_time` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`cost_time` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_issue_times_on_issue_id_and_user_id` (`issue_id`,`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_times`
--
LOCK TABLES `issue_times` WRITE;
/*!40000 ALTER TABLE `issue_times` DISABLE KEYS */;
/*!40000 ALTER TABLE `issue_times` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issues`
--
DROP TABLE IF EXISTS `issues`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `issues` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tracker_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`subject` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`due_date` date DEFAULT NULL,
`category_id` int(11) DEFAULT NULL,
`status_id` int(11) NOT NULL,
`assigned_to_id` int(11) DEFAULT NULL,
`priority_id` int(11) DEFAULT NULL,
`fixed_version_id` int(11) DEFAULT NULL,
`author_id` int(11) NOT NULL,
`created_on` datetime DEFAULT NULL,
`updated_on` datetime DEFAULT NULL,
`start_date` date DEFAULT NULL,
`done_ratio` int(11) NOT NULL DEFAULT '0',
`estimated_hours` float DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`root_id` int(11) DEFAULT NULL,
`lft` int(11) DEFAULT NULL,
`rgt` int(11) DEFAULT NULL,
`is_private` tinyint(1) NOT NULL DEFAULT '0',
`closed_on` datetime DEFAULT NULL,
`project_issues_index` int(11) DEFAULT NULL,
`issue_type` varchar(255) DEFAULT NULL,
`token` int(11) DEFAULT '0',
`issue_tags_value` varchar(255) DEFAULT NULL,
`is_lock` tinyint(1) DEFAULT '0',
`issue_classify` varchar(255) DEFAULT NULL,
`ref_name` varchar(255) DEFAULT NULL,
`branch_name` varchar(255) DEFAULT NULL,
`blockchain_token_num` int(11) DEFAULT NULL,
`pm_project_id` int(11) DEFAULT NULL,
`pm_sprint_id` int(11) DEFAULT NULL,
`pm_issue_type` int(11) DEFAULT NULL,
`time_scale` decimal(10,2) DEFAULT '0.00',
`child_count` int(11) DEFAULT '0',
`changer_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `issues_project_id` (`project_id`) USING BTREE,
KEY `index_issues_on_status_id` (`status_id`) USING BTREE,
KEY `index_issues_on_category_id` (`category_id`) USING BTREE,
KEY `index_issues_on_assigned_to_id` (`assigned_to_id`) USING BTREE,
KEY `index_issues_on_fixed_version_id` (`fixed_version_id`) USING BTREE,
KEY `index_issues_on_tracker_id` (`tracker_id`) USING BTREE,
KEY `index_issues_on_priority_id` (`priority_id`) USING BTREE,
KEY `index_issues_on_author_id` (`author_id`) USING BTREE,
KEY `index_issues_on_created_on` (`created_on`) USING BTREE,
KEY `index_issues_on_root_id_and_lft_and_rgt` (`root_id`,`lft`,`rgt`) USING BTREE,
KEY `index_issues_on_changer_id` (`changer_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3684 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issues`
--
LOCK TABLES `issues` WRITE;
/*!40000 ALTER TABLE `issues` DISABLE KEYS */;
/*!40000 ALTER TABLE `issues` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `journal_details`
--
DROP TABLE IF EXISTS `journal_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `journal_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`journal_id` int(11) NOT NULL DEFAULT '0',
`property` varchar(30) NOT NULL DEFAULT '',
`prop_key` varchar(30) NOT NULL DEFAULT '',
`old_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`) USING BTREE,
KEY `journal_details_journal_id` (`journal_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9546 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `journal_details`
--
LOCK TABLES `journal_details` WRITE;
/*!40000 ALTER TABLE `journal_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `journal_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `journal_replies`
--
DROP TABLE IF EXISTS `journal_replies`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `journal_replies` (
`journal_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`reply_id` int(11) DEFAULT NULL,
KEY `index_journal_replies_on_user_id` (`user_id`) USING BTREE,
KEY `index_journal_replies_on_journal_id` (`journal_id`) USING BTREE,
KEY `index_journal_replies_on_reply_id` (`reply_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `journal_replies`
--
LOCK TABLES `journal_replies` WRITE;
/*!40000 ALTER TABLE `journal_replies` DISABLE KEYS */;
/*!40000 ALTER TABLE `journal_replies` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `journals`
--
DROP TABLE IF EXISTS `journals`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `journals` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`journalized_id` int(11) NOT NULL DEFAULT '0',
`journalized_type` varchar(30) NOT NULL DEFAULT '',
`user_id` int(11) NOT NULL DEFAULT '0',
`notes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`created_on` datetime NOT NULL,
`private_notes` tinyint(1) NOT NULL DEFAULT '0',
`parent_id` int(11) DEFAULT NULL,
`comments_count` int(11) DEFAULT '0',
`reply_id` int(11) DEFAULT NULL,
`review_id` bigint(20) DEFAULT NULL,
`commit_id` varchar(255) DEFAULT NULL,
`diff` longtext,
`line_code` varchar(255) DEFAULT NULL,
`path` varchar(255) DEFAULT NULL,
`state` int(11) DEFAULT '0',
`resolve_at` datetime DEFAULT NULL,
`resolveer_id` int(11) DEFAULT NULL,
`need_respond` tinyint(1) DEFAULT '0',
`updated_on` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `journals_journalized_id` (`journalized_id`,`journalized_type`) USING BTREE,
KEY `index_journals_on_user_id` (`user_id`) USING BTREE,
KEY `index_journals_on_journalized_id` (`journalized_id`) USING BTREE,
KEY `index_journals_on_created_on` (`created_on`) USING BTREE,
KEY `index_journals_on_review_id` (`review_id`) USING BTREE,
KEY `index_journals_on_parent_id` (`parent_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=15437 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `journals`
--
LOCK TABLES `journals` WRITE;
/*!40000 ALTER TABLE `journals` DISABLE KEYS */;
/*!40000 ALTER TABLE `journals` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `journals_for_messages`
--
DROP TABLE IF EXISTS `journals_for_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `journals_for_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`jour_id` int(11) DEFAULT NULL,
`jour_type` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`notes` text,
`status` int(11) DEFAULT NULL,
`reply_id` int(11) DEFAULT NULL,
`created_on` datetime NOT NULL,
`updated_on` datetime NOT NULL,
`m_parent_id` varchar(255) DEFAULT NULL,
`is_readed` tinyint(1) DEFAULT NULL,
`m_reply_count` int(11) DEFAULT NULL,
`m_reply_id` int(11) DEFAULT NULL,
`is_comprehensive_evaluation` int(11) DEFAULT NULL,
`private` int(11) DEFAULT '0',
`root_id` int(11) DEFAULT NULL,
`hidden` tinyint(1) DEFAULT '0',
`praises_count` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_journals_for_messages_on_root_id` (`root_id`) USING BTREE,
KEY `index_journals_for_messages_on_jour_id` (`jour_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `journals_for_messages`
--
LOCK TABLES `journals_for_messages` WRITE;
/*!40000 ALTER TABLE `journals_for_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `journals_for_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `kindeditor_assets`
--
DROP TABLE IF EXISTS `kindeditor_assets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `kindeditor_assets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`asset` varchar(255) DEFAULT NULL,
`file_size` int(11) DEFAULT NULL,
`file_type` varchar(255) DEFAULT NULL,
`owner_id` int(11) DEFAULT NULL,
`asset_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`owner_type` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `kindeditor_assets`
--
LOCK TABLES `kindeditor_assets` WRITE;
/*!40000 ALTER TABLE `kindeditor_assets` DISABLE KEYS */;
/*!40000 ALTER TABLE `kindeditor_assets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `laboratories`
--
DROP TABLE IF EXISTS `laboratories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `laboratories` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`school_id` bigint(20) DEFAULT NULL,
`identifier` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`sync_course` tinyint(1) DEFAULT '0',
`sync_subject` tinyint(1) DEFAULT '0',
`sync_shixun` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `index_laboratories_on_identifier` (`identifier`),
KEY `index_laboratories_on_school_id` (`school_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `laboratories`
--
LOCK TABLES `laboratories` WRITE;
/*!40000 ALTER TABLE `laboratories` DISABLE KEYS */;
INSERT INTO `laboratories` VALUES (1,NULL,'www','2019-10-16 15:16:11','2019-10-16 15:16:11',0,0,0);
/*!40000 ALTER TABLE `laboratories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `laboratory_settings`
--
DROP TABLE IF EXISTS `laboratory_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `laboratory_settings` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`laboratory_id` bigint(20) DEFAULT NULL,
`config` text,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_laboratory_settings_on_laboratory_id` (`laboratory_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `laboratory_settings`
--
LOCK TABLES `laboratory_settings` WRITE;
/*!40000 ALTER TABLE `laboratory_settings` DISABLE KEYS */;
INSERT INTO `laboratory_settings` VALUES (1,1,'{\"name\":\"星云协同开发平台\",\"navbar\":[{\"name\":\"开源项目\",\"link\":\"/explore\",\"index\":\"1\",\"hidden\":false},{\"name\":\"开源大赛\",\"link\":\"/competitions\",\"index\":\"2\",\"hidden\":true},{\"name\":\"开源夏令营\",\"link\":\"/glcc\",\"index\":\"3\",\"hidden\":true},{\"name\":\"特色专区\",\"link\":\"/zone\",\"index\":\"4\",\"hidden\":true},{\"name\":\"Bot市场\",\"link\":\"/softbot\",\"index\":\"5\",\"hidden\":false},{\"name\":\"论坛交流\",\"link\":\"https://testforum.trustie.net/forums\",\"index\":\"6\",\"hidden\":true},{\"name\":\"帮助中心\",\"link\":\"https://help.gitlink.org.cn\",\"index\":\"7\",\"hidden\":true}],\"footer\":\"\\u003cdiv style=\\\"height: 80px;\\\"\\u003e\\u003c/div\\u003e\\u003cdiv class=\\\"newFooter edu-txt-center\\\"\\u003e\\r\\n\\u003cdiv class=\\\"footEdition\\\" style=\\\"display: none;\\\"\\u003e\\u003cdiv class=\\\"footContent\\\"\\u003e\\u003cul class=\\\"center\\\"\\u003e\\u003cimg src=\\\"https://www.gitlink.org.cn/api/attachments/373016\\\" alt=\\\"Gitlink确实开源\\\"style=\\\"width:300px\\\"/\\u003e\\u003c/ul\\u003e\\u003cul\\u003e\\u003cli class=\\\"thehead\\\"\\u003e社区\\u003c/li\\u003e\\u003cli\\u003e\\u003ca href=\\\"/\\\"\\u003e网站首页\\u003c/a\\u003e\\u003c/li\\u003e\\u003cli\\u003e\\u003ca href=\\\"https://www.gitlink.org.cn/aboutus\\\"\\u003e关于我们\\u003c/a\\u003e\\u003c/li\\u003e\\u003cli\\u003e\\u003ca href=\\\"https://www.gitlink.org.cn/educoder\\\"\\u003e教学实践\\u003c/a\\u003e\\u003c/li\\u003e\\u003cli\\u003e\\u003ca href=\\\"https://forum.gitlink.org.cn/forums/5030/detail\\\"\\u003e合作伙伴\\u003c/a\\u003e\\u003c/li\\u003e\\u003c/ul\\u003e\\u003cul\\u003e\\u003cli class=\\\"thehead\\\"\\u003e支持与服务\\u003c/li\\u003e\\u003cli\\u003e\\u003ca\\r\\nhref=\\\"https://help.gitlink.org.cn/\\\"\\u003e帮助中心\\u003c/a\\u003e\\u003c/li\\u003e\\u003cli\\u003e\\u003ca\\r\\nhref=\\\"https://apifox.com/apidoc/shared-da30afb0-9d2e-429b-a4bc-a83209e06021\\\"\\u003eAPI文档\\u003c/a\\u003e\\u003c/li\\u003e\\u003cli\\u003e\\u003ca href=\\\"https://git-scm.com\\\"\\u003eGit常用命令\\u003c/a\\u003e\\u003c/li\\u003e\\u003cli\\u003e\\u003ca href=\\\"https://forum.gitlink.org.cn/forums/5029/detail\\\"\\u003e服务协议\\u003c/a\\u003e\\u003c/li\\u003e\\u003c/ul\\u003e\\u003cul\\u003e\\u003cli class=\\\"thehead\\\"\\u003e加入我们\\u003c/li\\u003e\\u003cli\\u003e官网邮箱gitlink@ccf.org.cn\\u003c/li\\u003e\\u003cdiv style=\\\"display:flex;text-align:center;\\\"\\u003e\\r\\n\\r\\n\\u003cdiv class=\\\"theline\\\" style=\\\"margin-right:34px\\\"\\u003e\\u003cdiv class=\\\"imgCon\\\" style=\\\"padding:0px\\\"\\u003e\\u003cimg src=\\\"https://www.gitlink.org.cn/api/attachments/437022\\\" alt=\\\"QQ群\\\" style=\\\"width:90px;height:90px;border-radius:2px\\\"\\u003e\\u003c/div\\u003e\\u003cli class=\\\"mt10\\\"\\u003eQQ群\\u003c/li\\u003e\\u003c/div\\u003e\\r\\n\\u003cdiv class=\\\"theline\\\"\\u003e\\u003cdiv class=\\\"imgCon\\\" style=\\\"padding:0px\\\"\\u003e\\u003cimg src=\\\"https://www.gitlink.org.cn/api/attachments/437006\\\" alt=\\\"公众号\\\" style=\\\"width:90px;height:90px;border-radius:2px\\\"\\u003e\\u003c/div\\u003e\\u003cli class=\\\"mt10\\\"\\u003e公众号\\u003c/li\\u003e\\u003c/div\\u003e\\u003c/div\\u003e\\u003c/ul\\u003e\\u003c/div\\u003e\\r\\n\\u003c/div\\u003e\\u003cp class=\\\"copyrightDesc\\\"\\u003e©Copyright 2023~2024 国防科技大学\\u003ca href=\\\"https://beian.miit.gov.cn/\\\" style=\\\"display: none;\\\"\\u003ePowered by Trustie\\u0026amp; IntelliDE 京ICP备13000930号\\u003c/a\\u003e\\u003c/p\\u003e\\u003c/div\\u003e\"}');
/*!40000 ALTER TABLE `laboratory_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `laboratory_users`
--
DROP TABLE IF EXISTS `laboratory_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `laboratory_users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`laboratory_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_laboratory_users_on_laboratory_id` (`laboratory_id`) USING BTREE,
KEY `index_laboratory_users_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `laboratory_users`
--
LOCK TABLES `laboratory_users` WRITE;
/*!40000 ALTER TABLE `laboratory_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `laboratory_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `licenses`
--
DROP TABLE IF EXISTS `licenses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `licenses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`content` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=361 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `licenses`
--
LOCK TABLES `licenses` WRITE;
/*!40000 ALTER TABLE `licenses` DISABLE KEYS */;
INSERT INTO `licenses` VALUES (1,'OSL-2.1','The Open Software Licensev. 2.1\n\nThis Open Software License (the \"License\") applies to any original work of\nauthorship (the \"Original Work\") whose owner (the \"Licensor\") has placed the\nfollowing notice immediately following the copyright notice for the Original\nWork:\n\nLicensed under the Open Software License version 2.1\n\n1) Grant of Copyright License. Licensor hereby grants You a world-wide, royalty-free,\nnon-exclusive, perpetual, sublicenseable license to do the following:\n\n a) to reproduce the Original Work in copies;\n\nb) to prepare derivative works (\"Derivative Works\") based upon the Original\nWork;\n\nc) to distribute copies of the Original Work and Derivative Works to the public,\nwith the proviso that copies of Original Work or Derivative Works that You\ndistribute shall be licensed under the Open Software License;\n\n d) to perform the Original Work publicly; and\n\n e) to display the Original Work publicly.\n\n2) Grant of Patent License. Licensor hereby grants You a world-wide, royalty-free,\nnon-exclusive, perpetual, sublicenseable license, under patent claims owned\nor controlled by the Licensor that are embodied in the Original Work as furnished\nby the Licensor, to make, use, sell and offer for sale the Original Work and\nDerivative Works.\n\n3) Grant of Source Code License. The term \"Source Code\" means the preferred\nform of the Original Work for making modifications to it and all available\ndocumentation describing how to modify the Original Work. Licensor hereby\nagrees to provide a machine-readable copy of the Source Code of the Original\nWork along with each copy of the Original Work that Licensor distributes.\nLicensor reserves the right to satisfy this obligation by placing a machine-readable\ncopy of the Source Code in an information repository reasonably calculated\nto permit inexpensive and convenient access by You for as long as Licensor\ncontinues to distribute the Original Work, and by publishing the address of\nthat information repository in a notice immediately following the copyright\nnotice that applies to the Original Work.\n\n4) Exclusions From License Grant. Neither the names of Licensor, nor the names\nof any contributors to the Original Work, nor any of their trademarks or service\nmarks, may be used to endorse or promote products derived from this Original\nWork without express prior written permission of the Licensor. Nothing in\nthis License shall be deemed to grant any rights to trademarks, copyrights,\npatents, trade secrets or any other intellectual property of Licensor except\nas expressly stated herein. No patent license is granted to make, use, sell\nor offer to sell embodiments of any patent claims other than the licensed\nclaims defined in Section 2. No right is granted to the trademarks of Licensor\neven if such marks are included in the Original Work. Nothing in this License\nshall be interpreted to prohibit Licensor from licensing under different terms\nfrom this License any Original Work that Licensor otherwise would have a right\nto license.\n\n5) External Deployment. The term \"External Deployment\" means the use or distribution\nof the Original Work or Derivative Works in any way such that the Original\nWork or Derivative Works may be used by anyone other than You, whether the\nOriginal Work or Derivative Works are distributed to those persons or made\navailable as an application intended for use over a computer network. As an\nexpress condition for the grants of license hereunder, You agree that any\nExternal Deployment by You of a Derivative Work shall be deemed a distribution\nand shall be licensed to all under the terms of this License, as prescribed\nin section 1(c) herein.\n\n6) Attribution Rights. You must retain, in the Source Code of any Derivative\nWorks that You create, all copyright, patent or trademark notices from the\nSource Code of the Original Work, as well as any notices of licensing and\nany descriptive text identified therein as an \"Attribution Notice.\" You must\nca
INSERT INTO `licenses` VALUES (125,'CECILL-B','CeCILL-B FREE SOFTWARE LICENSE AGREEMENT Notice\n\nThis Agreement is a Free Software license agreement that is the result of\ndiscussions between its authors in order to ensure compliance with the two\nmain principles guiding its drafting:\n\n* firstly, compliance with the principles governing the distribution of Free\nSoftware: access to source code, broad rights granted to users,\n\n* secondly, the election of a governing law, French law, with which it is\nconformant, both as regards the law of torts and intellectual property law,\nand the protection that it offers to both authors and holders of the economic\nrights over software.\n\nThe authors of the CeCILL¹ license are:\n\n \n\nCommissariat à l\'Energie Atomique - CEA, a public scientific, technical and\nindustrial research establishment, having its principal place of business\nat 25 rue Leblanc, immeuble Le Ponant D, 75015 Paris, France.\n\n \n\nCentre National de la Recherche Scientifique - CNRS, a public scientific and\ntechnological establishment, having its principal place of business at 3 rue\nMichel-Ange, 75794 Paris cedex 16, France.\n\n \n\nInstitut National de Recherche en Informatique et en Automatique - INRIA,\na public scientific and technological establishment, having its principal\nplace of business at Domaine de Voluceau, Rocquencourt, BP 105, 78153 Le Chesnay\ncedex, France.\n\nPreamble This Agreement is an open source software license intended to give\nusers significant freedom to modify and redistribute the software licensed\nhereunder.\n\nThe exercising of this freedom is conditional upon a strong obligation of\ngiving credits for everybody that distributes a software incorporating a software\nruled by the current license so as all contributions to be properly identified\nand acknowledged.\n\nIn consideration of access to the source code and the rights to copy, modify\nand redistribute granted by the license, users are provided only with a limited\nwarranty and the software\'s author, the holder of the economic rights, and\nthe successive licensors only have limited liability.\n\nIn this respect, the risks associated with loading, using, modifying and/or\ndeveloping or reproducing the software by the user are brought to the user\'s\nattention, given its Free Software status, which may make it complicated to\nuse, with the result that its use is reserved for developers and experienced\nprofessionals having in-depth computer knowledge. Users are therefore encouraged\nto load and test the suitability of the software as regards their requirements\nin conditions enabling the security of their systems and/or data to be ensured\nand, more generally, to use and operate it in the same conditions of security.\nThis Agreement may be freely reproduced and published, provided it is not\naltered, and that no provisions are either added or removed herefrom.\n\nThis Agreement may apply to any or all software for which the holder of the\neconomic rights decides to submit the use thereof to its provisions.\n\n Article 1 - DEFINITIONS\n\nFor the purpose of this Agreement, when the following expressions commence\nwith a capital letter, they shall have the following meaning:\n\n \n\nAgreement: means this license agreement, and its possible subsequent versions\nand annexes.\n\n \n\nSoftware: means the software in its Object Code and/or Source Code form and,\nwhere applicable, its documentation, \"as is\" when the Licensee accepts the\nAgreement.\n\n \n\nInitial Software: means the Software in its Source Code and possibly its Object\nCode form and, where applicable, its documentation, \"as is\" when it is first\ndistributed under the terms and conditions of the Agreement.\n\n \n\nModified Software: means the Software modified by at least one Contribution.\n\n \n\nSource Code: means all the Software\'s instructions and program lines to which\naccess is required so as to modify the Software.\n\n \n\nObject Code: means the binary files originating from the compilation of the\nSource Co
INSERT INTO `licenses` VALUES (261,'ODbL-1.0','ODC Open Database License (ODbL) Preamble\n\nThe Open Database License (ODbL) is a license agreement intended to allow\nusers to freely share, modify, and use this Database while maintaining this\nsame freedom for others. Many databases are covered by copyright, and therefore\nthis document licenses these rights. Some jurisdictions, mainly in the European\nUnion, have specific rights that cover databases, and so the ODbL addresses\nthese rights, too. Finally, the ODbL is also an agreement in contract for\nusers of this Database to act in certain ways in return for accessing this\nDatabase.\n\nDatabases can contain a wide variety of types of content (images, audiovisual\nmaterial, and sounds all in the same database, for example), and so the ODbL\nonly governs the rights over the Database, and not the contents of the Database\nindividually. Licensors should use the ODbL together with another license\nfor the contents, if the contents have a single set of rights that uniformly\ncovers all of the contents. If the contents have multiple sets of different\nrights, Licensors should describe what rights govern what contents together\nin the individual record or in some other way that clarifies what rights apply.\n\nSometimes the contents of a database, or the database itself, can be covered\nby other rights not addressed here (such as private contracts, trade mark\nover the name, or privacy rights / data protection rights over information\nin the contents), and so you are advised that you may have to consult other\ndocuments or clear other rights before doing activities not covered by this\nLicense.\n\n------\n\nThe Licensor (as defined below)\n\nand\n\nYou (as defined below)\n\nagree as follows:\n\n 1.0 Definitions of Capitalised Words\n\n\"Collective Database\" - Means this Database in unmodified form as part of\na collection of independent databases in themselves that together are assembled\ninto a collective whole. A work that constitutes a Collective Database will\nnot be considered a Derivative Database.\n\n\"Convey\" - As a verb, means Using the Database, a Derivative Database, or\nthe Database as part of a Collective Database in any way that enables a Person\nto make or receive copies of the Database or a Derivative Database. Conveying\ndoes not include interaction with a user through a computer network, or creating\nand Using a Produced Work, where no transfer of a copy of the Database or\na Derivative Database occurs.\n\n\"Contents\" - The contents of this Database, which includes the information,\nindependent works, or other material collected into the Database. For example,\nthe contents of the Database could be factual data or works such as images,\naudiovisual material, text, or sounds.\n\n\"Database\" - A collection of material (the Contents) arranged in a systematic\nor methodical way and individually accessible by electronic or other means\noffered under the terms of this License.\n\n\"Database Directive\" - Means Directive 96/9/EC of the European Parliament\nand of the Council of 11 March 1996 on the legal protection of databases,\nas amended or succeeded.\n\n\"Database Right\" - Means rights resulting from the Chapter III (\"sui generis\")\nrights in the Database Directive (as amended and as transposed by member states),\nwhich includes the Extraction and Re-utilisation of the whole or a Substantial\npart of the Contents, as well as any similar rights available in the relevant\njurisdiction under Section 10.4.\n\n\"Derivative Database\" - Means a database based upon the Database, and includes\nany translation, adaptation, arrangement, modification, or any other alteration\nof the Database or of a Substantial part of the Contents. This includes, but\nis not limited to, Extracting or Re-utilising the whole or a Substantial part\nof the Contents in a new Database.\n\n\"Extraction\" - Means the permanent or temporary transfer of all or a Substantial\npart of the Contents to another medium by any means or in any form.\n\n\"License\" - Means this license agreement a
/*!40000 ALTER TABLE `licenses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mark_downs`
--
DROP TABLE IF EXISTS `mark_downs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mark_downs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`description` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mark_downs`
--
LOCK TABLES `mark_downs` WRITE;
/*!40000 ALTER TABLE `mark_downs` DISABLE KEYS */;
/*!40000 ALTER TABLE `mark_downs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mark_files`
--
DROP TABLE IF EXISTS `mark_files`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mark_files` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`pull_request_id` bigint(20) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`file_path_sha` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`file_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mark_as_read` tinyint(1) DEFAULT '0',
`updated_after_read` tinyint(1) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_mark_files_on_pull_request_id` (`pull_request_id`) USING BTREE,
KEY `index_mark_files_on_file_path_sha` (`file_path_sha`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mark_files`
--
LOCK TABLES `mark_files` WRITE;
/*!40000 ALTER TABLE `mark_files` DISABLE KEYS */;
/*!40000 ALTER TABLE `mark_files` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `market_bot`
--
DROP TABLE IF EXISTS `market_bot`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `market_bot` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`bot_id` int(11) NOT NULL COMMENT 'bot唯一 标识',
`market_name` varchar(255) DEFAULT NULL COMMENT '上市名称',
`market_desc` varchar(255) DEFAULT NULL COMMENT '上市简介',
`market_intro` longtext COMMENT '详细介绍',
`first_func` varchar(255) NOT NULL COMMENT '主要功能',
`second_func` varchar(255) DEFAULT NULL COMMENT '次要功能',
`webhook` varchar(255) DEFAULT NULL COMMENT '回调url',
`is_receive_ag1` tinyint(4) DEFAULT '0' COMMENT '0:接收协议1不接受收开发者协议',
`is_receive_ag2` tinyint(4) DEFAULT '0' COMMENT '0:接收协议1不接受平台协议',
`market_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '上市时间',
`logo` varchar(255) DEFAULT NULL COMMENT '头像',
`install_num` int(11) DEFAULT '0' COMMENT '安装次数',
`category` varchar(255) DEFAULT NULL COMMENT '类型',
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `` (`bot_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `market_bot`
--
LOCK TABLES `market_bot` WRITE;
/*!40000 ALTER TABLE `market_bot` DISABLE KEYS */;
/*!40000 ALTER TABLE `market_bot` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `member_roles`
--
DROP TABLE IF EXISTS `member_roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `member_roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`member_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
`inherited_from` int(11) DEFAULT NULL,
`is_current` int(11) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_member_roles_on_member_id` (`member_id`) USING BTREE,
KEY `index_member_roles_on_role_id` (`role_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=817 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `member_roles`
--
LOCK TABLES `member_roles` WRITE;
/*!40000 ALTER TABLE `member_roles` DISABLE KEYS */;
/*!40000 ALTER TABLE `member_roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `members`
--
DROP TABLE IF EXISTS `members`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `members` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`project_id` int(11) DEFAULT '0',
`created_on` datetime DEFAULT NULL,
`mail_notification` tinyint(1) NOT NULL DEFAULT '0',
`course_id` int(11) DEFAULT '-1',
`course_group_id` int(11) DEFAULT '0',
`is_collect` int(11) DEFAULT '1',
`graduation_group_id` int(11) DEFAULT '0',
`team_user_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_members_on_user_id_and_project_id` (`user_id`,`project_id`,`course_id`) USING BTREE,
KEY `index_members_on_user_id` (`user_id`) USING BTREE,
KEY `index_members_on_project_id` (`project_id`) USING BTREE,
KEY `index_members_on_course_id` (`course_id`) USING BTREE,
KEY `index_members_on_team_user_id` (`team_user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=819 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `members`
--
LOCK TABLES `members` WRITE;
/*!40000 ALTER TABLE `members` DISABLE KEYS */;
/*!40000 ALTER TABLE `members` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `message_templates`
--
DROP TABLE IF EXISTS `message_templates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `message_templates` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sys_notice` text COLLATE utf8mb4_unicode_ci,
`email` text COLLATE utf8mb4_unicode_ci,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`notification_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `message_templates`
--
LOCK TABLES `message_templates` WRITE;
/*!40000 ALTER TABLE `message_templates` DISABLE KEYS */;
/*!40000 ALTER TABLE `message_templates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mirror_migrate_errors`
--
DROP TABLE IF EXISTS `mirror_migrate_errors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mirror_migrate_errors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`shixun_id` int(11) DEFAULT NULL,
`game_info` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mirror_migrate_errors`
--
LOCK TABLES `mirror_migrate_errors` WRITE;
/*!40000 ALTER TABLE `mirror_migrate_errors` DISABLE KEYS */;
/*!40000 ALTER TABLE `mirror_migrate_errors` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mirror_operation_records`
--
DROP TABLE IF EXISTS `mirror_operation_records`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mirror_operation_records` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mirror_repository_id` int(11) DEFAULT NULL,
`mirror_id` text,
`mirror_name` text,
`status` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`user_id` int(11) DEFAULT NULL,
`old_tag` varchar(255) DEFAULT NULL,
`new_tag` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mirror_operation_records`
--
LOCK TABLES `mirror_operation_records` WRITE;
/*!40000 ALTER TABLE `mirror_operation_records` DISABLE KEYS */;
/*!40000 ALTER TABLE `mirror_operation_records` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mirror_repositories`
--
DROP TABLE IF EXISTS `mirror_repositories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mirror_repositories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mirrorID` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`main_type` varchar(255) DEFAULT NULL,
`description` text,
`status` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`type_name` text,
`script_template` longtext,
`resource_limit` int(11) DEFAULT '10000',
`memory_limit` int(11) DEFAULT '1024',
`cpu_limit` tinyint(4) DEFAULT '1',
`time_limit` int(11) DEFAULT '120',
`should_compile` tinyint(1) DEFAULT NULL,
`repertoire_id` int(11) DEFAULT NULL,
`sub_repertoire_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mirror_repositories`
--
LOCK TABLES `mirror_repositories` WRITE;
/*!40000 ALTER TABLE `mirror_repositories` DISABLE KEYS */;
/*!40000 ALTER TABLE `mirror_repositories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mirror_repository_types`
--
DROP TABLE IF EXISTS `mirror_repository_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mirror_repository_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mirror_type_id` int(11) DEFAULT NULL,
`mirror_repository_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_mirror_repository_types_on_mirror_type_id` (`mirror_type_id`) USING BTREE,
KEY `index_mirror_repository_types_on_mirror_repository_id` (`mirror_repository_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mirror_repository_types`
--
LOCK TABLES `mirror_repository_types` WRITE;
/*!40000 ALTER TABLE `mirror_repository_types` DISABLE KEYS */;
/*!40000 ALTER TABLE `mirror_repository_types` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mirror_scripts`
--
DROP TABLE IF EXISTS `mirror_scripts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mirror_scripts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`mirror_repository_id` int(11) DEFAULT NULL,
`script` longtext,
`script_type` varchar(255) DEFAULT NULL,
`description` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mirror_scripts`
--
LOCK TABLES `mirror_scripts` WRITE;
/*!40000 ALTER TABLE `mirror_scripts` DISABLE KEYS */;
/*!40000 ALTER TABLE `mirror_scripts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mirror_types`
--
DROP TABLE IF EXISTS `mirror_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mirror_types` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mirror_types`
--
LOCK TABLES `mirror_types` WRITE;
/*!40000 ALTER TABLE `mirror_types` DISABLE KEYS */;
/*!40000 ALTER TABLE `mirror_types` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mirror_update_records`
--
DROP TABLE IF EXISTS `mirror_update_records`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mirror_update_records` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`mirror_repository_id` int(11) DEFAULT NULL,
`oldName` varchar(255) DEFAULT NULL,
`newName` varchar(255) DEFAULT NULL,
`oldType` varchar(255) DEFAULT NULL,
`newType` varchar(255) DEFAULT NULL,
`oldTag` text,
`newTag` text,
`oldDescription` text,
`newDescription` text,
`oldStatus` int(11) DEFAULT NULL,
`newStatus` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_mirror_update_records_on_user_id` (`user_id`) USING BTREE,
KEY `index_mirror_update_records_on_mirror_repository_id` (`mirror_repository_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mirror_update_records`
--
LOCK TABLES `mirror_update_records` WRITE;
/*!40000 ALTER TABLE `mirror_update_records` DISABLE KEYS */;
/*!40000 ALTER TABLE `mirror_update_records` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mirrors`
--
DROP TABLE IF EXISTS `mirrors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `mirrors` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`repo_id` int(11) DEFAULT NULL,
`status` int(11) NOT NULL DEFAULT '0' COMMENT '0 - succeeded, 1 - waiting, 2 - failed',
`interval` int(11) DEFAULT NULL COMMENT 'mirror interval with unix time',
`next_update_time` datetime DEFAULT NULL COMMENT 'next update mirror time, for datetime',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`sync_num` int(11) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mirrors`
--
LOCK TABLES `mirrors` WRITE;
/*!40000 ALTER TABLE `mirrors` DISABLE KEYS */;
/*!40000 ALTER TABLE `mirrors` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `module_settings`
--
DROP TABLE IF EXISTS `module_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `module_settings` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`module_type` varchar(255) DEFAULT NULL,
`property` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_module_settings_on_module_type` (`module_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `module_settings`
--
LOCK TABLES `module_settings` WRITE;
/*!40000 ALTER TABLE `module_settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `module_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `no_uses`
--
DROP TABLE IF EXISTS `no_uses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `no_uses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`no_use_type` varchar(255) DEFAULT NULL,
`no_use_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `no_uses`
--
LOCK TABLES `no_uses` WRITE;
/*!40000 ALTER TABLE `no_uses` DISABLE KEYS */;
/*!40000 ALTER TABLE `no_uses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notificationcomments`
--
DROP TABLE IF EXISTS `notificationcomments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `notificationcomments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`notificationcommented_type` varchar(255) DEFAULT NULL,
`notificationcommented_id` int(11) DEFAULT NULL,
`author_id` int(11) DEFAULT NULL,
`notificationcomments` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notificationcomments`
--
LOCK TABLES `notificationcomments` WRITE;
/*!40000 ALTER TABLE `notificationcomments` DISABLE KEYS */;
/*!40000 ALTER TABLE `notificationcomments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_access_grants`
--
DROP TABLE IF EXISTS `oauth_access_grants`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `oauth_access_grants` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`resource_owner_id` bigint(20) NOT NULL,
`application_id` bigint(20) NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`expires_in` int(11) NOT NULL,
`redirect_uri` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` datetime NOT NULL,
`revoked_at` datetime DEFAULT NULL,
`scopes` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_oauth_access_grants_on_token` (`token`) USING BTREE,
KEY `index_oauth_access_grants_on_resource_owner_id` (`resource_owner_id`) USING BTREE,
KEY `index_oauth_access_grants_on_application_id` (`application_id`) USING BTREE,
CONSTRAINT `fk_rails_b4b53e07b8` FOREIGN KEY (`application_id`) REFERENCES `oauth_applications` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_access_grants`
--
LOCK TABLES `oauth_access_grants` WRITE;
/*!40000 ALTER TABLE `oauth_access_grants` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_access_grants` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_access_tokens`
--
DROP TABLE IF EXISTS `oauth_access_tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `oauth_access_tokens` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`resource_owner_id` bigint(20) DEFAULT NULL,
`application_id` bigint(20) NOT NULL,
`token` text COLLATE utf8mb4_unicode_ci NOT NULL,
`refresh_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`expires_in` int(11) DEFAULT NULL,
`revoked_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`scopes` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`previous_refresh_token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_oauth_access_tokens_on_refresh_token` (`refresh_token`) USING BTREE,
KEY `index_oauth_access_tokens_on_resource_owner_id` (`resource_owner_id`) USING BTREE,
KEY `index_oauth_access_tokens_on_application_id` (`application_id`) USING BTREE,
CONSTRAINT `fk_rails_732cb83ab7` FOREIGN KEY (`application_id`) REFERENCES `oauth_applications` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=337 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_access_tokens`
--
LOCK TABLES `oauth_access_tokens` WRITE;
/*!40000 ALTER TABLE `oauth_access_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_access_tokens` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_applications`
--
DROP TABLE IF EXISTS `oauth_applications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `oauth_applications` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`uid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`secret` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`redirect_uri` text COLLATE utf8mb4_unicode_ci NOT NULL,
`scopes` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
`confidential` tinyint(1) NOT NULL DEFAULT '1',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_oauth_applications_on_uid` (`uid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_applications`
--
LOCK TABLES `oauth_applications` WRITE;
/*!40000 ALTER TABLE `oauth_applications` DISABLE KEYS */;
INSERT INTO `oauth_applications` VALUES (1,'pm_app','K9ErSjnQnwTWe0DObrT9tPd46a5kGYXycNcuFKlfuBg','oBnL1FqpoPw1YqjwPYQ16ebhIq3QWByHB-_uATojZhQ','','',1,'2023-12-07 07:23:15','2023-12-07 07:23:15');
/*!40000 ALTER TABLE `oauth_applications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_configs`
--
DROP TABLE IF EXISTS `oauth_configs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `oauth_configs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` varchar(255) DEFAULT NULL,
`client_secret` varchar(255) DEFAULT NULL,
`redirect_uri` varchar(255) DEFAULT NULL,
`scope` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_configs`
--
LOCK TABLES `oauth_configs` WRITE;
/*!40000 ALTER TABLE `oauth_configs` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_configs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauths`
--
DROP TABLE IF EXISTS `oauths`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `oauths` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`client_id` varchar(255) DEFAULT NULL,
`client_secret` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`redirect_uri` varchar(255) DEFAULT NULL,
`scope` varchar(255) DEFAULT NULL,
`access_token` varchar(255) DEFAULT NULL,
`refresh_token` varchar(255) DEFAULT NULL,
`token_created_at` int(11) DEFAULT NULL,
`token_expires_in` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`user_id` int(11) DEFAULT '0',
`gitea_oauth_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_oauths_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauths`
--
LOCK TABLES `oauths` WRITE;
/*!40000 ALTER TABLE `oauths` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauths` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ob_repository_sync_jobs`
--
DROP TABLE IF EXISTS `ob_repository_sync_jobs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ob_repository_sync_jobs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`ob_repository_sync_id` bigint(20) DEFAULT NULL,
`github_branch` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`gitee_branch` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`gitlink_branch` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`job_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`base` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`job_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_ob_repository_sync_jobs_on_ob_repository_sync_id` (`ob_repository_sync_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ob_repository_sync_jobs`
--
LOCK TABLES `ob_repository_sync_jobs` WRITE;
/*!40000 ALTER TABLE `ob_repository_sync_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `ob_repository_sync_jobs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ob_repository_syncs`
--
DROP TABLE IF EXISTS `ob_repository_syncs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ob_repository_syncs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`github_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`gitee_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`github_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`gitee_token` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sync_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_ob_repository_syncs_on_project_id` (`project_id`) USING BTREE,
KEY `index_ob_repository_syncs_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ob_repository_syncs`
--
LOCK TABLES `ob_repository_syncs` WRITE;
/*!40000 ALTER TABLE `ob_repository_syncs` DISABLE KEYS */;
/*!40000 ALTER TABLE `ob_repository_syncs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `onclick_times`
--
DROP TABLE IF EXISTS `onclick_times`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `onclick_times` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`onclick_time` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_onclick_times_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `onclick_times`
--
LOCK TABLES `onclick_times` WRITE;
/*!40000 ALTER TABLE `onclick_times` DISABLE KEYS */;
/*!40000 ALTER TABLE `onclick_times` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `open_id_authentication_associations`
--
DROP TABLE IF EXISTS `open_id_authentication_associations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `open_id_authentication_associations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`issued` int(11) DEFAULT NULL,
`lifetime` int(11) DEFAULT NULL,
`handle` varchar(255) DEFAULT NULL,
`assoc_type` varchar(255) DEFAULT NULL,
`server_url` blob,
`secret` blob,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `open_id_authentication_associations`
--
LOCK TABLES `open_id_authentication_associations` WRITE;
/*!40000 ALTER TABLE `open_id_authentication_associations` DISABLE KEYS */;
/*!40000 ALTER TABLE `open_id_authentication_associations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `open_id_authentication_nonces`
--
DROP TABLE IF EXISTS `open_id_authentication_nonces`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `open_id_authentication_nonces` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`timestamp` int(11) NOT NULL,
`server_url` varchar(255) DEFAULT NULL,
`salt` varchar(255) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `open_id_authentication_nonces`
--
LOCK TABLES `open_id_authentication_nonces` WRITE;
/*!40000 ALTER TABLE `open_id_authentication_nonces` DISABLE KEYS */;
/*!40000 ALTER TABLE `open_id_authentication_nonces` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `open_source_projects`
--
DROP TABLE IF EXISTS `open_source_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `open_source_projects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` text,
`commit_count` int(11) DEFAULT '0',
`code_line` int(11) DEFAULT '0',
`users_count` int(11) DEFAULT '0',
`last_commit_time` date DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`date_collected` date DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `open_source_projects`
--
LOCK TABLES `open_source_projects` WRITE;
/*!40000 ALTER TABLE `open_source_projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `open_source_projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `open_users`
--
DROP TABLE IF EXISTS `open_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `open_users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`uid` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`extra` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_open_users_on_type_and_uid` (`type`,`uid`) USING BTREE,
KEY `index_open_users_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `open_users`
--
LOCK TABLES `open_users` WRITE;
/*!40000 ALTER TABLE `open_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `open_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `openis`
--
DROP TABLE IF EXISTS `openis`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `openis` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`openi_user_id` int(11) DEFAULT NULL,
`login` varchar(255) DEFAULT NULL,
`avatar_url` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`allow` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `openis`
--
LOCK TABLES `openis` WRITE;
/*!40000 ALTER TABLE `openis` DISABLE KEYS */;
/*!40000 ALTER TABLE `openis` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `openkylin_sign_details`
--
DROP TABLE IF EXISTS `openkylin_sign_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `openkylin_sign_details` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`login` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nickname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_openkylin_sign_details_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `openkylin_sign_details`
--
LOCK TABLES `openkylin_sign_details` WRITE;
/*!40000 ALTER TABLE `openkylin_sign_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `openkylin_sign_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `option_numbers`
--
DROP TABLE IF EXISTS `option_numbers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `option_numbers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`memo` int(11) DEFAULT NULL,
`messages_for_issues` int(11) DEFAULT NULL,
`issues_status` int(11) DEFAULT NULL,
`replay_for_message` int(11) DEFAULT NULL,
`replay_for_memo` int(11) DEFAULT NULL,
`follow` int(11) DEFAULT NULL,
`tread` int(11) DEFAULT NULL,
`praise_by_one` int(11) DEFAULT NULL,
`praise_by_two` int(11) DEFAULT NULL,
`praise_by_three` int(11) DEFAULT NULL,
`tread_by_one` int(11) DEFAULT NULL,
`tread_by_two` int(11) DEFAULT NULL,
`tread_by_three` int(11) DEFAULT NULL,
`changeset` int(11) DEFAULT NULL,
`document` int(11) DEFAULT NULL,
`attachment` int(11) DEFAULT NULL,
`issue_done_ratio` int(11) DEFAULT NULL,
`post_issue` int(11) DEFAULT NULL,
`score_type` int(11) DEFAULT NULL,
`total_score` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`project_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `option_numbers`
--
LOCK TABLES `option_numbers` WRITE;
/*!40000 ALTER TABLE `option_numbers` DISABLE KEYS */;
/*!40000 ALTER TABLE `option_numbers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `org_activities`
--
DROP TABLE IF EXISTS `org_activities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `org_activities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`org_act_id` int(11) DEFAULT NULL,
`org_act_type` varchar(255) DEFAULT NULL,
`container_id` int(11) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `org_activities`
--
LOCK TABLES `org_activities` WRITE;
/*!40000 ALTER TABLE `org_activities` DISABLE KEYS */;
/*!40000 ALTER TABLE `org_activities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `org_courses`
--
DROP TABLE IF EXISTS `org_courses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `org_courses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`organization_id` int(11) DEFAULT NULL,
`course_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `org_courses`
--
LOCK TABLES `org_courses` WRITE;
/*!40000 ALTER TABLE `org_courses` DISABLE KEYS */;
/*!40000 ALTER TABLE `org_courses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `org_document_comments`
--
DROP TABLE IF EXISTS `org_document_comments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `org_document_comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` text,
`content` text,
`organization_id` int(11) DEFAULT NULL,
`creator_id` int(11) DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`reply_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`locked` tinyint(1) DEFAULT '0',
`sticky` int(11) DEFAULT '0',
`org_subfield_id` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0',
`root_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_org_document_comments_on_root_id` (`root_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `org_document_comments`
--
LOCK TABLES `org_document_comments` WRITE;
/*!40000 ALTER TABLE `org_document_comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `org_document_comments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `org_member_roles`
--
DROP TABLE IF EXISTS `org_member_roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `org_member_roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`org_member_id` int(11) DEFAULT NULL,
`role_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `org_member_roles`
--
LOCK TABLES `org_member_roles` WRITE;
/*!40000 ALTER TABLE `org_member_roles` DISABLE KEYS */;
/*!40000 ALTER TABLE `org_member_roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `org_members`
--
DROP TABLE IF EXISTS `org_members`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `org_members` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`organization_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `org_members`
--
LOCK TABLES `org_members` WRITE;
/*!40000 ALTER TABLE `org_members` DISABLE KEYS */;
/*!40000 ALTER TABLE `org_members` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `org_messages`
--
DROP TABLE IF EXISTS `org_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `org_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`sender_id` int(11) DEFAULT NULL,
`organization_id` int(11) DEFAULT NULL,
`message_type` varchar(255) DEFAULT NULL,
`message_id` int(11) DEFAULT NULL,
`viewed` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`status` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `org_messages`
--
LOCK TABLES `org_messages` WRITE;
/*!40000 ALTER TABLE `org_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `org_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `org_projects`
--
DROP TABLE IF EXISTS `org_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `org_projects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`organization_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `org_projects`
--
LOCK TABLES `org_projects` WRITE;
/*!40000 ALTER TABLE `org_projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `org_projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `org_subfield_messages`
--
DROP TABLE IF EXISTS `org_subfield_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `org_subfield_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`org_subfield_id` int(11) DEFAULT NULL,
`message_id` int(11) DEFAULT NULL,
`message_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `org_subfield_messages`
--
LOCK TABLES `org_subfield_messages` WRITE;
/*!40000 ALTER TABLE `org_subfield_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `org_subfield_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `org_subfields`
--
DROP TABLE IF EXISTS `org_subfields`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `org_subfields` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`organization_id` int(11) DEFAULT NULL,
`priority` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`field_type` varchar(255) DEFAULT NULL,
`hide` int(11) DEFAULT '0',
`status` int(11) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `org_subfields`
--
LOCK TABLES `org_subfields` WRITE;
/*!40000 ALTER TABLE `org_subfields` DISABLE KEYS */;
/*!40000 ALTER TABLE `org_subfields` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `organization_extensions`
--
DROP TABLE IF EXISTS `organization_extensions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `organization_extensions` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`organization_id` bigint(20) DEFAULT NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`website` varchar(255) DEFAULT NULL COMMENT '组织官方网站',
`location` varchar(255) DEFAULT NULL COMMENT '组织地区',
`repo_admin_change_team_access` tinyint(1) DEFAULT '0' COMMENT '项目管理员是否可以添加或移除团队的访问权限',
`visibility` int(11) DEFAULT '0' COMMENT '组织可见性',
`max_repo_creation` int(11) DEFAULT '-1' COMMENT '组织最大仓库数',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`num_projects` int(11) DEFAULT '0',
`num_users` int(11) DEFAULT '0',
`num_teams` int(11) DEFAULT '0',
`recommend` tinyint(1) DEFAULT '0',
`news_banner_id` int(11) DEFAULT NULL,
`news_content` text,
`memo` text,
`news_title` varchar(255) DEFAULT NULL,
`news_url` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_organization_extensions_on_organization_id` (`organization_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `organization_extensions`
--
LOCK TABLES `organization_extensions` WRITE;
/*!40000 ALTER TABLE `organization_extensions` DISABLE KEYS */;
/*!40000 ALTER TABLE `organization_extensions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `organization_users`
--
DROP TABLE IF EXISTS `organization_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `organization_users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`organization_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_organization_users_on_user_id` (`user_id`) USING BTREE,
KEY `index_organization_users_on_organization_id` (`organization_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=316 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `organization_users`
--
LOCK TABLES `organization_users` WRITE;
/*!40000 ALTER TABLE `organization_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `organization_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `organizations`
--
DROP TABLE IF EXISTS `organizations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `organizations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` text,
`creator_id` int(11) DEFAULT NULL,
`home_id` int(11) DEFAULT NULL,
`is_public` tinyint(1) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`allow_guest_download` tinyint(1) DEFAULT '1',
`visits` int(11) DEFAULT '0',
`show_mode` int(11) DEFAULT '0',
`allow_teacher` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `organizations`
--
LOCK TABLES `organizations` WRITE;
/*!40000 ALTER TABLE `organizations` DISABLE KEYS */;
/*!40000 ALTER TABLE `organizations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `outputs`
--
DROP TABLE IF EXISTS `outputs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `outputs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` int(11) DEFAULT NULL,
`game_id` int(11) DEFAULT NULL,
`msg` text,
`out_put` longtext,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`test_set_position` int(11) DEFAULT NULL,
`actual_output` longtext,
`result` tinyint(1) DEFAULT NULL,
`is_public` tinyint(1) DEFAULT NULL,
`query_index` int(11) DEFAULT '1',
`compile_success` int(11) DEFAULT '1',
`text_scor` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `game` (`game_id`,`query_index`) USING BTREE,
KEY `index_outputs_on_test_set_position` (`test_set_position`) USING BTREE,
KEY `index_outputs_on_created_at` (`created_at`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `outputs`
--
LOCK TABLES `outputs` WRITE;
/*!40000 ALTER TABLE `outputs` DISABLE KEYS */;
/*!40000 ALTER TABLE `outputs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `page_themes`
--
DROP TABLE IF EXISTS `page_themes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `page_themes` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`language_frame` int(11) DEFAULT '0',
`image_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`clone_url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`order_index` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `page_themes`
--
LOCK TABLES `page_themes` WRITE;
/*!40000 ALTER TABLE `page_themes` DISABLE KEYS */;
/*!40000 ALTER TABLE `page_themes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pages`
--
DROP TABLE IF EXISTS `pages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pages` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`identifier` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`site_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`language_frame` int(11) DEFAULT '0',
`theme` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_build_at` datetime DEFAULT NULL,
`state` tinyint(1) DEFAULT '1',
`state_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`last_build_info` text COLLATE utf8mb4_unicode_ci,
`build_state` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_pages_on_user_id` (`user_id`) USING BTREE,
KEY `index_pages_on_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pages`
--
LOCK TABLES `pages` WRITE;
/*!40000 ALTER TABLE `pages` DISABLE KEYS */;
/*!40000 ALTER TABLE `pages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `phone_app_versions`
--
DROP TABLE IF EXISTS `phone_app_versions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `phone_app_versions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`version` varchar(255) DEFAULT NULL,
`description` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `phone_app_versions`
--
LOCK TABLES `phone_app_versions` WRITE;
/*!40000 ALTER TABLE `phone_app_versions` DISABLE KEYS */;
/*!40000 ALTER TABLE `phone_app_versions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pinned_projects`
--
DROP TABLE IF EXISTS `pinned_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pinned_projects` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`position` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_pinned_projects_on_user_id` (`user_id`) USING BTREE,
KEY `index_pinned_projects_on_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pinned_projects`
--
LOCK TABLES `pinned_projects` WRITE;
/*!40000 ALTER TABLE `pinned_projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `pinned_projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `platform_samples`
--
DROP TABLE IF EXISTS `platform_samples`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `platform_samples` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`samples_type` varchar(255) DEFAULT NULL,
`contents` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `platform_samples`
--
LOCK TABLES `platform_samples` WRITE;
/*!40000 ALTER TABLE `platform_samples` DISABLE KEYS */;
/*!40000 ALTER TABLE `platform_samples` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pm_links`
--
DROP TABLE IF EXISTS `pm_links`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pm_links` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`be_linkable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`be_linkable_id` int(11) NOT NULL,
`linkable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`linkable_id` int(11) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_pm_links_on_linkable_type` (`linkable_type`) USING BTREE,
KEY `index_pm_links_on_linkable_id` (`linkable_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=198 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pm_links`
--
LOCK TABLES `pm_links` WRITE;
/*!40000 ALTER TABLE `pm_links` DISABLE KEYS */;
/*!40000 ALTER TABLE `pm_links` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `praise_tread_caches`
--
DROP TABLE IF EXISTS `praise_tread_caches`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `praise_tread_caches` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`object_id` int(11) NOT NULL,
`object_type` varchar(255) DEFAULT NULL,
`praise_num` int(11) DEFAULT NULL,
`tread_num` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `praise_tread_caches`
--
LOCK TABLES `praise_tread_caches` WRITE;
/*!40000 ALTER TABLE `praise_tread_caches` DISABLE KEYS */;
/*!40000 ALTER TABLE `praise_tread_caches` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `praise_treads`
--
DROP TABLE IF EXISTS `praise_treads`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `praise_treads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`praise_tread_object_id` int(11) DEFAULT NULL,
`praise_tread_object_type` varchar(255) DEFAULT NULL,
`praise_or_tread` int(11) DEFAULT '1',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `praise_tread` (`praise_tread_object_id`,`praise_tread_object_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `praise_treads`
--
LOCK TABLES `praise_treads` WRITE;
/*!40000 ALTER TABLE `praise_treads` DISABLE KEYS */;
/*!40000 ALTER TABLE `praise_treads` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `principal_activities`
--
DROP TABLE IF EXISTS `principal_activities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `principal_activities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`principal_id` int(11) DEFAULT NULL,
`principal_act_id` int(11) DEFAULT NULL,
`principal_act_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `principal_activities`
--
LOCK TABLES `principal_activities` WRITE;
/*!40000 ALTER TABLE `principal_activities` DISABLE KEYS */;
/*!40000 ALTER TABLE `principal_activities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `private_messages`
--
DROP TABLE IF EXISTS `private_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `private_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`target_id` int(11) DEFAULT NULL,
`sender_id` int(11) DEFAULT NULL,
`receiver_id` int(11) DEFAULT NULL,
`content` text,
`send_time` datetime DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_private_messages_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `private_messages`
--
LOCK TABLES `private_messages` WRITE;
/*!40000 ALTER TABLE `private_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `private_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `professional_levels`
--
DROP TABLE IF EXISTS `professional_levels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `professional_levels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`level` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `professional_levels`
--
LOCK TABLES `professional_levels` WRITE;
/*!40000 ALTER TABLE `professional_levels` DISABLE KEYS */;
/*!40000 ALTER TABLE `professional_levels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_categories`
--
DROP TABLE IF EXISTS `project_categories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`position` int(11) DEFAULT NULL,
`projects_count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`ancestry` varchar(255) DEFAULT NULL,
`pinned_index` int(11) DEFAULT '0',
`private_projects_count` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_categories_on_ancestry` (`ancestry`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_categories`
--
LOCK TABLES `project_categories` WRITE;
/*!40000 ALTER TABLE `project_categories` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_categories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_datasets`
--
DROP TABLE IF EXISTS `project_datasets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_datasets` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`description` text,
`project_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`license_id` bigint(20) DEFAULT NULL,
`paper_content` text,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_datasets_on_project_id` (`project_id`) USING BTREE,
KEY `index_project_datasets_on_license_id` (`license_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_datasets`
--
LOCK TABLES `project_datasets` WRITE;
/*!40000 ALTER TABLE `project_datasets` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_datasets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_details`
--
DROP TABLE IF EXISTS `project_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_details` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_details_on_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_details`
--
LOCK TABLES `project_details` WRITE;
/*!40000 ALTER TABLE `project_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_educoders`
--
DROP TABLE IF EXISTS `project_educoders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_educoders` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`owner` varchar(255) DEFAULT NULL,
`repo_name` varchar(255) DEFAULT NULL,
`image_url` varchar(255) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`commit_count` int(11) DEFAULT '0',
`forked_count` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_educoders_on_repo_name` (`repo_name`) USING BTREE,
KEY `index_project_educoders_on_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_educoders`
--
LOCK TABLES `project_educoders` WRITE;
/*!40000 ALTER TABLE `project_educoders` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_educoders` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_infos`
--
DROP TABLE IF EXISTS `project_infos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_infos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_infos`
--
LOCK TABLES `project_infos` WRITE;
/*!40000 ALTER TABLE `project_infos` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_infos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_invite_links`
--
DROP TABLE IF EXISTS `project_invite_links`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_invite_links` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`role` int(11) DEFAULT '4',
`is_apply` tinyint(1) DEFAULT '1',
`sign` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`expired_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_invite_links_on_project_id` (`project_id`) USING BTREE,
KEY `index_project_invite_links_on_user_id` (`user_id`) USING BTREE,
KEY `index_project_invite_links_on_sign` (`sign`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_invite_links`
--
LOCK TABLES `project_invite_links` WRITE;
/*!40000 ALTER TABLE `project_invite_links` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_invite_links` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_languages`
--
DROP TABLE IF EXISTS `project_languages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_languages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`position` int(11) DEFAULT NULL,
`projects_count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_languages`
--
LOCK TABLES `project_languages` WRITE;
/*!40000 ALTER TABLE `project_languages` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_languages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_package_applies`
--
DROP TABLE IF EXISTS `project_package_applies`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_package_applies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_package_id` int(11) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
`reason` varchar(255) DEFAULT NULL,
`refused_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_package_applies_on_project_package_id` (`project_package_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_package_applies`
--
LOCK TABLES `project_package_applies` WRITE;
/*!40000 ALTER TABLE `project_package_applies` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_package_applies` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_package_categories`
--
DROP TABLE IF EXISTS `project_package_categories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_package_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`position` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_package_categories`
--
LOCK TABLES `project_package_categories` WRITE;
/*!40000 ALTER TABLE `project_package_categories` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_package_categories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_packages`
--
DROP TABLE IF EXISTS `project_packages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_packages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`creator_id` int(11) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`content` text,
`contact_name` varchar(255) DEFAULT NULL,
`contact_phone` varchar(255) DEFAULT NULL,
`min_price` decimal(10,0) DEFAULT NULL,
`max_price` decimal(10,0) DEFAULT NULL,
`visit_count` int(11) DEFAULT '0',
`bidding_users_count` int(11) DEFAULT '0',
`deadline_at` datetime DEFAULT NULL,
`published_at` datetime DEFAULT NULL,
`bidding_finished_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`project_package_category_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_packages_on_published_at` (`published_at`) USING BTREE,
KEY `index_project_packages_on_creator_id` (`creator_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_packages`
--
LOCK TABLES `project_packages` WRITE;
/*!40000 ALTER TABLE `project_packages` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_packages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_scores`
--
DROP TABLE IF EXISTS `project_scores`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_scores` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` varchar(255) DEFAULT NULL,
`score` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`issue_num` int(11) DEFAULT '0',
`issue_journal_num` int(11) DEFAULT '0',
`news_num` int(11) DEFAULT '0',
`documents_num` int(11) DEFAULT '0',
`changeset_num` int(11) DEFAULT '0',
`board_message_num` int(11) DEFAULT '0',
`board_num` int(11) DEFAULT '0',
`attach_num` int(11) DEFAULT '0',
`commit_time` datetime DEFAULT NULL,
`pull_request_num` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_scores`
--
LOCK TABLES `project_scores` WRITE;
/*!40000 ALTER TABLE `project_scores` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_scores` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_statistics`
--
DROP TABLE IF EXISTS `project_statistics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_statistics` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`common_projects_count` int(11) DEFAULT '0',
`mirror_projects_count` int(11) DEFAULT '0',
`sync_mirror_projects_count` int(11) DEFAULT '0',
`commits_total_count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_statistics`
--
LOCK TABLES `project_statistics` WRITE;
/*!40000 ALTER TABLE `project_statistics` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_statistics` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_statuses`
--
DROP TABLE IF EXISTS `project_statuses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_statuses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`changesets_count` int(11) DEFAULT NULL,
`watchers_count` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`project_type` int(11) DEFAULT NULL,
`grade` float DEFAULT '0',
`course_ac_para` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_statuses_on_grade` (`grade`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_statuses`
--
LOCK TABLES `project_statuses` WRITE;
/*!40000 ALTER TABLE `project_statuses` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_statuses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_topic_ralates`
--
DROP TABLE IF EXISTS `project_topic_ralates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_topic_ralates` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_topic_id` bigint(20) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_topic_ralates_on_project_topic_id` (`project_topic_id`) USING BTREE,
KEY `index_project_topic_ralates_on_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=73 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_topic_ralates`
--
LOCK TABLES `project_topic_ralates` WRITE;
/*!40000 ALTER TABLE `project_topic_ralates` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_topic_ralates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_topics`
--
DROP TABLE IF EXISTS `project_topics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_topics` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`position` int(11) DEFAULT '0',
`projects_count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_topics_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_topics`
--
LOCK TABLES `project_topics` WRITE;
/*!40000 ALTER TABLE `project_topics` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_topics` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_trends`
--
DROP TABLE IF EXISTS `project_trends`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_trends` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`trend_type` varchar(255) DEFAULT NULL,
`trend_id` bigint(20) DEFAULT NULL,
`action_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_trends_on_trend_type_and_trend_id` (`trend_type`,`trend_id`) USING BTREE,
KEY `index_project_trends_on_user_id_and_project_id` (`user_id`,`project_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=434 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_trends`
--
LOCK TABLES `project_trends` WRITE;
/*!40000 ALTER TABLE `project_trends` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_trends` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `project_units`
--
DROP TABLE IF EXISTS `project_units`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `project_units` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` bigint(20) DEFAULT NULL,
`unit_type` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_project_units_on_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5497 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `project_units`
--
LOCK TABLES `project_units` WRITE;
/*!40000 ALTER TABLE `project_units` DISABLE KEYS */;
/*!40000 ALTER TABLE `project_units` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `projecting_softapplictions`
--
DROP TABLE IF EXISTS `projecting_softapplictions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `projecting_softapplictions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`softapplication_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `projecting_softapplictions`
--
LOCK TABLES `projecting_softapplictions` WRITE;
/*!40000 ALTER TABLE `projecting_softapplictions` DISABLE KEYS */;
/*!40000 ALTER TABLE `projecting_softapplictions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `projects`
--
DROP TABLE IF EXISTS `projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `projects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`homepage` varchar(255) DEFAULT '',
`is_public` tinyint(1) NOT NULL DEFAULT '1',
`parent_id` int(11) DEFAULT NULL,
`created_on` datetime DEFAULT NULL,
`updated_on` datetime DEFAULT NULL,
`identifier` varchar(255) DEFAULT NULL,
`status` int(11) NOT NULL DEFAULT '1',
`lft` int(11) DEFAULT NULL,
`rgt` int(11) DEFAULT NULL,
`inherit_members` tinyint(1) NOT NULL DEFAULT '0',
`project_type` int(11) DEFAULT '0',
`hidden_repo` tinyint(1) NOT NULL DEFAULT '0',
`attachmenttype` int(11) DEFAULT '1',
`user_id` int(11) DEFAULT NULL,
`dts_test` int(11) DEFAULT '0',
`enterprise_name` varchar(255) DEFAULT NULL,
`organization_id` int(11) DEFAULT NULL,
`project_new_type` int(11) DEFAULT NULL,
`gpid` int(11) DEFAULT NULL,
`forked_from_project_id` int(11) DEFAULT NULL,
`forked_count` int(11) DEFAULT '0',
`publish_resource` int(11) DEFAULT '0',
`visits` int(11) DEFAULT '0',
`hot` int(11) DEFAULT '0',
`invite_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`qrcode` varchar(255) DEFAULT NULL,
`qrcode_expiretime` int(11) DEFAULT '0',
`script` text,
`training_status` tinyint(4) DEFAULT '0',
`rep_identifier` varchar(255) DEFAULT NULL,
`project_category_id` int(11) DEFAULT NULL,
`project_language_id` int(11) DEFAULT NULL,
`license_id` int(11) DEFAULT NULL,
`ignore_id` int(11) DEFAULT NULL,
`praises_count` int(11) DEFAULT '0',
`watchers_count` int(11) DEFAULT '0',
`issues_count` int(11) DEFAULT '0',
`pull_requests_count` int(11) DEFAULT '0',
`language` varchar(255) DEFAULT NULL,
`versions_count` int(11) DEFAULT '0',
`issue_tags_count` int(11) DEFAULT '0',
`closed_issues_count` int(11) DEFAULT '0',
`open_devops` tinyint(1) DEFAULT '0',
`gitea_webhook_id` int(11) DEFAULT NULL,
`open_devops_count` int(11) DEFAULT '0' COMMENT '针对同一台ci服务器激活devops流程的次数',
`recommend` tinyint(1) DEFAULT '0',
`platform` int(11) DEFAULT '0',
`default_branch` varchar(255) DEFAULT 'master',
`website` varchar(255) DEFAULT NULL,
`lesson_url` varchar(255) DEFAULT NULL,
`use_blockchain` tinyint(1) DEFAULT '0',
`is_pinned` tinyint(1) DEFAULT '0',
`recommend_index` int(11) DEFAULT '0',
`pr_view_admin` tinyint(1) DEFAULT '0',
`has_actions` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_projects_on_lft` (`lft`) USING BTREE,
KEY `index_projects_on_rgt` (`rgt`) USING BTREE,
KEY `index_projects_on_identifier` (`identifier`) USING BTREE,
KEY `index_projects_on_project_type` (`project_type`) USING BTREE,
KEY `index_projects_on_updated_on` (`updated_on`) USING BTREE,
KEY `index_projects_on_is_public` (`is_public`) USING BTREE,
KEY `index_projects_on_status` (`status`) USING BTREE,
KEY `index_projects_on_forked_from_project_id` (`forked_from_project_id`) USING BTREE,
KEY `index_projects_on_recommend` (`recommend`) USING BTREE,
KEY `index_projects_on_platform` (`platform`) USING BTREE,
KEY `index_projects_on_name` (`name`) USING BTREE,
KEY `index_projects_on_invite_code` (`invite_code`) USING BTREE,
KEY `index_projects_on_project_category_id` (`project_category_id`) USING BTREE,
KEY `index_projects_on_project_language_id` (`project_language_id`) USING BTREE,
KEY `index_projects_on_license_id` (`license_id`) USING BTREE,
KEY `index_projects_on_is_pinned` (`is_pinned`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=690 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `projects`
--
LOCK TABLES `projects` WRITE;
/*!40000 ALTER TABLE `projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `projects_trackers`
--
DROP TABLE IF EXISTS `projects_trackers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `projects_trackers` (
`project_id` int(11) NOT NULL DEFAULT '0',
`tracker_id` int(11) NOT NULL DEFAULT '0',
UNIQUE KEY `projects_trackers_unique` (`project_id`,`tracker_id`) USING BTREE,
KEY `projects_trackers_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `projects_trackers`
--
LOCK TABLES `projects_trackers` WRITE;
/*!40000 ALTER TABLE `projects_trackers` DISABLE KEYS */;
/*!40000 ALTER TABLE `projects_trackers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `protected_branches`
--
DROP TABLE IF EXISTS `protected_branches`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `protected_branches` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`repo_id` int(11) DEFAULT NULL,
`branch_name` varchar(255) DEFAULT '',
`can_push` tinyint(1) NOT NULL DEFAULT '0',
`enable_whitelist` tinyint(1) DEFAULT '0',
`whitelist_user_i_ds` text,
`whitelist_team_i_ds` text,
`enable_merge_whitelist` tinyint(1) NOT NULL DEFAULT '0',
`whitelist_deploy_keys` tinyint(1) NOT NULL DEFAULT '0',
`merge_whitelist_user_i_ds` text,
`merge_whitelist_team_i_ds` text,
`enable_status_check` tinyint(1) NOT NULL DEFAULT '0',
`status_check_contexts` text,
`approvals_whitelist_user_i_ds` text,
`approvals_whitelist_team_i_ds` text,
`required_approvals` int(11) DEFAULT '0',
`enable_approvals_whitelist` tinyint(1) NOT NULL DEFAULT '0',
`block_on_rejected_reviews` tinyint(1) NOT NULL DEFAULT '0',
`dismiss_stale_approvals` tinyint(1) NOT NULL DEFAULT '0',
`require_signed_commits` tinyint(1) NOT NULL DEFAULT '0',
`protected_file_patterns` text,
`block_on_outdated_branch` tinyint(1) NOT NULL DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_protected_branches_on_repo_id` (`repo_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `protected_branches`
--
LOCK TABLES `protected_branches` WRITE;
/*!40000 ALTER TABLE `protected_branches` DISABLE KEYS */;
/*!40000 ALTER TABLE `protected_branches` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pull_attached_issues`
--
DROP TABLE IF EXISTS `pull_attached_issues`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pull_attached_issues` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`pull_request_id` bigint(20) DEFAULT NULL,
`issue_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`fixed` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_pull_attached_issues_on_pull_request_id` (`pull_request_id`) USING BTREE,
KEY `index_pull_attached_issues_on_issue_id` (`issue_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pull_attached_issues`
--
LOCK TABLES `pull_attached_issues` WRITE;
/*!40000 ALTER TABLE `pull_attached_issues` DISABLE KEYS */;
/*!40000 ALTER TABLE `pull_attached_issues` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pull_request_assigns`
--
DROP TABLE IF EXISTS `pull_request_assigns`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pull_request_assigns` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`pull_request_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`user_login` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_pull_request_assigns_on_user_id_and_pull_request_id` (`pull_request_id`) USING BTREE,
KEY `index_pull_request_assigns_on_user_login` (`user_login`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pull_request_assigns`
--
LOCK TABLES `pull_request_assigns` WRITE;
/*!40000 ALTER TABLE `pull_request_assigns` DISABLE KEYS */;
/*!40000 ALTER TABLE `pull_request_assigns` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pull_request_tags`
--
DROP TABLE IF EXISTS `pull_request_tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pull_request_tags` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`issue_tag_id` int(11) DEFAULT NULL,
`pull_request_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_pull_request_tags_on_issue_tag_id_and_pull_request_id` (`issue_tag_id`,`pull_request_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pull_request_tags`
--
LOCK TABLES `pull_request_tags` WRITE;
/*!40000 ALTER TABLE `pull_request_tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `pull_request_tags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pull_requests`
--
DROP TABLE IF EXISTS `pull_requests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pull_requests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`gitea_id` int(11) DEFAULT NULL,
`gitea_number` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`status` int(11) DEFAULT '0',
`project_id` int(11) DEFAULT NULL,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`milestone` int(11) DEFAULT NULL,
`body` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`head` varchar(255) DEFAULT NULL,
`base` varchar(255) DEFAULT NULL,
`issue_id` int(11) DEFAULT NULL,
`fork_project_id` int(11) DEFAULT NULL,
`is_original` tinyint(1) DEFAULT '0',
`comments_count` int(11) DEFAULT '0' COMMENT 'number of comments for pull request',
`commits_count` int(11) DEFAULT '0' COMMENT 'number of git commits for pull request',
`files_count` int(11) DEFAULT '0' COMMENT 'number of git change files for pull request',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pull_requests`
--
LOCK TABLES `pull_requests` WRITE;
/*!40000 ALTER TABLE `pull_requests` DISABLE KEYS */;
/*!40000 ALTER TABLE `pull_requests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pull_requests_reviewers`
--
DROP TABLE IF EXISTS `pull_requests_reviewers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `pull_requests_reviewers` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`pull_request_id` bigint(20) DEFAULT NULL,
`reviewer_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_pull_requests_reviewers_on_pull_request_id` (`pull_request_id`) USING BTREE,
KEY `index_pull_requests_reviewers_on_reviewer_id` (`reviewer_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pull_requests_reviewers`
--
LOCK TABLES `pull_requests_reviewers` WRITE;
/*!40000 ALTER TABLE `pull_requests_reviewers` DISABLE KEYS */;
/*!40000 ALTER TABLE `pull_requests_reviewers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `quality_analyses`
--
DROP TABLE IF EXISTS `quality_analyses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `quality_analyses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`author_login` varchar(255) DEFAULT NULL,
`rep_identifier` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`sonar_version` int(11) DEFAULT '0',
`path` varchar(255) DEFAULT NULL,
`branch` varchar(255) DEFAULT NULL,
`language` varchar(255) DEFAULT NULL,
`sonar_name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `quality_analyses`
--
LOCK TABLES `quality_analyses` WRITE;
/*!40000 ALTER TABLE `quality_analyses` DISABLE KEYS */;
/*!40000 ALTER TABLE `quality_analyses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `queries`
--
DROP TABLE IF EXISTS `queries`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `queries` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`name` varchar(255) NOT NULL DEFAULT '',
`filters` text,
`user_id` int(11) NOT NULL DEFAULT '0',
`is_public` tinyint(1) NOT NULL DEFAULT '0',
`column_names` text,
`sort_criteria` text,
`group_by` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_queries_on_project_id` (`project_id`) USING BTREE,
KEY `index_queries_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `queries`
--
LOCK TABLES `queries` WRITE;
/*!40000 ALTER TABLE `queries` DISABLE KEYS */;
/*!40000 ALTER TABLE `queries` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `register_bot`
--
DROP TABLE IF EXISTS `register_bot`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `register_bot` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`bot_id` int(11) NOT NULL COMMENT 'bot唯一标识',
`developer_id` int(11) NOT NULL COMMENT 'bot开发者唯一标识',
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`developer_login` varchar(255) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `bot_id` (`bot_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `register_bot`
--
LOCK TABLES `register_bot` WRITE;
/*!40000 ALTER TABLE `register_bot` DISABLE KEYS */;
/*!40000 ALTER TABLE `register_bot` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `relationships`
--
DROP TABLE IF EXISTS `relationships`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `relationships` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`follower_id` int(11) DEFAULT NULL,
`followed_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_relationships_on_follower_id_and_followed_id` (`follower_id`,`followed_id`) USING BTREE,
KEY `index_relationships_on_followed_id` (`followed_id`) USING BTREE,
KEY `index_relationships_on_follower_id` (`follower_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `relationships`
--
LOCK TABLES `relationships` WRITE;
/*!40000 ALTER TABLE `relationships` DISABLE KEYS */;
/*!40000 ALTER TABLE `relationships` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `rep_statics`
--
DROP TABLE IF EXISTS `rep_statics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `rep_statics` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`commits_num` int(11) DEFAULT NULL,
`uname` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`add` int(11) DEFAULT NULL,
`del` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`changeset` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `rep_statics`
--
LOCK TABLES `rep_statics` WRITE;
/*!40000 ALTER TABLE `rep_statics` DISABLE KEYS */;
/*!40000 ALTER TABLE `rep_statics` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `repertoires`
--
DROP TABLE IF EXISTS `repertoires`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `repertoires` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `repertoires`
--
LOCK TABLES `repertoires` WRITE;
/*!40000 ALTER TABLE `repertoires` DISABLE KEYS */;
/*!40000 ALTER TABLE `repertoires` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `repositories`
--
DROP TABLE IF EXISTS `repositories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `repositories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL DEFAULT '0',
`url` varchar(255) NOT NULL DEFAULT '',
`login` varchar(60) DEFAULT '',
`password` varchar(255) DEFAULT '',
`root_url` varchar(255) DEFAULT '',
`type` varchar(255) DEFAULT NULL,
`path_encoding` varchar(64) DEFAULT NULL,
`log_encoding` varchar(64) DEFAULT NULL,
`extra_info` text,
`identifier` varchar(255) DEFAULT NULL,
`is_default` tinyint(1) DEFAULT '0',
`hidden` tinyint(1) DEFAULT '0',
`shixun_id` int(11) DEFAULT NULL,
`myshixun_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`mirror_url` varchar(255) DEFAULT NULL,
`version_releases_count` int(11) DEFAULT '0',
`fork_url` varchar(255) DEFAULT NULL,
`is_mirror` tinyint(1) DEFAULT '0',
`accelerator_url` varchar(255) DEFAULT '',
`source_clone_url` varchar(255) DEFAULT '',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_repositories_on_project_id` (`project_id`) USING BTREE,
KEY `index_repositories_on_identifier` (`identifier`) USING BTREE,
KEY `index_repositories_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=688 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `repositories`
--
LOCK TABLES `repositories` WRITE;
/*!40000 ALTER TABLE `repositories` DISABLE KEYS */;
/*!40000 ALTER TABLE `repositories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `resource_banks`
--
DROP TABLE IF EXISTS `resource_banks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `resource_banks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`course_id` int(11) DEFAULT NULL,
`attachment_id` int(11) DEFAULT NULL,
`filename` varchar(255) DEFAULT NULL,
`disk_filename` varchar(255) DEFAULT NULL,
`filesize` int(11) DEFAULT NULL,
`digest` varchar(255) DEFAULT NULL,
`downloads` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`description` text,
`disk_directory` varchar(255) DEFAULT NULL,
`is_public` tinyint(1) DEFAULT NULL,
`copy_from` int(11) DEFAULT NULL,
`quotes` int(11) DEFAULT NULL,
`applicable_syllabus` varchar(255) DEFAULT NULL,
`major_level` int(11) DEFAULT NULL,
`discipline_category_id` int(11) DEFAULT NULL,
`first_level_discipline_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`content_type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_resource_banks_on_course_id` (`course_id`) USING BTREE,
KEY `index_resource_banks_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `resource_banks`
--
LOCK TABLES `resource_banks` WRITE;
/*!40000 ALTER TABLE `resource_banks` DISABLE KEYS */;
/*!40000 ALTER TABLE `resource_banks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reversed_keywords`
--
DROP TABLE IF EXISTS `reversed_keywords`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `reversed_keywords` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`identifier` varchar(255) DEFAULT NULL COMMENT '保留关键字',
`description` text COMMENT '描述',
`closed` tinyint(1) DEFAULT '0' COMMENT '是否关闭',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reversed_keywords`
--
LOCK TABLES `reversed_keywords` WRITE;
/*!40000 ALTER TABLE `reversed_keywords` DISABLE KEYS */;
INSERT INTO `reversed_keywords` VALUES (1,'teams','',0,'2021-09-03 10:42:32','2022-03-08 02:45:47'),(2,'members','',0,'2021-09-03 10:42:38','2021-09-03 10:42:38'),(3,'email','',0,'2021-09-03 10:42:43','2021-09-03 10:42:43'),(4,'register','',0,'2021-09-03 10:42:49','2021-09-03 10:42:49'),(5,'login','',0,'2021-09-03 10:42:54','2021-09-03 10:42:54'),(6,'mine','',0,'2021-09-03 10:42:59','2021-09-03 10:42:59'),(7,'pulls','',0,'2021-09-03 10:43:05','2021-09-03 10:43:05'),(8,'projects','',0,'2021-09-03 10:43:10','2021-09-03 10:43:10'),(9,'code','',0,'2021-09-03 10:43:17','2021-09-03 10:43:17'),(10,'trending','',0,'2021-09-03 10:43:23','2021-09-03 10:43:23'),(11,'issues','',0,'2021-09-03 10:43:31','2021-09-03 10:43:31'),(12,'wiki','',0,'2021-09-03 10:43:36','2021-09-03 10:43:36'),(13,'mulan','',0,'2021-09-03 10:43:43','2021-09-03 10:43:43'),(14,'ccf','',0,'2021-09-03 10:43:49','2021-09-03 10:43:49'),(15,'setting','',0,'2021-09-03 10:43:54','2021-09-03 10:43:54'),(16,'settings','',0,'2021-09-03 10:43:59','2021-09-03 10:43:59'),(17,'explore','',0,'2021-09-03 10:44:04','2021-09-03 10:44:04'),(18,'trustie','',0,'2021-09-03 10:44:13','2021-09-03 10:44:13'),(19,'gitlink','',0,'2021-09-03 10:44:18','2021-09-03 10:44:18'),(20,'devops','devops路由占用',0,'2021-09-10 11:08:07','2021-09-10 11:08:07'),(21,'notice','通知系统路由占用',0,'2021-09-10 11:09:42','2021-09-10 11:09:42'),(22,'statistics','数据统计路由占用',0,'2021-09-10 11:10:06','2021-09-10 11:10:06'),(23,'organizes','组织路由占用',0,'2021-09-10 11:10:25','2021-09-10 11:10:25'),(24,'info','用户路由占用',0,'2021-09-10 11:10:56','2021-09-10 11:10:56'),(25,'following','平台路由占用',0,'2021-09-10 11:11:22','2021-09-10 11:11:22'),(26,'followers','平台路由占用',0,'2021-09-10 11:11:40','2021-09-10 11:11:40'),(27,'password','密码路由占用',0,'2021-09-10 11:11:55','2021-09-10 11:11:55'),(28,'home','平台首页路由',0,'2021-10-29 02:45:27','2021-10-29 02:45:27'),(29,'softbot','',0,'2023-06-02 12:53:25','2023-06-02 12:53:25'),(30,'glcc','',0,'2023-06-02 12:53:33','2023-06-02 12:53:33'),(31,'zone','',0,'2023-06-02 12:53:59','2023-06-02 12:53:59'),(32,'开源发展委员会','',0,'2023-07-10 09:30:24','2023-07-10 09:30:24');
/*!40000 ALTER TABLE `reversed_keywords` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reviews`
--
DROP TABLE IF EXISTS `reviews`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `reviews` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`reviewer_id` bigint(20) DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci,
`commit_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`pull_request_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_reviews_on_reviewer_id` (`reviewer_id`) USING BTREE,
KEY `index_reviews_on_pull_request_id` (`pull_request_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reviews`
--
LOCK TABLES `reviews` WRITE;
/*!40000 ALTER TABLE `reviews` DISABLE KEYS */;
/*!40000 ALTER TABLE `reviews` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `roles`
--
DROP TABLE IF EXISTS `roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL DEFAULT '',
`position` int(11) DEFAULT '1',
`assignable` tinyint(1) DEFAULT '1',
`builtin` int(11) NOT NULL DEFAULT '0',
`permissions` text,
`issues_visibility` varchar(30) NOT NULL DEFAULT 'default',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `roles`
--
LOCK TABLES `roles` WRITE;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
INSERT INTO `roles` VALUES (1,'Non member',1,1,1,'---\n- :upload_attachments\n- :memos_attachments_download\n- :add_project\n- :projects_attachments_download\n- :add_course\n- :course_attachments_download\n- :view_course_files\n- :add_messages\n- :delete_own_messages\n- :view_calendar\n- :view_documents\n- :view_files\n- :view_gantt\n- :view_issues\n- :save_queries\n- :comment_news\n- :browse_repository\n- :view_changesets\n- :view_time_entries\n- :view_wiki_pages\n- :view_wiki_edits\n','default'),(2,'Anonymous',2,1,2,'---\n- :memos_attachments_download\n- :view_course_files\n- :view_calendar\n- :view_documents\n- :view_files\n- :view_gantt\n- :view_issues\n- :browse_repository\n- :view_changesets\n- :view_time_entries\n- :view_wiki_pages\n- :view_wiki_edits\n','default'),(3,'Manager',3,1,0,'---\n- :add_project\n- :edit_project\n- :close_project\n- :select_project_modules\n- :manage_members\n- :manage_versions\n- :add_subprojects\n- :is_manager\n- :projects_attachments_download\n- :as_teacher\n- :add_course\n- :edit_course\n- :close_course\n- :select_course_modules\n- :view_course_journals_for_messages\n- :course_attachments_download\n- :view_course_files\n- :view_homework_attaches\n- :quote_project\n- :manage_boards\n- :add_messages\n- :edit_messages\n- :edit_own_messages\n- :delete_messages\n- :delete_own_messages\n- :view_calendar\n- :view_code_review\n- :add_code_review\n- :edit_code_review\n- :delete_code_review\n- :assign_code_review\n- :code_review_setting\n- :add_documents\n- :edit_documents\n- :delete_documents\n- :view_documents\n- :manage_files\n- :view_files\n- :view_gantt\n- :manage_categories\n- :view_issues\n- :add_issues\n- :edit_issues\n- :manage_issue_relations\n- :manage_subtasks\n- :set_issues_private\n- :set_own_issues_private\n- :add_issue_notes\n- :edit_issue_notes\n- :edit_own_issue_notes\n- :view_private_notes\n- :set_notes_private\n- :move_issues\n- :delete_issues\n- :manage_public_queries\n- :save_queries\n- :view_issue_watchers\n- :add_issue_watchers\n- :delete_issue_watchers\n- :manage_news\n- :comment_news\n- :manage_repository\n- :browse_repository\n- :view_changesets\n- :commit_access\n- :manage_related_issues\n- :log_time\n- :view_time_entries\n- :edit_time_entries\n- :edit_own_time_entries\n- :manage_project_activities\n- :manage_wiki\n- :rename_wiki_pages\n- :delete_wiki_pages\n- :view_wiki_pages\n- :export_wiki_pages\n- :view_wiki_edits\n- :edit_wiki_pages\n- :delete_wiki_pages_attachments\n- :protect_wiki_pages\n','all'),(4,'Developer',5,1,0,'---\n- :add_project\n- :manage_versions\n- :projects_attachments_download\n- :add_course\n- :edit_course\n- :close_course\n- :select_course_modules\n- :view_course_journals_for_messages\n- :course_attachments_download\n- :view_course_files\n- :view_homework_attaches\n- :paret_in_homework\n- :select_contest_modules\n- :quote_project\n- :contest_attachments_download\n- :manage_contestnotifications\n- :notificationcomment_contestnotifications\n- :manage_boards\n- :add_messages\n- :edit_own_messages\n- :delete_own_messages\n- :view_calendar\n- :manage_files\n- :view_files\n- :view_gantt\n- :manage_categories\n- :view_issues\n- :add_issues\n- :edit_issues\n- :manage_issue_relations\n- :manage_subtasks\n- :set_issues_private\n- :set_own_issues_private\n- :add_issue_notes\n- :edit_issue_notes\n- :edit_own_issue_notes\n- :view_private_notes\n- :set_notes_private\n- :move_issues\n- :delete_issues\n- :manage_public_queries\n- :save_queries\n- :view_issue_watchers\n- :add_issue_watchers\n- :delete_issue_watchers\n- :manage_repository\n- :browse_repository\n- :view_changesets\n- :commit_access\n- :manage_related_issues\n','all'),(5,'Reporter',4,1,0,'---\n- :add_project\n- :projects_attachments_download\n- :add_course\n- :edit_course\n- :close_course\n- :select_course_modules\n- :view_course_journals_for_messages\n- :course_attachments_download\n- :view_course_files\n- :view_homework_attaches\n- :manage_boards\n- :add_messages\n- :edit_own_messages\n- :delete_own_messages\n- :view_calendar\n- :view_code_review\n- :manage_files\n- :view_files\n- :view_gantt\n
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `run_code_messages`
--
DROP TABLE IF EXISTS `run_code_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `run_code_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`status` int(11) DEFAULT NULL,
`message` varchar(255) DEFAULT NULL,
`game_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_run_code_messages_on_game_id` (`game_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `run_code_messages`
--
LOCK TABLES `run_code_messages` WRITE;
/*!40000 ALTER TABLE `run_code_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `run_code_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `schema_migrations`
--
DROP TABLE IF EXISTS `schema_migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `schema_migrations` (
`version` varchar(255) NOT NULL,
UNIQUE KEY `unique_schema_migrations` (`version`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `schema_migrations`
--
LOCK TABLES `schema_migrations` WRITE;
/*!40000 ALTER TABLE `schema_migrations` DISABLE KEYS */;
/*!40000 ALTER TABLE `schema_migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `settings`
--
DROP TABLE IF EXISTS `settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `settings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`value` text,
`updated_on` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_settings_on_name` (`name`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `settings`
--
LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `shares`
--
DROP TABLE IF EXISTS `shares`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `shares` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created_on` date DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`share_type` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`project_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `shares`
--
LOCK TABLES `shares` WRITE;
/*!40000 ALTER TABLE `shares` DISABLE KEYS */;
/*!40000 ALTER TABLE `shares` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `shield_activities`
--
DROP TABLE IF EXISTS `shield_activities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `shield_activities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`container_type` varchar(255) DEFAULT NULL,
`container_id` int(11) DEFAULT NULL,
`shield_type` varchar(255) DEFAULT NULL,
`shield_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `shield_activities`
--
LOCK TABLES `shield_activities` WRITE;
/*!40000 ALTER TABLE `shield_activities` DISABLE KEYS */;
/*!40000 ALTER TABLE `shield_activities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `shield_wechat_messages`
--
DROP TABLE IF EXISTS `shield_wechat_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `shield_wechat_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`container_id` int(11) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`shield_id` int(11) DEFAULT NULL,
`shield_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `shield_wechat_messages`
--
LOCK TABLES `shield_wechat_messages` WRITE;
/*!40000 ALTER TABLE `shield_wechat_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `shield_wechat_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sites`
--
DROP TABLE IF EXISTS `sites`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sites` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT '中文名称',
`url` varchar(255) DEFAULT NULL COMMENT '具体链接',
`key` varchar(255) DEFAULT NULL COMMENT '标识',
`site_type` int(11) DEFAULT NULL COMMENT '分类,按照分类编排链接',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sites`
--
LOCK TABLES `sites` WRITE;
/*!40000 ALTER TABLE `sites` DISABLE KEYS */;
INSERT INTO `sites` VALUES (2,'新建项目','/projects/deposit/new','add_common',0,'2021-08-27 08:51:45','2023-12-12 02:37:32'),(3,'新建组织','/organize/new','add_r',0,'2021-08-27 08:51:45','2021-08-27 08:51:45'),(6,'通知','/users/current_user/user_messages','notice',2,'2021-08-27 08:51:45','2021-08-27 08:51:45'),(7,'找回密码','/account/lost_password','lost_password',2,'2021-08-27 08:51:45','2021-08-27 08:51:45'),(8,'注册','/login?login=false','register',2,'2021-08-27 08:51:45','2021-08-27 08:51:45'),(9,'Wiki','http://172.20.32.202:8000','wiki',2,'2023-12-05 01:39:29','2023-12-05 01:39:29'),(10,'特色专区','http://172.20.32.202:8000','zone',2,'2023-12-08 01:06:16','2024-03-06 06:34:26'),(11,'个人主页','/current_user','my_page',2,'2023-12-12 02:38:02','2023-12-12 02:38:02'),(12,'设置','/settings/profile','setting',1,'2023-12-12 08:49:52','2023-12-12 08:49:52'),(13,'softbot','http://172.20.32.202:4099','softbot',2,'2023-12-13 06:19:45','2024-06-19 07:12:05'),(14,'gateway','http://172.20.32.202:8000','gateway',2,'2024-06-19 07:13:14','2024-06-19 07:39:59'),(15,'区块链确权','http://172.20.32.202:3023/gitlink/fiscobcos','blockchain',2,'2024-06-21 06:54:54','2024-06-21 06:54:54');
/*!40000 ALTER TABLE `sites` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sites2`
--
DROP TABLE IF EXISTS `sites2`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sites2` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT '中文名称',
`url` varchar(255) DEFAULT NULL COMMENT '具体链接',
`key` varchar(255) DEFAULT NULL COMMENT '标识',
`site_type` int(11) DEFAULT NULL COMMENT '分类,按照分类编排链接',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sites2`
--
LOCK TABLES `sites2` WRITE;
/*!40000 ALTER TABLE `sites2` DISABLE KEYS */;
/*!40000 ALTER TABLE `sites2` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `softapplications`
--
DROP TABLE IF EXISTS `softapplications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `softapplications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` text,
`app_type_id` int(11) DEFAULT NULL,
`app_type_name` varchar(255) DEFAULT NULL,
`android_min_version_available` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`contest_id` int(11) DEFAULT NULL,
`softapplication_id` int(11) DEFAULT NULL,
`is_public` int(11) DEFAULT NULL,
`application_developers` varchar(255) DEFAULT NULL,
`deposit_project_url` varchar(255) DEFAULT NULL,
`deposit_project` varchar(255) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `softapplications`
--
LOCK TABLES `softapplications` WRITE;
/*!40000 ALTER TABLE `softapplications` DISABLE KEYS */;
/*!40000 ALTER TABLE `softapplications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sonar_errors`
--
DROP TABLE IF EXISTS `sonar_errors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sonar_errors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) DEFAULT NULL,
`jenkins_job_name` varchar(255) DEFAULT NULL,
`output` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sonar_errors`
--
LOCK TABLES `sonar_errors` WRITE;
/*!40000 ALTER TABLE `sonar_errors` DISABLE KEYS */;
/*!40000 ALTER TABLE `sonar_errors` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ssos`
--
DROP TABLE IF EXISTS `ssos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `ssos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`sex` int(11) DEFAULT NULL,
`school` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_ssos_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ssos`
--
LOCK TABLES `ssos` WRITE;
/*!40000 ALTER TABLE `ssos` DISABLE KEYS */;
/*!40000 ALTER TABLE `ssos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `subject_members`
--
DROP TABLE IF EXISTS `subject_members`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `subject_members` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`subject_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`role` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`position` int(11) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_subject_members_on_subject_id` (`subject_id`) USING BTREE,
KEY `index_subject_members_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `subject_members`
--
LOCK TABLES `subject_members` WRITE;
/*!40000 ALTER TABLE `subject_members` DISABLE KEYS */;
/*!40000 ALTER TABLE `subject_members` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `subject_records`
--
DROP TABLE IF EXISTS `subject_records`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `subject_records` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`subject_id` bigint(20) DEFAULT NULL,
`study_count` int(11) DEFAULT '0',
`course_study_count` int(11) DEFAULT '0',
`initiative_study` int(11) DEFAULT '0',
`passed_count` int(11) DEFAULT '0',
`course_used_count` int(11) DEFAULT '0',
`school_used_count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_subject_records_on_subject_id` (`subject_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `subject_records`
--
LOCK TABLES `subject_records` WRITE;
/*!40000 ALTER TABLE `subject_records` DISABLE KEYS */;
/*!40000 ALTER TABLE `subject_records` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `subjects`
--
DROP TABLE IF EXISTS `subjects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `subjects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` text,
`user_id` int(11) DEFAULT NULL,
`visits` int(11) DEFAULT '1',
`status` int(11) DEFAULT '0',
`course_list_id` int(11) DEFAULT NULL,
`major_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`hidden` tinyint(1) DEFAULT '0',
`learning_notes` text,
`introduction` varchar(255) DEFAULT NULL,
`stages_count` int(11) DEFAULT '0',
`stage_shixuns_count` int(11) DEFAULT '0',
`homepage_show` tinyint(1) DEFAULT '0',
`repertoire_id` int(11) DEFAULT NULL,
`score_count` int(11) DEFAULT NULL,
`shixuns_count` int(11) DEFAULT '0',
`publish_time` datetime DEFAULT NULL,
`subject_level_system_id` int(11) DEFAULT NULL,
`student_count` int(11) DEFAULT '0',
`participant_count` int(11) DEFAULT '0',
`team_title` varchar(255) DEFAULT '教学团队',
`copy_subject_id` int(11) DEFAULT NULL,
`public` int(11) DEFAULT '0',
`show_mobile` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_subjects_on_user_id` (`user_id`) USING BTREE,
KEY `index_subjects_on_course_list_id` (`course_list_id`) USING BTREE,
KEY `index_subjects_on_major_id` (`major_id`) USING BTREE,
KEY `index_subjects_on_subject_level_system_id` (`subject_level_system_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `subjects`
--
LOCK TABLES `subjects` WRITE;
/*!40000 ALTER TABLE `subjects` DISABLE KEYS */;
/*!40000 ALTER TABLE `subjects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sync_repositories`
--
DROP TABLE IF EXISTS `sync_repositories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sync_repositories` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`project_id` bigint(20) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`repo_name` varchar(255) DEFAULT NULL,
`external_repo_address` varchar(255) DEFAULT NULL,
`sync_granularity` int(11) DEFAULT NULL,
`sync_direction` int(11) DEFAULT NULL COMMENT '1表示从gitlink到外部2表示从外部到gitlink',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`external_token` varchar(255) DEFAULT NULL,
`webhook_gid` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_sync_repositories_on_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sync_repositories`
--
LOCK TABLES `sync_repositories` WRITE;
/*!40000 ALTER TABLE `sync_repositories` DISABLE KEYS */;
/*!40000 ALTER TABLE `sync_repositories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sync_repository_branches`
--
DROP TABLE IF EXISTS `sync_repository_branches`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `sync_repository_branches` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`sync_repository_id` bigint(20) DEFAULT NULL,
`gitlink_branch_name` varchar(255) DEFAULT NULL COMMENT 'gitlink分支',
`external_branch_name` varchar(255) DEFAULT NULL COMMENT '外部仓库分支',
`sync_time` datetime DEFAULT NULL,
`sync_status` int(11) DEFAULT '0',
`reposync_branch_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`enable` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_sync_repository_branches_on_sync_repository_id` (`sync_repository_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sync_repository_branches`
--
LOCK TABLES `sync_repository_branches` WRITE;
/*!40000 ALTER TABLE `sync_repository_branches` DISABLE KEYS */;
/*!40000 ALTER TABLE `sync_repository_branches` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `system_messages`
--
DROP TABLE IF EXISTS `system_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `system_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`content` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`description` text,
`subject` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `system_messages`
--
LOCK TABLES `system_messages` WRITE;
/*!40000 ALTER TABLE `system_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `system_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `system_notification_histories`
--
DROP TABLE IF EXISTS `system_notification_histories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `system_notification_histories` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`system_notification_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_system_notification_histories_on_system_notification_id` (`system_notification_id`) USING BTREE,
KEY `index_system_notification_histories_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `system_notification_histories`
--
LOCK TABLES `system_notification_histories` WRITE;
/*!40000 ALTER TABLE `system_notification_histories` DISABLE KEYS */;
/*!40000 ALTER TABLE `system_notification_histories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `system_notifications`
--
DROP TABLE IF EXISTS `system_notifications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `system_notifications` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`subject` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '标题',
`sub_subject` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '副标题',
`content` text COLLATE utf8mb4_unicode_ci COMMENT '正文',
`is_top` tinyint(1) DEFAULT NULL COMMENT '是否置顶',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `system_notifications`
--
LOCK TABLES `system_notifications` WRITE;
/*!40000 ALTER TABLE `system_notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `system_notifications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `system_update_notices`
--
DROP TABLE IF EXISTS `system_update_notices`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `system_update_notices` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`subject` varchar(255) DEFAULT NULL,
`notes` text,
`start_time` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`notice_type` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `system_update_notices`
--
LOCK TABLES `system_update_notices` WRITE;
/*!40000 ALTER TABLE `system_update_notices` DISABLE KEYS */;
/*!40000 ALTER TABLE `system_update_notices` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tag_discipline_containers`
--
DROP TABLE IF EXISTS `tag_discipline_containers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_discipline_containers` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`tag_discipline_id` bigint(20) DEFAULT NULL,
`container_id` int(11) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_tag_discipline_containers_on_tag_discipline_id` (`tag_discipline_id`) USING BTREE,
KEY `index_on_container` (`container_type`,`container_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tag_discipline_containers`
--
LOCK TABLES `tag_discipline_containers` WRITE;
/*!40000 ALTER TABLE `tag_discipline_containers` DISABLE KEYS */;
/*!40000 ALTER TABLE `tag_discipline_containers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tag_disciplines`
--
DROP TABLE IF EXISTS `tag_disciplines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_disciplines` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`sub_discipline_id` bigint(20) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`subject` tinyint(1) DEFAULT '1',
`shixun` tinyint(1) DEFAULT '1',
`question` tinyint(1) DEFAULT '1',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`user_id` int(11) DEFAULT NULL,
`position` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_tag_disciplines_on_sub_discipline_id` (`sub_discipline_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tag_disciplines`
--
LOCK TABLES `tag_disciplines` WRITE;
/*!40000 ALTER TABLE `tag_disciplines` DISABLE KEYS */;
/*!40000 ALTER TABLE `tag_disciplines` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tag_repertoires`
--
DROP TABLE IF EXISTS `tag_repertoires`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tag_repertoires` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`sub_repertoire_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tag_repertoires`
--
LOCK TABLES `tag_repertoires` WRITE;
/*!40000 ALTER TABLE `tag_repertoires` DISABLE KEYS */;
/*!40000 ALTER TABLE `tag_repertoires` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `taggings`
--
DROP TABLE IF EXISTS `taggings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `taggings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tag_id` int(11) DEFAULT NULL,
`taggable_id` int(11) DEFAULT NULL,
`taggable_type` varchar(255) DEFAULT NULL,
`tagger_id` int(11) DEFAULT NULL,
`tagger_type` varchar(255) DEFAULT NULL,
`context` varchar(128) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `taggings_idx` (`tag_id`,`taggable_id`,`taggable_type`,`context`,`tagger_id`,`tagger_type`) USING BTREE,
KEY `index_taggings_on_taggable_type` (`taggable_type`) USING BTREE,
KEY `index_taggings_on_taggable_id_and_taggable_type_and_context` (`taggable_id`,`taggable_type`,`context`) USING BTREE,
KEY `index_taggings_on_tag_id` (`tag_id`) USING BTREE,
KEY `index_taggings_on_taggable_id` (`taggable_id`) USING BTREE,
KEY `index_taggings_on_tagger_id` (`tagger_id`) USING BTREE,
KEY `index_taggings_on_context` (`context`) USING BTREE,
KEY `index_taggings_on_tagger_id_and_tagger_type` (`tagger_id`,`tagger_type`) USING BTREE,
KEY `taggings_idy` (`taggable_id`,`taggable_type`,`tagger_id`,`context`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `taggings`
--
LOCK TABLES `taggings` WRITE;
/*!40000 ALTER TABLE `taggings` DISABLE KEYS */;
/*!40000 ALTER TABLE `taggings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tags`
--
DROP TABLE IF EXISTS `tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`taggings_count` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tags`
--
LOCK TABLES `tags` WRITE;
/*!40000 ALTER TABLE `tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `tags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `teacher_course_groups`
--
DROP TABLE IF EXISTS `teacher_course_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `teacher_course_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`member_id` int(11) DEFAULT NULL,
`course_group_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`course_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`course_member_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_teacher_course_groups_on_course_group_id` (`course_group_id`) USING BTREE,
KEY `index_teacher_course_groups_on_user_id` (`user_id`) USING BTREE,
KEY `index_teacher_course_groups_on_course_id` (`course_id`) USING BTREE,
KEY `index_teacher_course_groups_on_course_member_id` (`course_member_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `teacher_course_groups`
--
LOCK TABLES `teacher_course_groups` WRITE;
/*!40000 ALTER TABLE `teacher_course_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `teacher_course_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `team_members`
--
DROP TABLE IF EXISTS `team_members`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `team_members` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`competition_team_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`role` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`competition_id` int(11) DEFAULT NULL,
`is_teacher` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_team_members_on_competition_team_id` (`competition_team_id`) USING BTREE,
KEY `index_team_members_on_user_id` (`user_id`) USING BTREE,
KEY `index_team_members_on_competition_id` (`competition_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `team_members`
--
LOCK TABLES `team_members` WRITE;
/*!40000 ALTER TABLE `team_members` DISABLE KEYS */;
/*!40000 ALTER TABLE `team_members` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `team_projects`
--
DROP TABLE IF EXISTS `team_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `team_projects` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`organization_id` bigint(20) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`team_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_team_projects_on_organization_id` (`organization_id`) USING BTREE,
KEY `index_team_projects_on_project_id` (`project_id`) USING BTREE,
KEY `index_team_projects_on_team_id` (`team_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=565 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `team_projects`
--
LOCK TABLES `team_projects` WRITE;
/*!40000 ALTER TABLE `team_projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `team_projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `team_units`
--
DROP TABLE IF EXISTS `team_units`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `team_units` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`organization_id` bigint(20) DEFAULT NULL,
`team_id` bigint(20) DEFAULT NULL,
`unit_type` int(11) DEFAULT NULL COMMENT '访问单元类型',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_team_units_on_organization_id` (`organization_id`) USING BTREE,
KEY `index_team_units_on_team_id` (`team_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1671 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `team_units`
--
LOCK TABLES `team_units` WRITE;
/*!40000 ALTER TABLE `team_units` DISABLE KEYS */;
/*!40000 ALTER TABLE `team_units` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `team_users`
--
DROP TABLE IF EXISTS `team_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `team_users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`organization_id` bigint(20) DEFAULT NULL,
`team_id` bigint(20) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_team_users_on_organization_id` (`organization_id`) USING BTREE,
KEY `index_team_users_on_team_id` (`team_id`) USING BTREE,
KEY `index_team_users_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=384 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `team_users`
--
LOCK TABLES `team_users` WRITE;
/*!40000 ALTER TABLE `team_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `team_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `teams`
--
DROP TABLE IF EXISTS `teams`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `teams` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`organization_id` bigint(20) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL COMMENT '团队名称',
`description` varchar(255) DEFAULT NULL COMMENT '团队描述',
`authorize` int(11) DEFAULT '0' COMMENT '团队权限',
`num_projects` int(11) DEFAULT '0' COMMENT '团队项目数量',
`num_users` int(11) DEFAULT '0' COMMENT '团队成员数量',
`includes_all_project` tinyint(1) DEFAULT '0' COMMENT '团队是否拥有所有项目',
`can_create_org_project` tinyint(1) DEFAULT '0' COMMENT '团队是否能创建项目',
`gtid` int(11) DEFAULT NULL COMMENT '团队在gitea里的id',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`nickname` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_teams_on_organization_id` (`organization_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=337 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `teams`
--
LOCK TABLES `teams` WRITE;
/*!40000 ALTER TABLE `teams` DISABLE KEYS */;
/*!40000 ALTER TABLE `teams` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `template_message_settings`
--
DROP TABLE IF EXISTS `template_message_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `template_message_settings` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`openning` tinyint(1) DEFAULT '1',
`notification_disabled` tinyint(1) DEFAULT '1',
`email_disabled` tinyint(1) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `template_message_settings`
--
LOCK TABLES `template_message_settings` WRITE;
/*!40000 ALTER TABLE `template_message_settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `template_message_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tidings`
--
DROP TABLE IF EXISTS `tidings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tidings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`trigger_user_id` int(11) DEFAULT NULL,
`container_id` int(11) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`parent_container_id` int(11) DEFAULT NULL,
`parent_container_type` varchar(255) DEFAULT NULL,
`belong_container_id` int(11) DEFAULT NULL,
`belong_container_type` varchar(255) DEFAULT NULL,
`status` int(11) DEFAULT '0',
`viewed` tinyint(1) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`tiding_type` varchar(255) DEFAULT NULL,
`extra` varchar(255) DEFAULT NULL,
`is_delete` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_tidings_on_user_id` (`user_id`) USING BTREE,
KEY `index_tidings_on_container_id` (`container_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tidings`
--
LOCK TABLES `tidings` WRITE;
/*!40000 ALTER TABLE `tidings` DISABLE KEYS */;
/*!40000 ALTER TABLE `tidings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `time_entries`
--
DROP TABLE IF EXISTS `time_entries`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `time_entries` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`issue_id` int(11) DEFAULT NULL,
`hours` float NOT NULL,
`comments` varchar(255) DEFAULT NULL,
`activity_id` int(11) NOT NULL,
`spent_on` date NOT NULL,
`tyear` int(11) NOT NULL,
`tmonth` int(11) NOT NULL,
`tweek` int(11) NOT NULL,
`created_on` datetime NOT NULL,
`updated_on` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `time_entries_project_id` (`project_id`) USING BTREE,
KEY `time_entries_issue_id` (`issue_id`) USING BTREE,
KEY `index_time_entries_on_activity_id` (`activity_id`) USING BTREE,
KEY `index_time_entries_on_user_id` (`user_id`) USING BTREE,
KEY `index_time_entries_on_created_on` (`created_on`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `time_entries`
--
LOCK TABLES `time_entries` WRITE;
/*!40000 ALTER TABLE `time_entries` DISABLE KEYS */;
/*!40000 ALTER TABLE `time_entries` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `timeable_visit_records`
--
DROP TABLE IF EXISTS `timeable_visit_records`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `timeable_visit_records` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`visits` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_timeable_visit_records_on_project_id` (`project_id`) USING BTREE,
KEY `index_timeable_visit_records_on_time` (`time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=845 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `timeable_visit_records`
--
LOCK TABLES `timeable_visit_records` WRITE;
/*!40000 ALTER TABLE `timeable_visit_records` DISABLE KEYS */;
/*!40000 ALTER TABLE `timeable_visit_records` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tokens`
--
DROP TABLE IF EXISTS `tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `tokens` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`action` varchar(30) NOT NULL DEFAULT '',
`value` varchar(40) NOT NULL DEFAULT '',
`created_on` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `tokens_value` (`value`) USING BTREE,
KEY `index_tokens_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=331 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tokens`
--
LOCK TABLES `tokens` WRITE;
/*!40000 ALTER TABLE `tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `tokens` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `topics`
--
DROP TABLE IF EXISTS `topics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `topics` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`uuid` int(11) DEFAULT NULL,
`url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`order_index` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `topics`
--
LOCK TABLES `topics` WRITE;
/*!40000 ALTER TABLE `topics` DISABLE KEYS */;
/*!40000 ALTER TABLE `topics` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `trace_users`
--
DROP TABLE IF EXISTS `trace_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `trace_users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`username` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`telnumber` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`token` text COLLATE utf8mb4_unicode_ci,
`expired_at` datetime DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_trace_users_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `trace_users`
--
LOCK TABLES `trace_users` WRITE;
/*!40000 ALTER TABLE `trace_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `trace_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `trackers`
--
DROP TABLE IF EXISTS `trackers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `trackers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL DEFAULT '',
`is_in_chlog` tinyint(1) NOT NULL DEFAULT '0',
`position` int(11) DEFAULT '1',
`is_in_roadmap` tinyint(1) NOT NULL DEFAULT '1',
`fields_bits` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `trackers`
--
LOCK TABLES `trackers` WRITE;
/*!40000 ALTER TABLE `trackers` DISABLE KEYS */;
INSERT INTO `trackers` VALUES (1,'缺陷',1,1,1,0),(2,'功能',1,2,1,0),(3,'支持',0,3,1,0),(4,'任务',0,4,1,0),(5,'周报',0,5,1,0);
/*!40000 ALTER TABLE `trackers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `transfer_bot`
--
DROP TABLE IF EXISTS `transfer_bot`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `transfer_bot` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`bot_id` int(11) NOT NULL COMMENT 'bot唯一标识',
`transfer_from_id` int(11) NOT NULL COMMENT '转让者唯一标识',
`transfer_to_id` int(11) NOT NULL COMMENT '接收者唯一标识',
`is_success` tinyint(4) NOT NULL COMMENT '0:转让失败1转让成功 2:待接收',
`transfer_time` datetime NOT NULL COMMENT '转让时间',
`create_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`from_login` varchar(255) NOT NULL,
`to_login` varchar(255) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `transfer_bot`
--
LOCK TABLES `transfer_bot` WRITE;
/*!40000 ALTER TABLE `transfer_bot` DISABLE KEYS */;
/*!40000 ALTER TABLE `transfer_bot` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `trustie_hackathons`
--
DROP TABLE IF EXISTS `trustie_hackathons`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `trustie_hackathons` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` text,
`trustie_hacks_count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `trustie_hackathons`
--
LOCK TABLES `trustie_hackathons` WRITE;
/*!40000 ALTER TABLE `trustie_hackathons` DISABLE KEYS */;
/*!40000 ALTER TABLE `trustie_hackathons` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `trustie_hacks`
--
DROP TABLE IF EXISTS `trustie_hacks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `trustie_hacks` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` text,
`user_id` bigint(20) DEFAULT NULL,
`hack_users_count` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`trustie_hackathon_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_trustie_hacks_on_user_id` (`user_id`) USING BTREE,
KEY `index_trustie_hacks_on_trustie_hackathon_id` (`trustie_hackathon_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `trustie_hacks`
--
LOCK TABLES `trustie_hacks` WRITE;
/*!40000 ALTER TABLE `trustie_hacks` DISABLE KEYS */;
/*!40000 ALTER TABLE `trustie_hacks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_actions`
--
DROP TABLE IF EXISTS `user_actions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_actions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`action_type` varchar(255) DEFAULT NULL,
`action_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`ip` varchar(255) DEFAULT NULL,
`data_bank` text,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_actions_on_ip` (`ip`) USING BTREE,
KEY `index_user_actions_on_user_id` (`user_id`) USING BTREE,
KEY `index_user_actions_on_action_type` (`action_type`) USING BTREE,
KEY `index_user_actions_on_action_id` (`action_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4558 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_actions`
--
LOCK TABLES `user_actions` WRITE;
/*!40000 ALTER TABLE `user_actions` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_actions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_activities`
--
DROP TABLE IF EXISTS `user_activities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_activities` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`act_type` varchar(255) DEFAULT NULL,
`act_id` int(11) DEFAULT NULL,
`container_type` varchar(255) DEFAULT NULL,
`container_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `user_act_index` (`act_id`,`act_type`,`container_id`,`created_at`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_activities`
--
LOCK TABLES `user_activities` WRITE;
/*!40000 ALTER TABLE `user_activities` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_activities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_agents`
--
DROP TABLE IF EXISTS `user_agents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_agents` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`agent_type` varchar(255) DEFAULT NULL,
`key` varchar(255) DEFAULT NULL,
`ip` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`register_status` int(11) DEFAULT '0',
`action_status` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_user_agents_on_ip` (`ip`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_agents`
--
LOCK TABLES `user_agents` WRITE;
/*!40000 ALTER TABLE `user_agents` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_agents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_clas`
--
DROP TABLE IF EXISTS `user_clas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_clas` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`cla_id` int(11) NOT NULL,
`real_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`state` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`sign_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_clas_on_user_id` (`user_id`) USING BTREE,
KEY `index_user_clas_on_cla_id` (`cla_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_clas`
--
LOCK TABLES `user_clas` WRITE;
/*!40000 ALTER TABLE `user_clas` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_clas` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_day_certifications`
--
DROP TABLE IF EXISTS `user_day_certifications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_day_certifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`status` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_day_certifications_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_day_certifications`
--
LOCK TABLES `user_day_certifications` WRITE;
/*!40000 ALTER TABLE `user_day_certifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_day_certifications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_extensions`
--
DROP TABLE IF EXISTS `user_extensions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_extensions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`birthday` date DEFAULT NULL,
`brief_introduction` varchar(255) DEFAULT NULL,
`gender` int(11) DEFAULT NULL,
`location` varchar(255) DEFAULT NULL,
`occupation` varchar(255) DEFAULT NULL,
`work_experience` int(11) DEFAULT NULL,
`zip_code` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`technical_title` varchar(255) DEFAULT NULL,
`identity` int(11) DEFAULT NULL,
`student_id` varchar(255) DEFAULT NULL,
`teacher_realname` varchar(255) DEFAULT NULL,
`student_realname` varchar(255) DEFAULT NULL,
`location_city` varchar(255) DEFAULT NULL,
`school_id` int(11) DEFAULT NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`department_id` int(11) DEFAULT NULL,
`province` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`custom_department` varchar(255) DEFAULT NULL,
`show_email` tinyint(1) DEFAULT '0',
`show_location` tinyint(1) DEFAULT '0',
`show_department` tinyint(1) DEFAULT '0',
`super_description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`show_super_description` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_extensions_on_user_id` (`user_id`) USING BTREE,
KEY `index_user_extensions_on_department_id` (`department_id`) USING BTREE,
KEY `index_user_extensions_on_school_id_and_user_id` (`school_id`,`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=314 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_extensions`
--
LOCK TABLES `user_extensions` WRITE;
/*!40000 ALTER TABLE `user_extensions` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_extensions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_feedback_messages`
--
DROP TABLE IF EXISTS `user_feedback_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_feedback_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`journals_for_message_id` int(11) DEFAULT NULL,
`journals_for_message_type` varchar(255) DEFAULT NULL,
`viewed` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_feedback_messages_on_user_id_and_created_at` (`user_id`,`created_at`) USING BTREE,
KEY `index_user_feedback_messages_on_journals_for_message_id` (`journals_for_message_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_feedback_messages`
--
LOCK TABLES `user_feedback_messages` WRITE;
/*!40000 ALTER TABLE `user_feedback_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_feedback_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_grades`
--
DROP TABLE IF EXISTS `user_grades`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_grades` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`project_id` int(11) NOT NULL,
`grade` float DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_grades_on_grade` (`grade`) USING BTREE,
KEY `index_user_grades_on_project_id` (`project_id`) USING BTREE,
KEY `index_user_grades_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_grades`
--
LOCK TABLES `user_grades` WRITE;
/*!40000 ALTER TABLE `user_grades` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_grades` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_hidden_modules`
--
DROP TABLE IF EXISTS `user_hidden_modules`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_hidden_modules` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`module_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_hidden_modules_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_hidden_modules`
--
LOCK TABLES `user_hidden_modules` WRITE;
/*!40000 ALTER TABLE `user_hidden_modules` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_hidden_modules` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_interests`
--
DROP TABLE IF EXISTS `user_interests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_interests` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`repertoire_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_interests_on_user_id` (`user_id`) USING BTREE,
KEY `index_user_interests_on_repertoire_id` (`repertoire_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_interests`
--
LOCK TABLES `user_interests` WRITE;
/*!40000 ALTER TABLE `user_interests` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_interests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_levels`
--
DROP TABLE IF EXISTS `user_levels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_levels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`level` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_levels`
--
LOCK TABLES `user_levels` WRITE;
/*!40000 ALTER TABLE `user_levels` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_levels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_nps`
--
DROP TABLE IF EXISTS `user_nps`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_nps` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`action_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`action_id` int(11) DEFAULT NULL,
`score` float DEFAULT NULL,
`memo` text COLLATE utf8mb4_unicode_ci,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_nps_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_nps`
--
LOCK TABLES `user_nps` WRITE;
/*!40000 ALTER TABLE `user_nps` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_nps` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_preferences`
--
DROP TABLE IF EXISTS `user_preferences`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_preferences` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`others` text,
`hide_mail` tinyint(1) DEFAULT '0',
`time_zone` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_preferences_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_preferences`
--
LOCK TABLES `user_preferences` WRITE;
/*!40000 ALTER TABLE `user_preferences` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_preferences` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_score_details`
--
DROP TABLE IF EXISTS `user_score_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_score_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`current_user_id` int(11) DEFAULT NULL,
`target_user_id` int(11) DEFAULT NULL,
`score_type` varchar(255) DEFAULT NULL,
`score_action` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`old_score` int(11) DEFAULT NULL,
`new_score` int(11) DEFAULT NULL,
`current_user_level` int(11) DEFAULT NULL,
`target_user_level` int(11) DEFAULT NULL,
`score_changeable_obj_id` int(11) DEFAULT NULL,
`score_changeable_obj_type` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_score_details`
--
LOCK TABLES `user_score_details` WRITE;
/*!40000 ALTER TABLE `user_score_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_score_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_scores`
--
DROP TABLE IF EXISTS `user_scores`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_scores` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`collaboration` int(11) DEFAULT NULL,
`influence` int(11) DEFAULT NULL,
`skill` int(11) DEFAULT NULL,
`active` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_scores`
--
LOCK TABLES `user_scores` WRITE;
/*!40000 ALTER TABLE `user_scores` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_scores` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_searches`
--
DROP TABLE IF EXISTS `user_searches`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_searches` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`search_type` int(11) DEFAULT NULL,
`subject` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_searches_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_searches`
--
LOCK TABLES `user_searches` WRITE;
/*!40000 ALTER TABLE `user_searches` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_searches` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_sources`
--
DROP TABLE IF EXISTS `user_sources`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_sources` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`uuid` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_user_sources_on_type_and_uuid` (`type`,`uuid`) USING BTREE,
KEY `index_user_sources_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_sources`
--
LOCK TABLES `user_sources` WRITE;
/*!40000 ALTER TABLE `user_sources` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_sources` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_statuses`
--
DROP TABLE IF EXISTS `user_statuses`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_statuses` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`changesets_count` int(11) DEFAULT NULL,
`watchers_count` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`grade` float DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_statuses_on_changesets_count` (`changesets_count`) USING BTREE,
KEY `index_user_statuses_on_watchers_count` (`watchers_count`) USING BTREE,
KEY `index_user_statuses_on_grade` (`grade`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_statuses`
--
LOCK TABLES `user_statuses` WRITE;
/*!40000 ALTER TABLE `user_statuses` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_statuses` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_system_notices`
--
DROP TABLE IF EXISTS `user_system_notices`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_system_notices` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`notice_type` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_system_notices_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_system_notices`
--
LOCK TABLES `user_system_notices` WRITE;
/*!40000 ALTER TABLE `user_system_notices` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_system_notices` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_template_message_settings`
--
DROP TABLE IF EXISTS `user_template_message_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_template_message_settings` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`notification_body` text COLLATE utf8mb4_unicode_ci,
`email_body` text COLLATE utf8mb4_unicode_ci,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_template_message_settings_on_user_id` (`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_template_message_settings`
--
LOCK TABLES `user_template_message_settings` WRITE;
/*!40000 ALTER TABLE `user_template_message_settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_template_message_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_trace_tasks`
--
DROP TABLE IF EXISTS `user_trace_tasks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_trace_tasks` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`project_id` bigint(20) DEFAULT NULL,
`branch_tag` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`task_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_user_trace_tasks_on_user_id` (`user_id`) USING BTREE,
KEY `index_user_trace_tasks_on_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_trace_tasks`
--
LOCK TABLES `user_trace_tasks` WRITE;
/*!40000 ALTER TABLE `user_trace_tasks` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_trace_tasks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_wechats`
--
DROP TABLE IF EXISTS `user_wechats`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user_wechats` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`subscribe` int(11) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL,
`nickname` varchar(255) DEFAULT NULL,
`sex` int(11) DEFAULT NULL,
`language` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`province` varchar(255) DEFAULT NULL,
`country` varchar(255) DEFAULT NULL,
`headimgurl` varchar(255) DEFAULT NULL,
`subscribe_time` varchar(255) DEFAULT NULL,
`unionid` varchar(255) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`groupid` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`bindtype` int(11) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_wechats`
--
LOCK TABLES `user_wechats` WRITE;
/*!40000 ALTER TABLE `user_wechats` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_wechats` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`login` varchar(255) NOT NULL DEFAULT '',
`hashed_password` varchar(40) NOT NULL DEFAULT '',
`firstname` varchar(30) NOT NULL DEFAULT '',
`lastname` varchar(255) NOT NULL DEFAULT '',
`mail` varchar(60) DEFAULT NULL,
`admin` tinyint(1) NOT NULL DEFAULT '0',
`status` int(11) NOT NULL DEFAULT '1',
`last_login_on` datetime DEFAULT NULL,
`language` varchar(5) DEFAULT '',
`auth_source_id` int(11) DEFAULT NULL,
`created_on` datetime DEFAULT NULL,
`updated_on` datetime DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`identity_url` varchar(255) DEFAULT NULL,
`mail_notification` varchar(255) NOT NULL DEFAULT '',
`salt` varchar(64) DEFAULT NULL,
`gid` int(11) DEFAULT NULL,
`visits` int(11) DEFAULT '0',
`excellent_teacher` int(11) DEFAULT '0',
`excellent_student` int(11) DEFAULT '0',
`phone` varchar(255) DEFAULT NULL,
`authentication` tinyint(1) DEFAULT '0',
`grade` int(11) DEFAULT '0',
`experience` int(11) DEFAULT '0',
`nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`show_realname` tinyint(1) DEFAULT '1',
`professional_certification` tinyint(1) DEFAULT '0',
`ID_number` varchar(255) DEFAULT NULL,
`certification` int(11) DEFAULT '0',
`homepage_teacher` tinyint(1) DEFAULT '0',
`homepage_engineer` tinyint(1) DEFAULT '0',
`is_test` tinyint(4) DEFAULT '0',
`ecoder_user_id` int(11) DEFAULT '0',
`business` tinyint(1) DEFAULT '0',
`profile_completed` tinyint(1) DEFAULT '0',
`laboratory_id` bigint(20) DEFAULT NULL,
`platform` varchar(255) DEFAULT '0',
`gitea_token` varchar(255) DEFAULT NULL,
`gitea_uid` int(11) DEFAULT NULL,
`is_shixun_marker` tinyint(1) DEFAULT '0',
`is_sync_pwd` tinyint(1) DEFAULT '1',
`watchers_count` int(11) DEFAULT '0',
`devops_step` int(11) DEFAULT '0' COMMENT '0: uninit devops; 1: unverified; 2: verified',
`sign_cla` tinyint(1) DEFAULT '0',
`enabling_cla` tinyint(1) DEFAULT '0',
`id_card_verify` tinyint(1) DEFAULT '0',
`website_permission` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `index_users_on_login` (`login`) USING BTREE,
KEY `index_users_on_homepage_engineer` (`homepage_engineer`) USING BTREE,
KEY `index_users_on_homepage_teacher` (`homepage_teacher`) USING BTREE,
KEY `index_users_on_ecoder_user_id` (`ecoder_user_id`) USING BTREE,
KEY `index_users_on_laboratory_id` (`laboratory_id`) USING BTREE,
KEY `index_users_on_mail` (`mail`) USING BTREE,
KEY `index_users_on_type` (`type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=36820 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'innov','04bc30e18c5584557afbc5dcdbf2dfa0dfee68a8','','','innov@forge.com',1,1,'2024-03-07 00:26:49','',NULL,'2023-12-18 02:56:16','2024-03-06 08:08:54','User',NULL,'','779d2a939bf852206c09b60ef588ea2f',NULL,0,0,0,'18777777266',0,0,0,'',1,0,NULL,0,0,0,0,0,0,0,NULL,'forge','56b3ecb5702f6275bcaf186a42ed4eafe828fce0',215,0,1,0,0,0,0,1,1),(2,'','','','Anonymous','358551897@qq.com',0,0,NULL,'',NULL,'2021-08-27 08:57:14','2021-08-27 08:57:14','AnonymousUser',NULL,'',NULL,NULL,0,0,0,'13333333333',0,0,0,NULL,1,0,NULL,0,0,0,0,0,0,0,NULL,'forge',NULL,NULL,0,1,0,0,0,0,0,0);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users_authentications`
--
DROP TABLE IF EXISTS `users_authentications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `users_authentications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`authentication_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users_authentications`
--
LOCK TABLES `users_authentications` WRITE;
/*!40000 ALTER TABLE `users_authentications` DISABLE KEYS */;
/*!40000 ALTER TABLE `users_authentications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `verification_codes`
--
DROP TABLE IF EXISTS `verification_codes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `verification_codes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(255) DEFAULT NULL,
`code_type` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`phone` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `by_phone` (`phone`) USING BTREE,
KEY `by_email` (`email`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `verification_codes`
--
LOCK TABLES `verification_codes` WRITE;
/*!40000 ALTER TABLE `verification_codes` DISABLE KEYS */;
/*!40000 ALTER TABLE `verification_codes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `version_releases`
--
DROP TABLE IF EXISTS `version_releases`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `version_releases` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`name` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`tag_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`target_commitish` varchar(255) DEFAULT NULL,
`draft` tinyint(1) DEFAULT '0',
`prerelease` tinyint(1) DEFAULT '0',
`tarball_url` varchar(255) DEFAULT NULL,
`zipball_url` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`version_gid` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`repository_id` int(11) DEFAULT NULL,
`sha` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_version_releases_on_repository_id` (`repository_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `version_releases`
--
LOCK TABLES `version_releases` WRITE;
/*!40000 ALTER TABLE `version_releases` DISABLE KEYS */;
/*!40000 ALTER TABLE `version_releases` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `versions`
--
DROP TABLE IF EXISTS `versions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `versions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL DEFAULT '0',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
`effective_date` date DEFAULT NULL,
`created_on` datetime DEFAULT NULL,
`updated_on` datetime DEFAULT NULL,
`wiki_page_title` varchar(255) DEFAULT NULL,
`status` varchar(255) DEFAULT 'open',
`sharing` varchar(255) NOT NULL DEFAULT 'none',
`user_id` int(11) DEFAULT NULL,
`issues_count` int(11) DEFAULT '0',
`closed_issues_count` int(11) DEFAULT '0',
`percent` float DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE,
KEY `versions_project_id` (`project_id`) USING BTREE,
KEY `index_versions_on_sharing` (`sharing`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `versions`
--
LOCK TABLES `versions` WRITE;
/*!40000 ALTER TABLE `versions` DISABLE KEYS */;
/*!40000 ALTER TABLE `versions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `visitors`
--
DROP TABLE IF EXISTS `visitors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `visitors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`master_id` int(11) DEFAULT NULL,
`updated_on` datetime DEFAULT NULL,
`created_on` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_visitors_user_id` (`user_id`) USING BTREE,
KEY `index_visitors_master_id` (`master_id`) USING BTREE,
KEY `index_visitors_updated_on` (`updated_on`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `visitors`
--
LOCK TABLES `visitors` WRITE;
/*!40000 ALTER TABLE `visitors` DISABLE KEYS */;
/*!40000 ALTER TABLE `visitors` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `watchers`
--
DROP TABLE IF EXISTS `watchers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `watchers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`watchable_type` varchar(255) NOT NULL DEFAULT '',
`watchable_id` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `watchers_user_id_type` (`user_id`,`watchable_type`) USING BTREE,
KEY `index_watchers_on_user_id` (`user_id`) USING BTREE,
KEY `index_watchers_on_watchable_id_and_watchable_type` (`watchable_id`,`watchable_type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `watchers`
--
LOCK TABLES `watchers` WRITE;
/*!40000 ALTER TABLE `watchers` DISABLE KEYS */;
/*!40000 ALTER TABLE `watchers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `weapp_settings`
--
DROP TABLE IF EXISTS `weapp_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `weapp_settings` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`type` varchar(255) DEFAULT NULL,
`link` varchar(255) DEFAULT NULL,
`online` tinyint(1) DEFAULT '0',
`position` int(11) DEFAULT '0',
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `weapp_settings`
--
LOCK TABLES `weapp_settings` WRITE;
/*!40000 ALTER TABLE `weapp_settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `weapp_settings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `web_footer_companies`
--
DROP TABLE IF EXISTS `web_footer_companies`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `web_footer_companies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`logo_size` varchar(255) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `web_footer_companies`
--
LOCK TABLES `web_footer_companies` WRITE;
/*!40000 ALTER TABLE `web_footer_companies` DISABLE KEYS */;
/*!40000 ALTER TABLE `web_footer_companies` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `web_footer_oranizers`
--
DROP TABLE IF EXISTS `web_footer_oranizers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `web_footer_oranizers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`description` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `web_footer_oranizers`
--
LOCK TABLES `web_footer_oranizers` WRITE;
/*!40000 ALTER TABLE `web_footer_oranizers` DISABLE KEYS */;
/*!40000 ALTER TABLE `web_footer_oranizers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `websshes`
--
DROP TABLE IF EXISTS `websshes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `websshes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`myshixun_id` int(11) DEFAULT NULL,
`host` varchar(255) DEFAULT NULL,
`port` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `websshes`
--
LOCK TABLES `websshes` WRITE;
/*!40000 ALTER TABLE `websshes` DISABLE KEYS */;
/*!40000 ALTER TABLE `websshes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `wechat_logs`
--
DROP TABLE IF EXISTS `wechat_logs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `wechat_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`openid` varchar(255) NOT NULL,
`request_raw` text,
`response_raw` text,
`session_raw` text,
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_wechat_logs_on_openid` (`openid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `wechat_logs`
--
LOCK TABLES `wechat_logs` WRITE;
/*!40000 ALTER TABLE `wechat_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `wechat_logs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `wiki_content_versions`
--
DROP TABLE IF EXISTS `wiki_content_versions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `wiki_content_versions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`wiki_content_id` int(11) NOT NULL,
`page_id` int(11) NOT NULL,
`author_id` int(11) DEFAULT NULL,
`data` longblob,
`compression` varchar(6) DEFAULT '',
`comments` varchar(255) DEFAULT '',
`updated_on` datetime NOT NULL,
`version` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `wiki_content_versions_wcid` (`wiki_content_id`) USING BTREE,
KEY `index_wiki_content_versions_on_updated_on` (`updated_on`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `wiki_content_versions`
--
LOCK TABLES `wiki_content_versions` WRITE;
/*!40000 ALTER TABLE `wiki_content_versions` DISABLE KEYS */;
/*!40000 ALTER TABLE `wiki_content_versions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `wiki_contents`
--
DROP TABLE IF EXISTS `wiki_contents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `wiki_contents` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`page_id` int(11) NOT NULL,
`author_id` int(11) DEFAULT NULL,
`text` longtext,
`comments` varchar(255) DEFAULT '',
`updated_on` datetime NOT NULL,
`version` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `wiki_contents_page_id` (`page_id`) USING BTREE,
KEY `index_wiki_contents_on_author_id` (`author_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `wiki_contents`
--
LOCK TABLES `wiki_contents` WRITE;
/*!40000 ALTER TABLE `wiki_contents` DISABLE KEYS */;
/*!40000 ALTER TABLE `wiki_contents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `wiki_pages`
--
DROP TABLE IF EXISTS `wiki_pages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `wiki_pages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`wiki_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`created_on` datetime NOT NULL,
`protected` tinyint(1) NOT NULL DEFAULT '0',
`parent_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `wiki_pages_wiki_id_title` (`wiki_id`,`title`) USING BTREE,
KEY `index_wiki_pages_on_wiki_id` (`wiki_id`) USING BTREE,
KEY `index_wiki_pages_on_parent_id` (`parent_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `wiki_pages`
--
LOCK TABLES `wiki_pages` WRITE;
/*!40000 ALTER TABLE `wiki_pages` DISABLE KEYS */;
/*!40000 ALTER TABLE `wiki_pages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `wiki_redirects`
--
DROP TABLE IF EXISTS `wiki_redirects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `wiki_redirects` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`wiki_id` int(11) NOT NULL,
`title` varchar(255) DEFAULT NULL,
`redirects_to` varchar(255) DEFAULT NULL,
`created_on` datetime NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `wiki_redirects_wiki_id_title` (`wiki_id`,`title`) USING BTREE,
KEY `index_wiki_redirects_on_wiki_id` (`wiki_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `wiki_redirects`
--
LOCK TABLES `wiki_redirects` WRITE;
/*!40000 ALTER TABLE `wiki_redirects` DISABLE KEYS */;
/*!40000 ALTER TABLE `wiki_redirects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `wikis`
--
DROP TABLE IF EXISTS `wikis`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `wikis` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`start_page` varchar(255) NOT NULL,
`status` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`) USING BTREE,
KEY `wikis_project_id` (`project_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `wikis`
--
LOCK TABLES `wikis` WRITE;
/*!40000 ALTER TABLE `wikis` DISABLE KEYS */;
/*!40000 ALTER TABLE `wikis` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `zip_packs`
--
DROP TABLE IF EXISTS `zip_packs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `zip_packs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`homework_id` int(11) DEFAULT NULL,
`file_digest` varchar(255) DEFAULT NULL,
`file_path` varchar(255) DEFAULT NULL,
`pack_times` int(11) DEFAULT '1',
`pack_size` float DEFAULT '0',
`file_digests` text,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`container_id` int(11) DEFAULT '0',
`container_type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `index_zip_packs_on_container_id_and_container_type` (`container_id`,`container_type`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `zip_packs`
--
LOCK TABLES `zip_packs` WRITE;
/*!40000 ALTER TABLE `zip_packs` DISABLE KEYS */;
/*!40000 ALTER TABLE `zip_packs` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2024-06-28 10:23:59