/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 100428 (10.4.28-MariaDB)
 Source Host           : localhost:3306
 Source Schema         : syncdb

 Target Server Type    : MySQL
 Target Server Version : 100428 (10.4.28-MariaDB)
 File Encoding         : 65001

 Date: 11/07/2025 18:38:32
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for cmdcontent
-- ----------------------------
DROP TABLE IF EXISTS `cmdcontent`;
CREATE TABLE `cmdcontent` (
  `userId` varchar(64) NOT NULL,
  `unid` varchar(64) NOT NULL,
  `content` text NOT NULL,
  `cTime` bigint(20) unsigned NOT NULL DEFAULT 0,
  `state` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`userId`,`unid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Table structure for cmdfolder
-- ----------------------------
DROP TABLE IF EXISTS `cmdfolder`;
CREATE TABLE `cmdfolder` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `unid` varchar(64) NOT NULL,
  `title` varchar(32) NOT NULL,
  `sType` int(11) NOT NULL,
  `parentId` varchar(64) NOT NULL,
  `userId` varchar(64) NOT NULL,
  `cTime` bigint(20) unsigned NOT NULL DEFAULT 0,
  `state` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`,`unid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Table structure for opsystem
-- ----------------------------
DROP TABLE IF EXISTS `opsystem`;
CREATE TABLE `opsystem` (
  `unid` varchar(64) NOT NULL,
  `userId` varchar(64) NOT NULL,
  `title` varchar(64) NOT NULL,
  `url` varchar(1024) NOT NULL,
  `summary` varchar(255) DEFAULT NULL,
  `account` varchar(64) DEFAULT NULL,
  `pwd` varchar(64) DEFAULT NULL,
  `cTime` bigint(20) NOT NULL,
  `state` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`unid`,`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

-- ----------------------------
-- Table structure for serverconfig
-- ----------------------------
DROP TABLE IF EXISTS `serverconfig`;
CREATE TABLE `serverconfig` (
  `userId` varchar(64) NOT NULL,
  `unid` varchar(64) NOT NULL,
  `title` varchar(32) NOT NULL,
  `host` varchar(30) NOT NULL,
  `port` int(11) NOT NULL,
  `desc` varchar(255) DEFAULT NULL,
  `account` varchar(50) DEFAULT NULL,
  `pwd` varchar(255) DEFAULT NULL,
  `cTime` bigint(20) unsigned NOT NULL DEFAULT 0,
  `state` int(11) NOT NULL DEFAULT 0,
  `sType` int(11) NOT NULL DEFAULT 0,
  `authType` int(11) NOT NULL DEFAULT 0,
  `priKey` varchar(5120) DEFAULT NULL,
  PRIMARY KEY (`userId`,`unid`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Table structure for serverfolder
-- ----------------------------
DROP TABLE IF EXISTS `serverfolder`;
CREATE TABLE `serverfolder` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `unid` varchar(64) NOT NULL,
  `title` varchar(32) NOT NULL,
  `sType` int(11) NOT NULL,
  `parentId` varchar(64) DEFAULT NULL,
  `userId` varchar(255) NOT NULL,
  `cTime` bigint(20) unsigned NOT NULL DEFAULT 0,
  `state` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`,`unid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=346 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

SET FOREIGN_KEY_CHECKS = 1;
