/*
 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: 20/01/2026 14:54:16
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_achievemember
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_achievement
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_crmbase
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_crmfollow
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_discuscomment
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_discussion
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_discusstate
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_experience
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_experienvisit
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_fundcate
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_fundexpendetail
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_fundexpense
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_funditem
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_fundproject
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_gmeeting
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_gmeetmember
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_lang
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_marriedchg
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_marriedori
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_orgbase
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_orgorder
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_orgsaleplan
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_realasset
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_rproject
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_rprojmember
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_rprojprogress
-- ----------------------------

-- ----------------------------
-- 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',
  `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,次',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实验室成员' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of lab_user
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_usronline
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_webachievement
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_weblead
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_webmain
-- ----------------------------

-- ----------------------------
-- 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;

-- ----------------------------
-- Records of lab_webmember
-- ----------------------------

SET FOREIGN_KEY_CHECKS = 1;
