/*
 Navicat Premium Data Transfer

 Source Server         : ryx
 Source Server Type    : MariaDB
 Source Server Version : 100510
 Source Host           : localhost:3307
 Source Schema         : c5_labsci

 Target Server Type    : MariaDB
 Target Server Version : 100510
 File Encoding         : 65001

 Date: 26/01/2026 19:06:30
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for ap_art_post
-- ----------------------------
DROP TABLE IF EXISTS `ap_art_post`;
CREATE TABLE `ap_art_post`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sectionid` int(11) NOT NULL COMMENT '|版块|,DB,ap_art_section',
  `artstatus` int(11) NOT NULL COMMENT '|文章状态|,CATA,artstatus',
  `artsort` int(11) NOT NULL COMMENT '|推荐排序|,CATA,artsort',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文章标题',
  `source` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '来源',
  `author` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '作者',
  `studycnt` int(11) NOT NULL DEFAULT 0 COMMENT '精读数|',
  `readcnt` int(11) NOT NULL COMMENT '阅读数|',
  `avmp` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '音视频,AV',
  `img` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '缩略图,IMG1',
  `descs` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',摘要,BR',
  `inputuser` int(11) NOT NULL COMMENT '撰写人,CATA,adminuser',
  `audituser` int(11) NOT NULL DEFAULT 0 COMMENT '审核人,CATA,adminuser',
  `pubtimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '发布时间,DATE',
  `content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',内容,MD',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `ossa`(`sectionid`, `artstatus`, `artsort`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '版块文章表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_art_section
-- ----------------------------
DROP TABLE IF EXISTS `ap_art_section`;
CREATE TABLE `ap_art_section`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '|ID|',
  `ngroup` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '分组名',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '版块名称',
  `auditcnt` int(11) NOT NULL DEFAULT 0 COMMENT '待审数|',
  `artcnt` int(11) NOT NULL DEFAULT 0 COMMENT '文章数|',
  `adminuser` int(11) NOT NULL COMMENT '责任人,CATA,adminuser',
  `addtimes` bigint(20) NOT NULL COMMENT '创建时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '版块表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_art_vent
-- ----------------------------
DROP TABLE IF EXISTS `ap_art_vent`;
CREATE TABLE `ap_art_vent`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sectionid` int(11) NOT NULL COMMENT '|版块|,DB,ap_art_section',
  `artid` int(11) NOT NULL COMMENT '|文章|,DB,ap_art_post',
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `content` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '内容,BR',
  `pubtimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '反馈时间,DATE',
  `audituser` int(11) NOT NULL DEFAULT 0 COMMENT '阅读人,CATA,adminuser',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `ossa`(`artid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '文章反馈表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_banner
-- ----------------------------
DROP TABLE IF EXISTS `ap_banner`;
CREATE TABLE `ap_banner`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `groupcode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '|组别代码|',
  `img` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '轮播图,IMG1',
  `url` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '链接',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 48 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '轮播图表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_cash_bundle
-- ----------------------------
DROP TABLE IF EXISTS `ap_cash_bundle`;
CREATE TABLE `ap_cash_bundle`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `chargemoney` int(11) NOT NULL COMMENT '充值金额|,CNY',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '充值套餐表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_cash_ie
-- ----------------------------
DROP TABLE IF EXISTS `ap_cash_ie`;
CREATE TABLE `ap_cash_ie`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `cashtype` int(11) NOT NULL COMMENT '收支分类,CATA,cashtype',
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `iemoney` int(11) NOT NULL COMMENT '金额|,CNY',
  `addtimes` bigint(20) NOT NULL COMMENT '发生时间,DATE',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '摘要',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '收支记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_cash_in
-- ----------------------------
DROP TABLE IF EXISTS `ap_cash_in`;
CREATE TABLE `ap_cash_in`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `inmoney` int(11) NOT NULL COMMENT '充值金额|,CNY',
  `addtimes` bigint(20) NOT NULL COMMENT '发生时间,DATE',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '支付流水号',
  `paytimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '支付时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '充值记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_cash_oe
-- ----------------------------
DROP TABLE IF EXISTS `ap_cash_oe`;
CREATE TABLE `ap_cash_oe`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `cashtype` int(11) NOT NULL COMMENT '收支分类,CATA,cashtype',
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `oemoney` int(11) NOT NULL COMMENT '金额|,CNY',
  `addtimes` bigint(20) NOT NULL COMMENT '发生时间,DATE',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '摘要',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 154 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '收益记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_cash_out
-- ----------------------------
DROP TABLE IF EXISTS `ap_cash_out`;
CREATE TABLE `ap_cash_out`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `cashstatus` int(11) NOT NULL COMMENT '|提现状态|,CATA,cashstatus',
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `cashtype` int(11) NOT NULL COMMENT '提现方式,BOOL,银行.微信',
  `cashmoney` int(10) NOT NULL COMMENT '提现金额|,CNY',
  `taxmoney` int(11) NOT NULL COMMENT '代缴个税|,CNY',
  `addtimes` bigint(20) NOT NULL COMMENT '申请时间,DATE',
  `cashtimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '操作时间,DATE',
  `cashno` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '支付编号',
  `auditmsg` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '拒绝原因',
  `bankaccount` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '账户名称',
  `bankno` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '银行卡号',
  `bankname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '开户银行',
  `bankcode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联行号',
  `invfile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '发票,DOWN',
  `invcode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '发票号码',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '提现记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_invoicedetail
-- ----------------------------
DROP TABLE IF EXISTS `ap_invoicedetail`;
CREATE TABLE `ap_invoicedetail`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  `adminuser` int(11) NOT NULL DEFAULT 0 COMMENT '维护人,CATU,adminuser',
  `memo` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '备注信息',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发票类型表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_invoicetitle
-- ----------------------------
DROP TABLE IF EXISTS `ap_invoicetitle`;
CREATE TABLE `ap_invoicetitle`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `taxnumber` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '税号',
  `addr` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '单位地址',
  `phone` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '电话号码',
  `bankname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '银行名称',
  `bankaccount` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '银行账号',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发票抬头表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_invoicing
-- ----------------------------
DROP TABLE IF EXISTS `ap_invoicing`;
CREATE TABLE `ap_invoicing`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `auditstatus` int(11) NOT NULL DEFAULT 0 COMMENT '|审核状态|,CATA,auditstatus',
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `invoicetitleid` int(11) NOT NULL COMMENT ',所属抬头,DB,ap_invoicetitle',
  `invoicedetailid` int(11) NOT NULL COMMENT '所属明细,DB,ap_invoicedetail',
  `invoicemoney` int(11) NOT NULL COMMENT '开票金额|,CNY',
  `invfile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '发票,DOWN',
  `invcode` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '发票号码',
  `addtimes` bigint(20) NOT NULL COMMENT '申请时间,DATE',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `taxnumber` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '税号',
  `addr` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '单位地址',
  `phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '电话号码',
  `bankname` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '银行名称',
  `bankaccount` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '银行账号',
  `audittimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '操作时间,DATE',
  `audituser` int(11) NOT NULL DEFAULT 0 COMMENT '操作人,CATU,adminuser',
  `auditmsg` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '拒开原因',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发票开票表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_log
-- ----------------------------
DROP TABLE IF EXISTS `ap_log`;
CREATE TABLE `ap_log`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `loguser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `readuser` int(11) NOT NULL COMMENT '审阅人,CATA,adminuser',
  `types` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'LOG分类',
  `addtimes` bigint(20) NOT NULL COMMENT '发生日期,DATE',
  `ip` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'IP,IP',
  `logs` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '详情',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3452 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '应用日志表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_lug
-- ----------------------------
DROP TABLE IF EXISTS `ap_lug`;
CREATE TABLE `ap_lug`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `isinout` int(11) NOT NULL COMMENT '|登录|,BOOL,登入.登出',
  `loguser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `addtimes` bigint(20) NOT NULL COMMENT '发生日期,DATE',
  `ip` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'IP,IP',
  `model` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备指纹',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3453 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '登录记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_paper
-- ----------------------------
DROP TABLE IF EXISTS `ap_paper`;
CREATE TABLE `ap_paper`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '显示标题',
  `readcnt` int(11) NOT NULL DEFAULT 0 COMMENT '阅读数|',
  `inputuser` int(11) NOT NULL COMMENT '撰写人,CATA,adminuser',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  `content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',内容,MD',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '独立文档表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_pnt_bundle
-- ----------------------------
DROP TABLE IF EXISTS `ap_pnt_bundle`;
CREATE TABLE `ap_pnt_bundle`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `buypnt` int(11) NOT NULL COMMENT '金币|,INT',
  `buymoney` int(11) NOT NULL COMMENT '金额|,CNY',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '金币套餐表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_pnt_buy
-- ----------------------------
DROP TABLE IF EXISTS `ap_pnt_buy`;
CREATE TABLE `ap_pnt_buy`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '支付流水',
  `pnt` int(11) NOT NULL COMMENT '金币|,INT',
  `buypntmoney` int(10) NOT NULL COMMENT '金额|,CNY',
  `addtimes` bigint(20) NOT NULL COMMENT '提交时间,DATE',
  `paytimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '支付时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 64 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '金币购买记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_pnt_record
-- ----------------------------
DROP TABLE IF EXISTS `ap_pnt_record`;
CREATE TABLE `ap_pnt_record`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `addtimes` bigint(20) NOT NULL COMMENT '发生时间,DATE',
  `pnt` int(11) NOT NULL COMMENT '积分|,INT',
  `fromid` int(11) NOT NULL DEFAULT 0,
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '摘要',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 120 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '积分流水' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_pnt_track
-- ----------------------------
DROP TABLE IF EXISTS `ap_pnt_track`;
CREATE TABLE `ap_pnt_track`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '|TrackID|',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '埋点名称',
  `point` int(11) NOT NULL COMMENT '可获金币|,INT,分',
  `limh24` int(11) NOT NULL COMMENT '24小时上限|,INT,分',
  `adminuser` int(11) NOT NULL COMMENT '操作人,CATA,adminuser',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '积分埋点表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_tokapi
-- ----------------------------
DROP TABLE IF EXISTS `ap_tokapi`;
CREATE TABLE `ap_tokapi`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '|appid|',
  `apisecret` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',appkey',
  `ips` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '白名单IP,BR',
  `addtimes` bigint(20) NOT NULL COMMENT '创建时间,DATE',
  `pubkey` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '|公钥证书|',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 215698 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'API授权管理' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_transfer
-- ----------------------------
DROP TABLE IF EXISTS `ap_transfer`;
CREATE TABLE `ap_transfer`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '|流水号|',
  `orderstatus` int(11) NOT NULL COMMENT '|交易状态|,CATA,orderstatus',
  `amount` bigint(20) NOT NULL COMMENT '金额|,CNY',
  `addtimes` bigint(20) NOT NULL COMMENT '创建时间,DATE',
  `uptimes` bigint(20) NOT NULL COMMENT '完成时间,DATE',
  `apiid` int(11) NOT NULL COMMENT 'APIID',
  `thirdno` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用方单号',
  `notifyurl` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '回调地址',
  `signature` varchar(600) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',签名',
  `retimes` bigint(20) NOT NULL COMMENT '回调时间,DATE',
  `nexttimes` bigint(20) NOT NULL COMMENT '下次回调时间,DATE',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `mo`(`orderstatus`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 54390876 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '交易单' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_user
-- ----------------------------
DROP TABLE IF EXISTS `ap_user`;
CREATE TABLE `ap_user`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '|会员编号|',
  `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '头像,IMG1',
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
  `mobile` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '手机号',
  `userlevel` int(11) NOT NULL COMMENT '|用户等级|,CATA,userlevel',
  `stpstatus` int(11) NOT NULL COMMENT '|账号状态|,CATA,stpstatus',
  `mymoney` int(11) NOT NULL DEFAULT 0 COMMENT '可用余额|,CNY',
  `mycashmoney` int(11) NOT NULL DEFAULT 0 COMMENT '可提现余额|,CNY',
  `myinvmoney` int(11) NOT NULL COMMENT '待开票金额|,CNY',
  `mybondmoney` int(11) NOT NULL DEFAULT 0 COMMENT '保证金|,CNY',
  `mypnt` int(11) NOT NULL COMMENT '积分|,INT',
  `certs` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '认证,CATS,certs',
  `accounttimes` bigint(20) NOT NULL COMMENT '有效期至,DATE,Y-m-d',
  `logintimes` bigint(20) NOT NULL COMMENT '登录时间,DATE',
  `addtimes` bigint(20) NOT NULL COMMENT '注册日期,DATE,Y-m-d',
  `upid` int(11) NOT NULL COMMENT '分享人,DB,ep_user',
  `password` varchar(70) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ',密码',
  `trytime` int(11) NOT NULL DEFAULT 0 COMMENT ',密码重试次数',
  `memo` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '备注',
  `power` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ',权限表',
  `wxunionid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ',微信UnionID',
  `wxminaid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ',小程序OpenID',
  `wxminakey` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ',小程序Key',
  `sid` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ',授权码',
  `exptimes` bigint(20) NOT NULL COMMENT ',授权过期时间,DATE',
  `ip` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '#登录IP,IP',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `mobile`(`mobile`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 187 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '会员主表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_buy_bundle
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_buy_bundle`;
CREATE TABLE `ap_usr_buy_bundle`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '套餐说明',
  `userlevel` int(11) NOT NULL COMMENT '对应等级,CATA,userlevel',
  `days` int(11) NOT NULL COMMENT '天数|,INT',
  `usermoney` int(11) NOT NULL COMMENT '金额|,CNY',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '会员套餐表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_buy_user
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_buy_user`;
CREATE TABLE `ap_usr_buy_user`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `bundleid` int(11) NOT NULL COMMENT '所属套餐,DB,ap_usr_buy_bundle',
  `userlevel` int(11) NOT NULL COMMENT '对应等级,CATA,userlevel',
  `days` int(11) NOT NULL COMMENT '会员天数|,INT',
  `buydaymoney` int(10) NOT NULL COMMENT '金额|,CNY',
  `addtimes` bigint(20) NOT NULL COMMENT '提交时间,DATE',
  `paytimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '支付时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 78 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '会员购买记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_capcode
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_capcode`;
CREATE TABLE `ap_usr_capcode`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `account` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账号',
  `code` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '验证码',
  `addtimes` bigint(20) NOT NULL COMMENT '生成时间,DATE',
  `exptimes` bigint(20) NOT NULL COMMENT '到期时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户验证码表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_ext
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_ext`;
CREATE TABLE `ap_usr_ext`  (
  `id` bigint(20) NOT NULL,
  `truename` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '真实姓名',
  `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '电子信箱',
  `wxno` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '微信号',
  `idid` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证号',
  `cciy` bigint(20) NOT NULL DEFAULT 0 COMMENT '众识码,CCIY',
  `appcid` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT 'APPpush',
  `cashtype` int(11) NOT NULL DEFAULT 2 COMMENT '提现方式,BOOL,网银提现.微信提现',
  `bankaccount` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '账户名称',
  `bankno` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '银行卡号',
  `bankname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '开户银行',
  `bankcode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '联行号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '会员副表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_invoicetitle
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_invoicetitle`;
CREATE TABLE `ap_usr_invoicetitle`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `taxnumber` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '税号',
  `addr` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '单位地址',
  `phone` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '电话号码',
  `bankname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '银行名称',
  `bankaccount` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '银行账号',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发票抬头表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_invoicing
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_invoicing`;
CREATE TABLE `ap_usr_invoicing`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `invoicemoney` int(11) NOT NULL COMMENT '开票金额|,CNY',
  `invoicetitleid` int(11) NOT NULL COMMENT ',所属抬头,DB,ap_usr_invoicetitle',
  `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `taxnumber` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',税号',
  `addr` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',单位地址',
  `phone` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',电话号码',
  `bankname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',银行名称',
  `bankaccount` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',银行账号',
  `addtimes` bigint(20) NOT NULL COMMENT '申请时间,DATE',
  `invtimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '开票时间,DATE',
  `invuser` int(11) NOT NULL DEFAULT 0 COMMENT '开票人,CATU,adminuser',
  `invfile` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '发票,DOWN',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发票开票表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_problechat
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_problechat`;
CREATE TABLE `ap_usr_problechat`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `problemid` int(11) NOT NULL,
  `sendtype` int(11) NOT NULL COMMENT '发送人,TINT,1.用户,2.平台,3.AI客服',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '答复内容',
  `addtimes` bigint(20) NOT NULL COMMENT '发送时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 54 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工单对话表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_problem
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_problem`;
CREATE TABLE `ap_usr_problem`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `contract` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '联系方式',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '工单提问,BR',
  `imgs` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片,IMG',
  `addtimes` bigint(20) NOT NULL COMMENT '提交时间,DATE',
  `replytimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '回复时间,DATE',
  `closetimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '关闭时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '问题工单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_real_apply
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_real_apply`;
CREATE TABLE `ap_usr_real_apply`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `auditstatus` int(11) NOT NULL COMMENT '|审核状态|,CATA,auditstatus',
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '真实姓名',
  `idid` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '身份证号',
  `idcard1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证人像面,IMG1',
  `idcard2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '身份证国徽面,IMG1',
  `addtimes` bigint(20) NOT NULL COMMENT '申请时间,DATE',
  `audituser` int(11) NOT NULL DEFAULT 0 COMMENT '审核员,CATA,adminuser',
  `audittimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '审核时间,DATE',
  `auditmsg` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '驳回原因',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实名认证申请表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_sendmail
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_sendmail`;
CREATE TABLE `ap_usr_sendmail`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `vuser` int(11) NOT NULL COMMENT '所属用户,DB,ap_user',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '邮件地址',
  `chan` int(11) NOT NULL COMMENT '通道号',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标题',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',邮件内容',
  `addtimes` bigint(20) NOT NULL COMMENT '添加时间,DATE',
  `sendtimes` bigint(20) NOT NULL COMMENT '发送时间,DATE',
  `donetimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '完成时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发送邮件' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_sendsms
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_sendsms`;
CREATE TABLE `ap_usr_sendsms`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `vuser` int(11) NOT NULL COMMENT '所属用户,DB,ap_user',
  `mobile` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '手机号',
  `chan` int(11) NOT NULL COMMENT '通道号',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',JSON内容',
  `addtimes` bigint(20) NOT NULL COMMENT '添加时间,DATE',
  `sendtimes` bigint(20) NOT NULL COMMENT '发送时间,DATE',
  `donetimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '完成时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 138 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发送短信' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_shipaddr
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_shipaddr`;
CREATE TABLE `ap_usr_shipaddr`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `areacode` int(11) NOT NULL COMMENT '所在地区,CATM,ciy_arearpc|<code>?</code>',
  `addr` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '详细地址',
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '收件人',
  `phone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '联系电话',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 70 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '收货地址表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ap_usr_suggest
-- ----------------------------
DROP TABLE IF EXISTS `ap_usr_suggest`;
CREATE TABLE `ap_usr_suggest`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属用户,DB,ap_user',
  `contract` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '联系方式',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '建议内容,BR',
  `imgs` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '图片,IMG',
  `addtimes` bigint(20) NOT NULL COMMENT '提交时间,DATE',
  `replyuser` int(11) NOT NULL DEFAULT 0 COMMENT '答复人,CATA,adminuser',
  `replytimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '答复时间,DATE',
  `replymsg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '答复内容,BR',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '意见建议表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ciy_arearpc
-- ----------------------------
DROP TABLE IF EXISTS `ciy_arearpc`;
CREATE TABLE `ciy_arearpc`  (
  `id` int(11) NOT NULL COMMENT '代码',
  `upid` int(11) NOT NULL COMMENT '上级代码',
  `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '地名',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '静态省市区表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for ciy_bankcode
-- ----------------------------
DROP TABLE IF EXISTS `ciy_bankcode`;
CREATE TABLE `ciy_bankcode`  (
  `id` bigint(20) NOT NULL COMMENT '联行号',
  `bkcode` int(11) NOT NULL COMMENT '前三位银行码',
  `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '银行名称',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '中国联行号' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for demo_normal
-- ----------------------------
DROP TABLE IF EXISTS `demo_normal`;
CREATE TABLE `demo_normal`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID,ENID',
  `auditstatus` int(11) NOT NULL COMMENT '|审核状态|,CATA,auditstatus',
  `audituser` int(11) NOT NULL DEFAULT 0 COMMENT '审核人,CATU,adminuser',
  `audittimes` bigint(20) NOT NULL COMMENT '审核时间,DATE',
  `auditmsg` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '审核理由',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '默认标题',
  `menuid` int(11) NOT NULL COMMENT '所属菜单,DB,zc_menu',
  `filesize` int(11) NOT NULL COMMENT '文件大小|,FSIZE',
  `metre` int(11) NOT NULL COMMENT '长度|,METRE',
  `bankmoney` bigint(20) NOT NULL COMMENT '贷款金额|,WCNY',
  `setdate` bigint(20) NOT NULL COMMENT '设置日期,DATE,Y-m-d',
  `settimes` bigint(20) NOT NULL COMMENT '设置时间,DATE',
  `dayclock` int(11) NOT NULL COMMENT '|营业时间|,TIME,H:i:s',
  `downurl` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '|文档|,IMG',
  `avar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '头像,IMG1',
  `isuse` int(11) NOT NULL COMMENT '|是否使用|,BOOL',
  `isopen` int(11) NOT NULL COMMENT '|是否开启|,BOOL,开启.关闭',
  `unit` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '库存单位,UNIT',
  `sigstatus` int(11) NOT NULL COMMENT '|单选状态|,CATA,auditstatus',
  `mauditstatus` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '多选状态,CATS,auditstatus|~',
  `prodcata` int(11) NOT NULL COMMENT '组织结构,CATM,zc_depart',
  `areacode` int(11) NOT NULL COMMENT '所在地区,CATM,ciy_arearpc|<code>?</code>',
  `renzheng` int(11) NOT NULL COMMENT '认证情况,TBIN,re.nz.he.ng|<kbd>?</kbd>',
  `ppint` int(11) NOT NULL COMMENT '|临时字典|,TINT,1:aaa.3:bbbb.5:cccc',
  `npcyc` int(11) NOT NULL COMMENT '|执行周期|,CYC',
  `runsec` int(11) NOT NULL COMMENT '执行用时|,SEC',
  `acttm` int(11) NOT NULL COMMENT '活动期数|,INT,第?期',
  `imgs` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '活动花絮,IMG,?50',
  `ton` bigint(20) NOT NULL COMMENT '吨位|,TON',
  `price` bigint(20) NOT NULL COMMENT '单价|,CNY',
  `lat` int(11) NOT NULL COMMENT ',纬度',
  `lng` int(11) NOT NULL COMMENT '|位置|,LOC,lat',
  `pct` int(11) NOT NULL COMMENT '百分比|,PCT',
  `url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '链接,URL,跳转',
  `weightg` bigint(20) NOT NULL COMMENT '体重|,KG,1,KG|1000|吨',
  `eartmpr` int(11) NOT NULL COMMENT '耳温|,TC,3',
  `qian` bigint(20) NOT NULL COMMENT '中式钱|,LNY',
  `meishi` bigint(20) NOT NULL COMMENT '美式钱|,SNY',
  `weight` bigint(20) NOT NULL COMMENT '重量|,WGT,G.*KG.TON,1',
  `height` bigint(20) NOT NULL COMMENT '长度|,LGH',
  `skt` bigint(20) NOT NULL COMMENT '科学数|,BET,SKT,1000,1',
  `idcard` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '身份证号,MSK,******#*',
  `addtimes` bigint(20) NOT NULL COMMENT '添加时间,DATE',
  `content` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',介绍,BR',
  `md` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',富文本,MD',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 80 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '复杂功能表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for doc_help
-- ----------------------------
DROP TABLE IF EXISTS `doc_help`;
CREATE TABLE `doc_help`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `upid` int(11) NOT NULL COMMENT ',上级',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标题',
  `csort` int(11) NOT NULL DEFAULT 1 COMMENT '排序',
  `isuse` int(11) NOT NULL DEFAULT 0 COMMENT '|公开|,BOOL',
  `uptimes` bigint(20) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 155 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_achievemember
-- ----------------------------
DROP TABLE IF EXISTS `lab_achievemember`;
CREATE TABLE `lab_achievemember`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `achievementid` bigint(20) NOT NULL COMMENT '所属成果,DB,lab_achievement',
  `vuser` bigint(20) NOT NULL COMMENT '所属成员,CATU,labuser',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '|姓名|',
  `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '邮箱',
  `seqno` int(11) NOT NULL COMMENT '|顺序位|',
  `maincontribution` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主要贡献',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '成果贡献人' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_achievement
-- ----------------------------
DROP TABLE IF EXISTS `lab_achievement`;
CREATE TABLE `lab_achievement`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `rcate` int(11) NOT NULL COMMENT '科研类目,CATA,rcate',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `numachive` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编号成果',
  `descs` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '摘要,BR',
  `amurl` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '链接,DOWN',
  `ampdf` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'PDF,DOWN',
  `pubtimes` bigint(20) NOT NULL COMMENT '发表日期,DATE,Y-m-d',
  `author` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '负责人',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '科研成果' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_crmbase
-- ----------------------------
DROP TABLE IF EXISTS `lab_crmbase`;
CREATE TABLE `lab_crmbase`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '单位名称',
  `crmsource` int(11) NOT NULL COMMENT '数据来源,CATA,crmsource',
  `content` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '干系数据,BR',
  `crmlevel` int(11) NOT NULL COMMENT '标记,CATA,crmlevel',
  `lat` double NOT NULL COMMENT '地图位置',
  `lng` double NOT NULL COMMENT '地图位置,LOC,lat',
  `followtimes` bigint(20) NOT NULL COMMENT '最新跟进日期,DATE,Y-m-d',
  `vuser` bigint(20) NOT NULL COMMENT '销售人,CATU,labuser',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '客户CRM' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_crmfollow
-- ----------------------------
DROP TABLE IF EXISTS `lab_crmfollow`;
CREATE TABLE `lab_crmfollow`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `crmid` bigint(20) NOT NULL COMMENT '所属单位,DB,lab_crmbase',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '跟进内容,BR',
  `addtimes` bigint(20) NOT NULL COMMENT '跟进时间,DATE',
  `vuser` bigint(20) NOT NULL COMMENT '跟进人,CATU,labuser',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '销售跟进' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_discuscomment
-- ----------------------------
DROP TABLE IF EXISTS `lab_discuscomment`;
CREATE TABLE `lab_discuscomment`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `discussionid` bigint(20) NOT NULL COMMENT '所属研讨,DB,lab_discussion',
  `upid` bigint(20) NOT NULL COMMENT '所属评论,DB,lab_discuscomment',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',评论内容,MD',
  `addtimes` bigint(20) NOT NULL COMMENT '评论日期,DATE',
  `approvecnt` bigint(20) NOT NULL COMMENT '赞成数|',
  `opposecnt` bigint(20) NOT NULL COMMENT '反对数|',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '研讨评论' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_discussion
-- ----------------------------
DROP TABLE IF EXISTS `lab_discussion`;
CREATE TABLE `lab_discussion`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '研讨标题',
  `vuser` bigint(20) NOT NULL COMMENT '发起人,CATU,labuser',
  `addtimes` bigint(20) NOT NULL COMMENT '发起日期,DATE,Y-m-d',
  `closetimes` bigint(20) NOT NULL COMMENT '关闭日期,DATE,Y-m-d',
  `interactioncnt` bigint(20) NOT NULL COMMENT '互动数|',
  `visitcnt` bigint(20) NOT NULL COMMENT '访问量|',
  `lasttimes` bigint(20) NOT NULL COMMENT '最后活跃时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '研讨' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_discusstate
-- ----------------------------
DROP TABLE IF EXISTS `lab_discusstate`;
CREATE TABLE `lab_discusstate`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `discussionid` bigint(20) NOT NULL COMMENT '所属研讨,DB,lab_discussion',
  `discuscommentid` bigint(20) NOT NULL COMMENT '所属评论,DB,lab_discuscomment',
  `dstate` int(11) NOT NULL COMMENT '表态,CATA,dstate',
  `addtimes` bigint(20) NOT NULL COMMENT '表态时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '研讨表态' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_experience
-- ----------------------------
DROP TABLE IF EXISTS `lab_experience`;
CREATE TABLE `lab_experience`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '一句话概括',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '详情,BR',
  `vfiles` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文档附件,IMG',
  `addtimes` bigint(20) NOT NULL COMMENT '发布日期,DATE,Y-m-d',
  `vuser` bigint(20) NOT NULL COMMENT '发布人,CATU,labuser',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '经验积累' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_experienvisit
-- ----------------------------
DROP TABLE IF EXISTS `lab_experienvisit`;
CREATE TABLE `lab_experienvisit`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `experienceid` bigint(20) NOT NULL COMMENT '所属经验,DB,lab_experience',
  `vuser` bigint(20) NOT NULL COMMENT '访问人,CATU,labuser',
  `addtimes` bigint(20) NOT NULL COMMENT '访问日期,DATE,Y-m-d',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '访问记录' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_fundcate
-- ----------------------------
DROP TABLE IF EXISTS `lab_fundcate`;
CREATE TABLE `lab_fundcate`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '分项名',
  `descs` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '解释说明,BR',
  `vfile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '示例附件,DOWN',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分项分类' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_fundexpendetail
-- ----------------------------
DROP TABLE IF EXISTS `lab_fundexpendetail`;
CREATE TABLE `lab_fundexpendetail`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fundexpenseid` bigint(20) NOT NULL COMMENT '所属报销,DB,lab_fundexpense',
  `funditemid` bigint(20) NOT NULL COMMENT '所属分项经费,DB,lab_funditem',
  `fedamount` bigint(20) NOT NULL COMMENT '金额|,CNY',
  `memo` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '报销明细' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_fundexpense
-- ----------------------------
DROP TABLE IF EXISTS `lab_fundexpense`;
CREATE TABLE `lab_fundexpense`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `vuser` bigint(20) NOT NULL COMMENT '报销人,CATU,labuser',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '事由',
  `fundexpensestatus` int(11) NOT NULL COMMENT '|状态|,CATA,fundexpensestatus',
  `totalamount` bigint(20) NOT NULL COMMENT '总金额|,CNY',
  `receiptcount` int(11) NOT NULL COMMENT '票据数量|,INT,张',
  `fefiles` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '电子票据附件,IMG',
  `reason` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '驳回理由',
  `submittimes` bigint(20) NOT NULL COMMENT '提交日期,DATE',
  `financetimes` bigint(20) NOT NULL COMMENT '财务日期,DATE',
  `paymenttimes` bigint(20) NOT NULL COMMENT '打款日期,DATE',
  `actualamount` bigint(20) NOT NULL COMMENT '实报金额|,CNY',
  `assistantuser` bigint(20) NOT NULL COMMENT '协助人,CATU,labuser',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '经费报销' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_funditem
-- ----------------------------
DROP TABLE IF EXISTS `lab_funditem`;
CREATE TABLE `lab_funditem`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `fundprojectid` bigint(20) NOT NULL COMMENT '所属项目经费,DB,lab_fundproject',
  `fundcateid` bigint(20) NOT NULL COMMENT '所属分项分类,DB,lab_fundcate',
  `usablemoney` bigint(20) NOT NULL COMMENT '可用经费|,CNY',
  `memo` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '项目分项经费' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_fundproject
-- ----------------------------
DROP TABLE IF EXISTS `lab_fundproject`;
CREATE TABLE `lab_fundproject`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '项目名称',
  `totalmoney` bigint(20) NOT NULL COMMENT '可用总经费|,CNY',
  `closetime` bigint(20) NOT NULL COMMENT '关闭时间,DATE,Y-m-d',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '项目经费' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_gmeeting
-- ----------------------------
DROP TABLE IF EXISTS `lab_gmeeting`;
CREATE TABLE `lab_gmeeting`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标题',
  `starttimes` bigint(20) NOT NULL COMMENT '开始时间,DATE',
  `plansec` int(11) NOT NULL COMMENT '预计用时,SEC',
  `usesec` int(11) NOT NULL COMMENT '实际用时,SEC',
  `maintopic` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主要议题',
  `addr` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '地址',
  `vuser` bigint(20) NOT NULL COMMENT '主持人,CATU,labuser',
  `joincnt` int(11) NOT NULL COMMENT '与会人数,INT,人',
  `addtimes` bigint(20) NOT NULL COMMENT '发布时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组会' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_gmeetmember
-- ----------------------------
DROP TABLE IF EXISTS `lab_gmeetmember`;
CREATE TABLE `lab_gmeetmember`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `gmeetingid` bigint(20) NOT NULL COMMENT '所属组会,DB,lab_gmeeting',
  `vuser` bigint(20) NOT NULL COMMENT '所属成员,CATU,labuser',
  `gmeetingusrstatus` int(11) NOT NULL COMMENT '|状态|,CATA,gmeetingusrstatus',
  `nexttimes` bigint(20) NOT NULL COMMENT '下次通知日期,DATE,Y-m-d',
  `gmeetingusrsign` int(11) NOT NULL COMMENT '签到,CATA,gmeetingusrsign',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组会成员' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_lang
-- ----------------------------
DROP TABLE IF EXISTS `lab_lang`;
CREATE TABLE `lab_lang`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `lang` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '语言代码,CATA,lang',
  `tabname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表名称',
  `fieldname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字段名',
  `tabid` bigint(20) NOT NULL COMMENT 'ID',
  `trantxt` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '翻译文本',
  `langstatus` int(11) NOT NULL COMMENT '|状态|,CATA,langstatus',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '多语言' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_marriedchg
-- ----------------------------
DROP TABLE IF EXISTS `lab_marriedchg`;
CREATE TABLE `lab_marriedchg`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `marriedoriid` bigint(20) NOT NULL COMMENT '所属元数据,DB,lab_marriedori',
  `mchan` int(11) NOT NULL COMMENT '信息渠道,CATA,mchan',
  `chgdata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',变动数据',
  `addtimes` bigint(20) NOT NULL COMMENT '变动日期,DATE,Y-m-d',
  `vuser` bigint(20) NOT NULL COMMENT '变动人,CATU,labuser',
  `adminuser` bigint(20) NOT NULL COMMENT '监管人,CATU,labuser',
  `mfen` int(11) NOT NULL COMMENT '打分|,INT,分',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '元数据变动' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_marriedori
-- ----------------------------
DROP TABLE IF EXISTS `lab_marriedori`;
CREATE TABLE `lab_marriedori`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '干系人',
  `onecap` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '能力,BR',
  `onedem` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '需求,BR',
  `uptimes` bigint(20) NOT NULL COMMENT '更新日期,DATE,Y-m-d',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '撮合元数据' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_orgbase
-- ----------------------------
DROP TABLE IF EXISTS `lab_orgbase`;
CREATE TABLE `lab_orgbase`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '全称',
  `shortname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '简称',
  `areacode` bigint(20) NOT NULL COMMENT '所在地区,CATM,ciy_arearpc',
  `addr` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '地址',
  `lat` double NOT NULL,
  `lng` double NOT NULL COMMENT '地理位置,LOC,lat',
  `signname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '签约人',
  `contact` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '联系方式',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '邮箱',
  `addtimes` bigint(20) NOT NULL COMMENT '开通日,DATE,Y-m-d',
  `exptimes` bigint(20) NOT NULL COMMENT '到期日,DATE,Y-m-d',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '科研机构' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_orgorder
-- ----------------------------
DROP TABLE IF EXISTS `lab_orgorder`;
CREATE TABLE `lab_orgorder`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `orgsaleplanid` bigint(20) NOT NULL COMMENT '销售方案,DB,lab_orgsaleplan',
  `recvamount` bigint(20) NOT NULL COMMENT '收款金额|,CNY',
  `vuser` bigint(20) NOT NULL COMMENT '操作人,CATU,labuser',
  `addtimes` bigint(20) NOT NULL COMMENT '创建时间,DATE',
  `memo` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '备注',
  `invoicecate` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '发票类目',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '机构业务订单' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_orgsaleplan
-- ----------------------------
DROP TABLE IF EXISTS `lab_orgsaleplan`;
CREATE TABLE `lab_orgsaleplan`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '方案名称',
  `daycyc` int(11) NOT NULL COMMENT '递延时长,CYC',
  `planprice` bigint(20) NOT NULL COMMENT '标价|,CNY',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '销售方案' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_realasset
-- ----------------------------
DROP TABLE IF EXISTS `lab_realasset`;
CREATE TABLE `lab_realasset`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构 ID,DB,lab_orgbase',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资产名称',
  `sn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '资产编号',
  `num` int(11) NOT NULL COMMENT '数量|,INT,个',
  `pos` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '位置',
  `vuser` bigint(20) NOT NULL COMMENT '管理人,CATU,labuser',
  `addtimes` bigint(20) NOT NULL COMMENT '加入日期,DATE,Y-m-d',
  `lduser` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '使用人',
  `ldtimes` bigint(20) NOT NULL COMMENT '使用时间,DATE',
  `memo` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实验室实物资产' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_rproject
-- ----------------------------
DROP TABLE IF EXISTS `lab_rproject`;
CREATE TABLE `lab_rproject`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `isweb` int(11) NOT NULL COMMENT '是否公开,BOOL',
  `rcate` int(11) NOT NULL COMMENT '科研类目,CATA,rcate',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标题',
  `descs` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '摘要,BR',
  `mdeptname` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主管部门',
  `mdeptlevel` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '层次',
  `budgetmoney` bigint(20) NOT NULL COMMENT '预算|,CNY',
  `serviceorg` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '服务机构',
  `rprojectstatus` int(11) NOT NULL COMMENT '|状态|,CATA,rprojectstatus',
  `vuser` bigint(20) NOT NULL COMMENT '负责人,CATU,labuser',
  `progress` int(11) NOT NULL COMMENT '|进度|,PCT',
  `lasttimes` bigint(20) NOT NULL COMMENT '最新进展,DATE,Y-m-d',
  `numachive` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编号成果',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '在研课题' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_rprojmember
-- ----------------------------
DROP TABLE IF EXISTS `lab_rprojmember`;
CREATE TABLE `lab_rprojmember`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `rprojectid` bigint(20) NOT NULL COMMENT '所属课题,DB,lab_rproject',
  `vuser` bigint(20) NOT NULL COMMENT '所属成员,CATU,labuser',
  `mainduty` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主要职责',
  `addtimes` bigint(20) NOT NULL COMMENT '参与日期,DATE,Y-m-d',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '课题成员' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_rprojprogress
-- ----------------------------
DROP TABLE IF EXISTS `lab_rprojprogress`;
CREATE TABLE `lab_rprojprogress`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `rprojectid` bigint(20) NOT NULL COMMENT '所属课题,DB,lab_rproject',
  `vuser` bigint(20) NOT NULL COMMENT '所属成员,CATU,labuser',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',进展内容,MD',
  `addtimes` bigint(20) NOT NULL COMMENT '进展日期,DATE',
  `rppfiles` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '进展附件,DOWN',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '课题进展' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_user
-- ----------------------------
DROP TABLE IF EXISTS `lab_user`;
CREATE TABLE `lab_user`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名',
  `usertitle` int(11) NOT NULL COMMENT '头衔,CATA,usertitle',
  `education` int(11) NOT NULL COMMENT '学历,CATA,education',
  `sn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编号',
  `sex` int(11) NOT NULL COMMENT '性别,CATA,sex',
  `addtimes` bigint(20) NOT NULL COMMENT '加入日期,DATE,Y-m-d',
  `mobile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '手机号,MSK,****',
  `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '信箱',
  `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',密码',
  `stpstatus` int(11) NOT NULL COMMENT '|状态|,CATA,stpstatus',
  `userlevel` int(11) NOT NULL COMMENT '|等级|,CATA,userlevel',
  `totalpnt` bigint(20) NOT NULL COMMENT '总积分|,INT',
  `dvotecnt` bigint(20) NOT NULL COMMENT '互动贡献|,INT,次',
  `trytime` int(11) NOT NULL DEFAULT 0 COMMENT ',密码重试次数',
  `logintimes` bigint(20) NOT NULL COMMENT '登录时间,DATE',
  `sid` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ',授权码',
  `exptimes` bigint(20) NOT NULL COMMENT ',授权过期时间,DATE',
  `ip` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '#登录IP,IP',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实验室成员' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_usronline
-- ----------------------------
DROP TABLE IF EXISTS `lab_usronline`;
CREATE TABLE `lab_usronline`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `vuser` bigint(20) NOT NULL COMMENT '所属成员,CATU,labuser',
  `targettype` int(11) NOT NULL COMMENT '登录来源',
  `sid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'SID',
  `logintimes` bigint(20) NOT NULL COMMENT '登录时间,DATE',
  `exptimes` bigint(20) NOT NULL COMMENT '过期时间,DATE',
  `ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'IP',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '成员在线' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_webachievement
-- ----------------------------
DROP TABLE IF EXISTS `lab_webachievement`;
CREATE TABLE `lab_webachievement`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `achievementid` bigint(20) NOT NULL COMMENT '所属成果,DB,lab_achievement',
  `keytag` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '关键词标签',
  `ispub` int(11) NOT NULL COMMENT '公开详情,BOOL',
  `visitcnt` bigint(20) NOT NULL COMMENT '访问量|',
  `vuser` bigint(20) NOT NULL COMMENT '添加人,CATU,labuser',
  `addtimes` bigint(20) NOT NULL COMMENT '添加时间,DATE,Y-m-d',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '官网成果' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_weblead
-- ----------------------------
DROP TABLE IF EXISTS `lab_weblead`;
CREATE TABLE `lab_weblead`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `mobile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '手机号,MSK,****',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '联系人',
  `sourceurl` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '来源页面,URL',
  `demand` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '需求',
  `addtimes` bigint(20) NOT NULL COMMENT '提交日期,DATE,Y-m-d',
  `vuser` bigint(20) NOT NULL COMMENT '对接人,CATU,labuser',
  `contracttimes` bigint(20) NOT NULL COMMENT '最后沟通时间,DATE',
  `contractcontent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '最后沟通记录,BR',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '官网线索' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_webmain
-- ----------------------------
DROP TABLE IF EXISTS `lab_webmain`;
CREATE TABLE `lab_webmain`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `templatepath` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '模版路径',
  `binddomain` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '绑定独立域名',
  `predomain` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '三级域名',
  `labintro` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',实验室简介,MD',
  `founder` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',主任事迹,MD',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '官网模版' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for lab_webmember
-- ----------------------------
DROP TABLE IF EXISTS `lab_webmember`;
CREATE TABLE `lab_webmember`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `laborgid` bigint(20) NOT NULL COMMENT '所属机构,DB,lab_orgbase',
  `vuser` bigint(20) NOT NULL COMMENT '所属成员,CATU,labuser',
  `photo` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '近照,IMG1',
  `pintro` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',个人介绍,MD',
  `uptimes` bigint(20) NOT NULL COMMENT '更新日期,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '官网成员' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for www_list_art
-- ----------------------------
DROP TABLE IF EXISTS `www_list_art`;
CREATE TABLE `www_list_art`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '|ID|',
  `cateid` int(11) NOT NULL COMMENT '所属栏目,ID,www_list_cate',
  `bshow` int(11) NOT NULL COMMENT '|显示|,BOOL',
  `clickcnt` int(11) NOT NULL COMMENT '点击量|',
  `icon` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '缩略图,IMG',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主标题',
  `seotitle` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'SEO标题',
  `keys` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '关键词',
  `descs` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',摘要,BR',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',内容,MD',
  `csort` int(11) NOT NULL COMMENT '|排序|',
  `addtimes` bigint(20) NOT NULL COMMENT '添加时间,DATE',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  `vadmin` int(11) NOT NULL COMMENT '创建人,CATA,adminuser',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3043 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '网站列表通用库' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for www_list_cate
-- ----------------------------
DROP TABLE IF EXISTS `www_list_cate`;
CREATE TABLE `www_list_cate`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '|ID|',
  `total` int(11) NOT NULL COMMENT '数据量|',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主标题',
  `seotitle` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'SEO标题',
  `keys` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',关键词',
  `descs` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',摘要',
  `addtimes` bigint(20) NOT NULL COMMENT '添加时间,DATE',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  `vadmin` int(11) NOT NULL COMMENT '创建人,CATA,adminuser',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '网站列表页库' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for www_seoword
-- ----------------------------
DROP TABLE IF EXISTS `www_seoword`;
CREATE TABLE `www_seoword`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '关键词',
  `url` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '链接',
  `rank` int(11) NOT NULL COMMENT '|概率|',
  `isuse` int(11) NOT NULL COMMENT '|有效|,BOOL',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `title`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 385 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '网站关键词库' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for www_single
-- ----------------------------
DROP TABLE IF EXISTS `www_single`;
CREATE TABLE `www_single`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '|ID|',
  `name` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主标题',
  `seotitle` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'SEO标题',
  `keys` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '关键词',
  `descs` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',摘要,BR',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',内容,MD',
  `addtimes` bigint(20) NOT NULL COMMENT '添加时间,DATE',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  `vadmin` int(11) NOT NULL COMMENT '创建人,CATA,adminuser',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '网站单页库' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_admin
-- ----------------------------
DROP TABLE IF EXISTS `zc_admin`;
CREATE TABLE `zc_admin`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '|ID|',
  `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '头像,IMG1',
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名',
  `stpstatus` int(11) NOT NULL COMMENT '|状态|,CATA,stpstatus',
  `mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '手机号,MSK,****',
  `sex` int(11) NOT NULL COMMENT '|性别|,CATA,sex',
  `departid` int(11) NOT NULL COMMENT '所属组织,CATM,zc_depart',
  `roleid` int(11) NOT NULL COMMENT '岗位角色,DB,zc_role',
  `logintimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '活跃时间,DATE',
  `addtimes` bigint(20) NOT NULL COMMENT '注册时间,DATE',
  `password` varchar(70) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ',密码',
  `trytime` int(11) NOT NULL DEFAULT 0 COMMENT ',连续错误次数',
  `power` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT ',权限表',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `mobile`(`mobile`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '管理员用户表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_agent
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_agent`;
CREATE TABLE `zc_ai_agent`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
  `aikey` int(11) NOT NULL COMMENT '执行模型,DB,zc_ai_key',
  `aiprange` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',执行参量',
  `funcids` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '数据函数,CATS,zc_ai_funcdata',
  `sysprompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',系统提示词',
  `uptimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '决策智能体表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_aigc
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_aigc`;
CREATE TABLE `zc_ai_aigc`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
  `aikey` int(11) NOT NULL COMMENT '执行模型,DB,zc_ai_key',
  `aiprange` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',执行参量',
  `inputjson` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',预输入设置',
  `funcids` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '数据函数,CATS,zc_ai_funcdata',
  `uptimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间,DATE',
  `sysprompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',系统提示词',
  `roleprompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',用户提示词',
  `resulttxt` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',示例结果',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'AIGC生成表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_decdbg
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_decdbg`;
CREATE TABLE `zc_ai_decdbg`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `decisionid` bigint(20) NOT NULL DEFAULT 0,
  `version` int(11) NOT NULL DEFAULT 0 COMMENT '|版本|,INT',
  `inputparam` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '输入数据',
  `inputprompt` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',提示词',
  `aichat` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',AI交互',
  `resulttxt` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'AI结果',
  `starttimes` int(11) NOT NULL DEFAULT 0 COMMENT '开始时间,DATE',
  `reqsec` int(11) NOT NULL DEFAULT 0 COMMENT '执行时长|,SEC',
  `decci` int(11) NOT NULL DEFAULT 0 COMMENT '置信度|,PCT',
  `userfeedback` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '存在问题',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '决策调试表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_dechistory
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_dechistory`;
CREATE TABLE `zc_ai_dechistory`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `decisionid` bigint(20) NOT NULL DEFAULT 0,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
  `aikey` int(11) NOT NULL COMMENT '执行模型,DB,zc_ai_key',
  `aiprange` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',执行参量',
  `version` int(11) NOT NULL DEFAULT 0 COMMENT '|版本|,INT',
  `funcids` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '数据函数|,CATS,zc_ai_funcdata',
  `sysprompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',系统提示词',
  `roleprompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',用户提示词',
  `aicalkey` int(11) NOT NULL COMMENT '检验模型,DB,zc_ai_key',
  `aicalfunc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '检验函数',
  `aicalprange` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',检验参量',
  `calprompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',检验提示词',
  `addtimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '版本时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '决策设计表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_decision
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_decision`;
CREATE TABLE `zc_ai_decision`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '|DecisionID|',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
  `aikey` int(11) NOT NULL COMMENT '执行算力源,DB,zc_ai_key',
  `aiprange` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',执行参量',
  `version` int(11) NOT NULL DEFAULT 0 COMMENT '|版本|,INT',
  `funcids` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '数据函数|,CATS,zc_ai_funcdata',
  `sysprompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',系统提示词',
  `roleprompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',用户提示词',
  `aicalkey` int(11) NOT NULL COMMENT '检验算力源,DB,zc_ai_key',
  `aicalfunc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '检验函数',
  `aicalprange` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',检验参量',
  `calprompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',检验提示词',
  `uptimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '更新时间,DATE',
  `memo` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',调试经验',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '决策设计表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_funcdata
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_funcdata`;
CREATE TABLE `zc_ai_funcdata`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
  `funcname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '函数名',
  `descs` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '函数描述',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  `funcparam` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',函数固定参数',
  `paramjson` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',AI FUNC参数',
  `defout` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',输出示例',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '函数数据表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_key
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_key`;
CREATE TABLE `zc_ai_key`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '名称',
  `model` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '模型',
  `balance` int(11) NOT NULL DEFAULT 0 COMMENT '余额|,CNY',
  `alarmbalce` int(11) NOT NULL COMMENT '#余额警戒线|,CNY',
  `baseurl` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '基础地址',
  `maxtoken` int(11) NOT NULL COMMENT '最大token数|',
  `aicapacity` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '能力,CATS,aicapacity',
  `aikey` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '#密钥,MSK,****##******##',
  `memo` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '备注',
  `uptimes` int(11) NOT NULL DEFAULT 0 COMMENT '更新时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '算力源表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_knowcata
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_knowcata`;
CREATE TABLE `zc_ai_knowcata`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '知识库名称',
  `aiguide` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'AI引导描述',
  `knowcnt` int(11) NOT NULL COMMENT '条数|',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '知识分类表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_knowledge
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_knowledge`;
CREATE TABLE `zc_ai_knowledge`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `cataid` bigint(20) NOT NULL DEFAULT 0 COMMENT ',所属分类,DB,zc_ai_knowcata',
  `uptimes` bigint(20) NOT NULL COMMENT ',更新时间|,DATE',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '知识内容,BR',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '浓缩知识表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_task
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_task`;
CREATE TABLE `zc_ai_task`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `aitaskstatus` int(11) NOT NULL DEFAULT 0 COMMENT '任务状态,CATA,autotaskstatus',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '任务名称',
  `aifunc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务函数',
  `aiparam` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',任务参数',
  `autoci` int(11) NOT NULL COMMENT '主动置信度|,PCT',
  `autofunc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '执行函数',
  `aicycle` int(11) NOT NULL DEFAULT 0 COMMENT '执行周期|,CYC',
  `nexttimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '下次时间,DATE',
  `aitimes` int(11) NOT NULL DEFAULT 0 COMMENT ',开始时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '计划任务表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ai_tsk_run
-- ----------------------------
DROP TABLE IF EXISTS `zc_ai_tsk_run`;
CREATE TABLE `zc_ai_tsk_run`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `aitaskid` bigint(20) NOT NULL DEFAULT 0 COMMENT '所属任务,DB,zc_ai_task',
  `aidotype` int(11) NOT NULL COMMENT '状态,CATA,aidotype',
  `confidence` int(11) NOT NULL COMMENT '置信度|,PCT',
  `addtimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '完成时间,DATE',
  `runsec` int(11) NOT NULL DEFAULT 0 COMMENT '运行时长|,SEC',
  `inputdata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',输入数据',
  `resultdata` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',结果数据',
  `memo` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '优化建议',
  `resultmodify` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',改后结果',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '执行记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_autotask
-- ----------------------------
DROP TABLE IF EXISTS `zc_autotask`;
CREATE TABLE `zc_autotask`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '|ID|',
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
  `runfunc` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '入口函数',
  `runparam` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '执行参数',
  `nexttimes` bigint(20) UNSIGNED NOT NULL COMMENT '下次执行时间,DATE',
  `runcycle` int(11) NOT NULL COMMENT '执行周期,CYC',
  `autotaskstatus` int(11) NOT NULL COMMENT '|任务状态|,CATA,autotaskstatus',
  `runtimes` bigint(20) NOT NULL DEFAULT 0 COMMENT ',开始执行时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '自动化任务表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_autotsk_log
-- ----------------------------
DROP TABLE IF EXISTS `zc_autotsk_log`;
CREATE TABLE `zc_autotsk_log`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `autotaskid` int(11) NOT NULL COMMENT '所属任务,DB,zc_autotask',
  `runtaskid` bigint(20) NOT NULL COMMENT '所属执行,DB,zc_autotsk_run',
  `addtimes` bigint(20) NOT NULL COMMENT '发生时间,DATE',
  `msg` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '执行记录',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `runtaskid`(`runtaskid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务Log表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_autotsk_run
-- ----------------------------
DROP TABLE IF EXISTS `zc_autotsk_run`;
CREATE TABLE `zc_autotsk_run`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `autotaskid` int(11) NOT NULL COMMENT '所属任务,DB,zc_autotask',
  `addtimes` bigint(20) NOT NULL COMMENT '执行时间,DATE',
  `runsec` int(11) NOT NULL DEFAULT 0 COMMENT '时长|,SEC',
  `logcnt` int(11) NOT NULL DEFAULT 0 COMMENT 'LOG统计|',
  `msg` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '任务简报',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `autotaskid`(`autotaskid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务执行记录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_cata
-- ----------------------------
DROP TABLE IF EXISTS `zc_cata`;
CREATE TABLE `zc_cata`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `upid` int(11) NOT NULL COMMENT '上级,DB,zc_cata',
  `csort` int(11) NOT NULL DEFAULT 10 COMMENT '排序',
  `isuse` int(11) NOT NULL DEFAULT 1 COMMENT '|行为|,BOOL',
  `cbid` int(11) NOT NULL DEFAULT 0 COMMENT '库,DB,zc_cata',
  `codeid` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '值',
  `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `clas` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '样式类',
  `extdata` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '扩展值',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `cbid`(`cbid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12001749 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_cemap_bill
-- ----------------------------
DROP TABLE IF EXISTS `zc_cemap_bill`;
CREATE TABLE `zc_cemap_bill`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cpath` int(11) NOT NULL COMMENT '路径,CATM,zc_cemap_pbill',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `url` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '图片,IMG1',
  `w` int(11) NOT NULL COMMENT '宽度,METRE',
  `h` int(11) NOT NULL COMMENT '高度,METRE',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `orgid`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 41 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '立牌资源表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_cemap_data
-- ----------------------------
DROP TABLE IF EXISTS `zc_cemap_data`;
CREATE TABLE `zc_cemap_data`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tabname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `tabid` bigint(20) NOT NULL,
  `mapjson` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `uptimes` bigint(20) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 40 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '地图数据表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_cemap_glb
-- ----------------------------
DROP TABLE IF EXISTS `zc_cemap_glb`;
CREATE TABLE `zc_cemap_glb`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `cpath` int(11) NOT NULL COMMENT '路径,CATM,zc_cemap_pglb',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `url` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'GLB,DOWN',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `orgid`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 42 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'GLB资源表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_cemap_pbill
-- ----------------------------
DROP TABLE IF EXISTS `zc_cemap_pbill`;
CREATE TABLE `zc_cemap_pbill`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `upid` int(11) NOT NULL COMMENT ',上级',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `csort` int(11) NOT NULL DEFAULT 1 COMMENT '排序',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 47 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '立牌分类表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_cemap_pglb
-- ----------------------------
DROP TABLE IF EXISTS `zc_cemap_pglb`;
CREATE TABLE `zc_cemap_pglb`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `upid` int(11) NOT NULL COMMENT ',上级',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `csort` int(11) NOT NULL DEFAULT 1 COMMENT '排序',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 304 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'GLB分类表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_config
-- ----------------------------
DROP TABLE IF EXISTS `zc_config`;
CREATE TABLE `zc_config`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `types` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参数代码',
  `params` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参数值',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '配置表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_debug_user
-- ----------------------------
DROP TABLE IF EXISTS `zc_debug_user`;
CREATE TABLE `zc_debug_user`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `targettype` int(11) NOT NULL COMMENT '|子系统|,CATA,targettype',
  `isuse` int(11) NOT NULL COMMENT '|开关|,BOOL',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '显示名',
  `user` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
  `pass` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码,MSK,**',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '调试用户表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_depart
-- ----------------------------
DROP TABLE IF EXISTS `zc_depart`;
CREATE TABLE `zc_depart`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `upid` int(11) NOT NULL COMMENT ',上级',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '组织名称',
  `leaderuser` int(11) NOT NULL DEFAULT 0 COMMENT '|负责人|,CATA,adminuser',
  `isuse` int(11) NOT NULL DEFAULT 0 COMMENT '|启用|,BOOL',
  `csort` int(11) NOT NULL DEFAULT 1 COMMENT '排序',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 63 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组织机构表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_dev_dbcode
-- ----------------------------
DROP TABLE IF EXISTS `zc_dev_dbcode`;
CREATE TABLE `zc_dev_dbcode`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `dbcid` int(11) NOT NULL COMMENT '生成器,DB,zc_dev_dbsaas',
  `tabl` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '表',
  `pcjson` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'PC配置',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 88 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_dev_dbsaas
-- ----------------------------
DROP TABLE IF EXISTS `zc_dev_dbsaas`;
CREATE TABLE `zc_dev_dbsaas`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `schem` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '数据库',
  `subpath` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '相对路径',
  `verifyfunc` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '认证函数',
  `codetable` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典表',
  `saasfield` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'SaaS字段',
  `saasusr` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'SaaS用户标识',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 79 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码目录表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_dev_note
-- ----------------------------
DROP TABLE IF EXISTS `zc_dev_note`;
CREATE TABLE `zc_dev_note`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `typeid` int(11) NOT NULL,
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  `content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',内容',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '开发文档表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_funcslow
-- ----------------------------
DROP TABLE IF EXISTS `zc_funcslow`;
CREATE TABLE `zc_funcslow`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `addtimes` bigint(20) NOT NULL COMMENT '|记录时间|,DATE',
  `ms` bigint(20) NOT NULL COMMENT '用时|,INT,ms',
  `uri` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '请求源',
  `posts` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参数',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 82 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '慢请求表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_icon
-- ----------------------------
DROP TABLE IF EXISTS `zc_icon`;
CREATE TABLE `zc_icon`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `icontarget` int(11) NOT NULL COMMENT '使用范围,CATA,icontarget',
  `targetid` int(11) NOT NULL COMMENT '对应关系',
  `icon` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '数据',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1033 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '图标表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_log
-- ----------------------------
DROP TABLE IF EXISTS `zc_log`;
CREATE TABLE `zc_log`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `loguser` int(11) NOT NULL COMMENT '操作人,CATA,adminuser',
  `readuser` int(11) NOT NULL COMMENT '审阅人,CATA,adminuser',
  `types` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'LOG分类',
  `addtimes` bigint(20) NOT NULL COMMENT '发生日期,DATE',
  `ip` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'IP,IP',
  `logs` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '详情',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 291 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '总控日志表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_lug
-- ----------------------------
DROP TABLE IF EXISTS `zc_lug`;
CREATE TABLE `zc_lug`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `isinout` int(11) NOT NULL COMMENT '|登录|,BOOL,登入.登出',
  `loguser` int(11) NOT NULL COMMENT '用户,CATA,adminuser',
  `addtimes` bigint(20) NOT NULL COMMENT '发生日期,DATE',
  `ip` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'IP,IP',
  `model` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备指纹',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3440 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '登录日志表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_menu
-- ----------------------------
DROP TABLE IF EXISTS `zc_menu`;
CREATE TABLE `zc_menu`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `upid` int(11) NOT NULL COMMENT ',上级菜单',
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  `url` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '链接',
  `pow` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '权限',
  `csort` int(11) NOT NULL DEFAULT 10 COMMENT '排序',
  `isuse` int(11) NOT NULL DEFAULT 1 COMMENT '|启用|,BOOL',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20035 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_mnufav
-- ----------------------------
DROP TABLE IF EXISTS `zc_mnufav`;
CREATE TABLE `zc_mnufav`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `favtarget` int(11) NOT NULL,
  `user` int(11) NOT NULL COMMENT '|用户|,CATA,adminuser',
  `menuid` int(11) NOT NULL,
  `addtimes` bigint(20) NOT NULL COMMENT '添加时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '常用菜单表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_mq
-- ----------------------------
DROP TABLE IF EXISTS `zc_mq`;
CREATE TABLE `zc_mq`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `mqstatus` int(11) NOT NULL COMMENT '消息状态 //status=1为消息队列，status=2为处理中，status=3-9为一次次重试累加，status=90为失败',
  `topic` int(11) NOT NULL COMMENT '消息分类',
  `json` int(11) NOT NULL COMMENT '消息内容',
  `nexttimes` bigint(20) NOT NULL COMMENT '下次处理时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '队列表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_online
-- ----------------------------
DROP TABLE IF EXISTS `zc_online`;
CREATE TABLE `zc_online`  (
  `id` bigint(11) NOT NULL AUTO_INCREMENT,
  `user` int(11) NOT NULL COMMENT '用户,CATA,adminuser',
  `targettype` int(11) NOT NULL COMMENT '|子系统|,CATA,targettype',
  `usrchg` int(11) NOT NULL DEFAULT 0,
  `sid` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',授权码',
  `addtimes` bigint(20) NOT NULL COMMENT '登录时间,DATE',
  `exptimes` bigint(20) NOT NULL COMMENT '到期时间,DATE',
  `ip` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '登录IP,IP',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MEMORY AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '管理员登录状态表' ROW_FORMAT = Fixed;

-- ----------------------------
-- Table structure for zc_power
-- ----------------------------
DROP TABLE IF EXISTS `zc_power`;
CREATE TABLE `zc_power`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `groupname` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '分组名',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '模块名称',
  `scope` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '模块代码',
  `powers` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '权限项',
  `csort` int(11) NOT NULL DEFAULT 1 COMMENT '排序',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '扩展权限表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_role
-- ----------------------------
DROP TABLE IF EXISTS `zc_role`;
CREATE TABLE `zc_role`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
  `power` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限',
  `memo` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色说明',
  `uptimes` bigint(20) NOT NULL COMMENT '更新时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_stats
-- ----------------------------
DROP TABLE IF EXISTS `zc_stats`;
CREATE TABLE `zc_stats`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `addtimes` bigint(20) NOT NULL COMMENT '|记录时间|,DATE',
  `func_succ` bigint(20) NOT NULL COMMENT '成功数|',
  `func_fail` bigint(20) NOT NULL COMMENT '失败数|',
  `func_commit` bigint(20) NOT NULL COMMENT '提交数|',
  `func_rollback` bigint(20) NOT NULL COMMENT '回滚数|',
  `func_runms` bigint(20) NOT NULL COMMENT '平均用时|,INT,ms',
  `disk_sysfree` bigint(20) NOT NULL COMMENT '磁盘系统剩余空间|,FSIZE',
  `disk_datafree` bigint(20) NOT NULL COMMENT '磁盘数据剩余空间|,FSIZE',
  `disk_ioms` bigint(20) NOT NULL COMMENT '磁盘IO响应|,INT,ms',
  `cpu_free` int(11) NOT NULL COMMENT 'CPU空闲占比|,PCT',
  `cpu_db` int(11) NOT NULL COMMENT 'CPU数据库占比|,PCT',
  `cpu_web` int(11) NOT NULL COMMENT 'CPU应用占比|,PCT',
  `cpu_oth` int(11) NOT NULL COMMENT 'CPU其他占比|,PCT',
  `mem_free` int(11) NOT NULL COMMENT '空闲内存|,FSIZE',
  `mem_db` int(11) NOT NULL COMMENT '数据库内存占比|,PCT',
  `mem_web` int(11) NOT NULL COMMENT '应用内存占比|,PCT',
  `mem_oth` int(11) NOT NULL COMMENT '其他内存占比|,PCT',
  `net_tcp` bigint(20) NOT NULL COMMENT '网络连接数|',
  `net_ioms` bigint(20) NOT NULL COMMENT '网络响应|,INT,ms',
  `db_query` bigint(20) NOT NULL COMMENT '数据库查询数|',
  `db_commit` bigint(20) NOT NULL COMMENT '数据库提交数|',
  `db_rollback` bigint(20) NOT NULL COMMENT '数据库回滚数|',
  `db_keyhit` int(11) NOT NULL COMMENT '索引命中率|,PCT',
  `db_dbhit` int(11) NOT NULL COMMENT '缓存命中率|,PCT',
  `db_tmptable` int(11) NOT NULL COMMENT '临时表占比|,PCT',
  `db_lock` int(11) NOT NULL COMMENT '当前锁数量|',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统健康表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_tokapi
-- ----------------------------
DROP TABLE IF EXISTS `zc_tokapi`;
CREATE TABLE `zc_tokapi`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '|appid|',
  `vuser` int(11) NOT NULL COMMENT '用户,CATA,adminuser',
  `apisecret` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',appkey',
  `ips` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '白名单IP,BR',
  `addtimes` bigint(20) NOT NULL COMMENT '创建时间,DATE',
  `uptimes` bigint(20) NOT NULL COMMENT '活跃时间,DATE',
  `pubkey` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '|证书|',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 215699 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'API接口授权' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_tokthd
-- ----------------------------
DROP TABLE IF EXISTS `zc_tokthd`;
CREATE TABLE `zc_tokthd`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '三方平台名称',
  `cfgtoken` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'ConfigData',
  `accesstoken` varchar(180) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'AccessData',
  `exptimes` bigint(20) NOT NULL COMMENT '过期时间,DATE',
  `memo` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '快捷备注',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'API三方平台' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_ymock
-- ----------------------------
DROP TABLE IF EXISTS `zc_ymock`;
CREATE TABLE `zc_ymock`  (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称备注',
  `upath` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类路径',
  `ufunc` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '函数名',
  `mockjson` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',mock数据',
  `lastrequest` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT ',请求快照',
  `lasttimes` bigint(20) NOT NULL DEFAULT 0 COMMENT '请求时间,DATE',
  `addtimes` bigint(20) NOT NULL COMMENT '建立时间,DATE',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'Mock表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Table structure for zc_zmem_var
-- ----------------------------
DROP TABLE IF EXISTS `zc_zmem_var`;
CREATE TABLE `zc_zmem_var`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `types` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '变量名',
  `params` bigint(20) NOT NULL COMMENT '数值',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = MEMORY AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '变量表' ROW_FORMAT = Fixed;

SET FOREIGN_KEY_CHECKS = 1;
