加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tp-script-vue-curd-testdb.sql 12.72 KB
一键复制 编辑 原始数据 按行查看 历史
tjztjspz 提交于 2022-01-14 11:05 . 添加了3个模板示例
/*
Navicat Premium Data Transfer
Source Server : 127.0.0.1
Source Server Type : MySQL
Source Server Version : 50714
Source Host : localhost:3306
Source Schema : tp-script-vue-curd-testdb
Target Server Type : MySQL
Target Server Version : 50714
File Encoding : 65001
Date: 14/01/2022 11:04:40
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for pets
-- ----------------------------
DROP TABLE IF EXISTS `pets`;
CREATE TABLE `pets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '昵称',
`type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '类型',
`test` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '测试',
`base_id` int(11) NOT NULL DEFAULT 0 COMMENT '父表ID',
`create_time` int(10) NOT NULL DEFAULT 0 COMMENT '创建时间',
`create_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '创建人',
`update_time` int(10) NOT NULL DEFAULT 0 COMMENT '更新时间',
`delete_time` int(10) NOT NULL DEFAULT 0 COMMENT '删除时间',
`delete_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '删除人',
`update_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '修改人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '宠物' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of pets
-- ----------------------------
INSERT INTO `pets` VALUES (1, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (2, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (3, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (4, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (5, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (6, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (7, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (8, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (9, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (10, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (11, '1', '猫', '', 0, 1633675296, 0, 1633675296, 0, 0, 0);
INSERT INTO `pets` VALUES (12, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (13, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (14, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (15, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (16, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (17, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (18, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (19, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (20, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (21, '1', '猫', '', 0, 1633675296, 0, 1633678247, 1633678247, 0, 0);
INSERT INTO `pets` VALUES (22, '1', '猫', '<p>1</p>', 2, 1634277869, 0, 1634277869, 0, 0, 0);
-- ----------------------------
-- Table structure for project
-- ----------------------------
DROP TABLE IF EXISTS `project`;
CREATE TABLE `project` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '项目名称',
`type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '项目类型',
`start_time` bigint(10) NOT NULL DEFAULT 0 COMMENT '项目开始时间',
`end_time` bigint(10) NOT NULL DEFAULT 0 COMMENT '项目结束时间',
`check_status` int(11) NOT NULL DEFAULT 0 COMMENT '审核结果',
`check_remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '备注',
`step` json NOT NULL COMMENT '步骤',
`next_step` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '下一步',
`current_step` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '当前步骤',
`step_pasts` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '已走步骤',
`create_time` int(10) NOT NULL DEFAULT 0 COMMENT '创建时间',
`create_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '创建人',
`update_time` int(10) NOT NULL DEFAULT 0 COMMENT '更新时间',
`delete_time` int(10) NOT NULL DEFAULT 0 COMMENT '删除时间',
`delete_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '删除人',
`update_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '修改人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of project
-- ----------------------------
INSERT INTO `project` VALUES (1, '4', 'A类项目', 1632153600, 1632153600, 1, '1', '[{\"back\": 0, \"step\": \"input\", \"time\": 1632186221, \"user\": 1}, {\"back\": 0, \"step\": \"check\", \"time\": 1632186227, \"user\": 1}, {\"back\": 0, \"step\": \"withdrawal\", \"time\": 1632186422, \"user\": 1}]', 'input', 'withdrawal', 'input,check,withdrawal', 1632186221, 0, 1633924790, 1633924790, 0, 0);
INSERT INTO `project` VALUES (2, '测试a', 'A类项目', 1632153600, 1632153600, 2, '测试', '[{\"back\": 0, \"step\": \"input\", \"time\": 1632195910, \"user\": 1}, {\"back\": 0, \"step\": \"check\", \"time\": 1632195922, \"user\": 1}, {\"back\": 0, \"step\": \"withdrawal\", \"time\": 1632195926, \"user\": 1}, {\"back\": 2, \"step\": \"input\", \"time\": 1632195931, \"user\": 1}, {\"back\": 0, \"step\": \"check\", \"time\": 1632195936, \"user\": 1}, {\"back\": 0, \"step\": \"withdrawal\", \"time\": 1632195940, \"user\": 1}, {\"back\": 2, \"step\": \"input\", \"time\": 1632647646, \"user\": 1}, {\"back\": 0, \"step\": \"check\", \"time\": 1632647650, \"user\": 1}, {\"back\": 0, \"step\": \"withdrawal\", \"time\": 1632647652, \"user\": 1}, {\"back\": 2, \"step\": \"input\", \"time\": 1632647680, \"user\": 1}, {\"back\": 0, \"step\": \"check\", \"time\": 1632647682, \"user\": 1}, {\"back\": 0, \"step\": \"withdrawal\", \"time\": 1632647685, \"user\": 1}, {\"back\": 2, \"step\": \"input\", \"time\": 1642124319, \"user\": 1}]', 'check', 'input', 'input', 1632195910, 0, 1642124319, 0, 0, 0);
INSERT INTO `project` VALUES (3, '测试', 'A类项目', 1632585600, 1632585600, 2, '测试', '[{\"back\": 0, \"step\": \"input\", \"time\": 1632648238, \"user\": 1}, {\"back\": 0, \"step\": \"check\", \"time\": 1632648246, \"user\": 1}, {\"back\": 0, \"step\": \"withdrawal\", \"time\": 1632648257, \"user\": 1}, {\"back\": 2, \"step\": \"input\", \"time\": 1632648259, \"user\": 1}]', 'check', 'input', 'input', 1632648238, 0, 1633924737, 0, 0, 0);
INSERT INTO `project` VALUES (4, '测试2', 'B类项目', 1633881600, 1633881600, 0, '', '[{\"back\": 0, \"step\": \"input\", \"time\": 1633924750, \"user\": 1}]', 'check', 'input', 'input', 1633924750, 0, 1633924786, 0, 0, 0);
INSERT INTO `project` VALUES (5, '测试3', 'A类项目', 1633881600, 1633881600, 0, '', '[{\"back\": 0, \"step\": \"input\", \"time\": 1633931268, \"user\": 1}]', 'check', 'input', 'input', 1633931268, 0, 1633931268, 0, 0, 0);
INSERT INTO `project` VALUES (6, '测试4', 'A类项目', 1633881600, 1633881600, 0, '', '[{\"back\": 0, \"step\": \"input\", \"time\": 1633931287, \"user\": 1}]', 'check', 'input', 'input', 1633931287, 0, 1633931287, 0, 0, 0);
-- ----------------------------
-- Table structure for tpl_data
-- ----------------------------
DROP TABLE IF EXISTS `tpl_data`;
CREATE TABLE `tpl_data` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
`type` int(11) NOT NULL DEFAULT 0 COMMENT '类型',
`create_time` bigint(10) NOT NULL DEFAULT 0 COMMENT '创建时间',
`create_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '创建人',
`update_time` bigint(10) NOT NULL DEFAULT 0 COMMENT '更新时间',
`delete_time` bigint(10) NOT NULL DEFAULT 0 COMMENT '删除时间',
`delete_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '删除人',
`update_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '修改人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '更改列表中字段的显示样式' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tpl_data
-- ----------------------------
INSERT INTO `tpl_data` VALUES (1, '测试1', 2, 1642126296, 0, 1642126296, 0, 0, 0);
-- ----------------------------
-- Table structure for tree
-- ----------------------------
DROP TABLE IF EXISTS `tree`;
CREATE TABLE `tree` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pid` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '上级',
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '标题',
`create_time` bigint(10) NOT NULL DEFAULT 0 COMMENT '创建时间',
`create_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '创建人',
`update_time` bigint(10) NOT NULL DEFAULT 0 COMMENT '更新时间',
`delete_time` bigint(10) NOT NULL DEFAULT 0 COMMENT '删除时间',
`delete_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '删除人',
`update_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '修改人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '树形表格' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tree
-- ----------------------------
INSERT INTO `tree` VALUES (1, '0', '第一级A', 1642060687, 0, 1642060687, 0, 0, 0);
INSERT INTO `tree` VALUES (2, '0', '第一级B', 1642060879, 0, 1642060879, 0, 0, 0);
INSERT INTO `tree` VALUES (3, '1', '第二级A1', 1642061940, 0, 1642061940, 0, 0, 0);
INSERT INTO `tree` VALUES (4, '2', '第二级B1', 1642064027, 0, 1642064027, 0, 0, 0);
INSERT INTO `tree` VALUES (5, '1', '第二级A2', 1642064108, 0, 1642064108, 0, 0, 0);
INSERT INTO `tree` VALUES (6, '2', '第二级B2', 1642064129, 0, 1642064129, 0, 0, 0);
INSERT INTO `tree` VALUES (7, '2', '第二级B3', 1642064155, 0, 1642064155, 0, 0, 0);
INSERT INTO `tree` VALUES (8, '6', '第三级B2001', 1642064190, 0, 1642064190, 0, 0, 0);
INSERT INTO `tree` VALUES (9, '6', '第三级B2002', 1642064229, 0, 1642064229, 0, 0, 0);
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '姓名',
`sex` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '性别',
`date` bigint(10) NOT NULL DEFAULT 0 COMMENT '出生日期',
`address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '住址',
`area_id` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '树形选择器',
`test` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '测试树选择器',
`create_time` int(10) NOT NULL DEFAULT 0 COMMENT '创建时间',
`create_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '创建人',
`update_time` int(10) NOT NULL DEFAULT 0 COMMENT '更新时间',
`delete_time` int(10) NOT NULL DEFAULT 0 COMMENT '删除时间',
`delete_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '删除人',
`update_system_admin_id` int(11) NOT NULL DEFAULT 0 COMMENT '修改人',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '人员信息' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (1, '1', '男', 1632153600, '1', '59', '60,62,286', 1632184915, 0, 1633671340, 1633671340, 0, 0);
INSERT INTO `user` VALUES (2, '2', '女', 1633622400, '4', '102', '', 1633665356, 0, 1633665670, 0, 0, 0);
SET FOREIGN_KEY_CHECKS = 1;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化