1 Star 0 Fork 0

钱永春/oa

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
zwkj.sql 69.36 KB
一键复制 编辑 原始数据 按行查看 历史
钱永春 提交于 2020-12-10 23:36 . no commit message
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317
/*
Navicat Premium Data Transfer
Source Server : 本地
Source Server Type : MySQL
Source Server Version : 50714
Source Host : localhost:3306
Source Schema : zwkj
Target Server Type : MySQL
Target Server Version : 50714
File Encoding : 65001
Date: 06/12/2020 01:23:33
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for cdt_attendance_dates
-- ----------------------------
DROP TABLE IF EXISTS `cdt_attendance_dates`;
CREATE TABLE `cdt_attendance_dates` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`month` varchar(255) NOT NULL,
`date` date NOT NULL,
`checked` tinyint(1) NOT NULL,
`is_holiday` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='考勤日期';
-- ----------------------------
-- Table structure for cdt_car_apply
-- ----------------------------
DROP TABLE IF EXISTS `cdt_car_apply`;
CREATE TABLE `cdt_car_apply` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` char(120) NOT NULL COMMENT '标题',
`carid` int(11) DEFAULT NULL COMMENT '车辆信息ID',
`usedpople` varchar(240) DEFAULT NULL COMMENT '使用人',
`linkTel` char(60) DEFAULT NULL COMMENT '联系电话',
`usedate` int(11) DEFAULT NULL COMMENT '用车日期',
`usetime` char(60) DEFAULT NULL COMMENT '用车时长(上午 下午 全天)',
`startplace` varchar(255) DEFAULT NULL COMMENT '起始地',
`endplace` varchar(255) DEFAULT NULL COMMENT '目的地',
`applypeople` int(11) NOT NULL COMMENT '申请人id',
`status` int(4) NOT NULL DEFAULT '1' COMMENT '申请状态(1 正常 2 取消)',
`reason` tinytext COMMENT '取消原因(当状态 为取消是 必填)',
`stime` int(11) DEFAULT NULL COMMENT '用车开始时间',
`smileage` char(120) DEFAULT NULL COMMENT '用车开始里程数',
`spic` varchar(255) DEFAULT NULL COMMENT '用车开始时仪盘表照片',
`etime` int(11) DEFAULT NULL COMMENT '用车结束时间',
`epic` varchar(255) DEFAULT NULL COMMENT '用车结束时仪盘表照片',
`emileage` char(120) DEFAULT NULL COMMENT '用车结束里程数',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='车辆申请表';
-- ----------------------------
-- Table structure for cdt_car_info
-- ----------------------------
DROP TABLE IF EXISTS `cdt_car_info`;
CREATE TABLE `cdt_car_info` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`carno` char(60) NOT NULL COMMENT '车牌号',
`compay` varchar(240) DEFAULT NULL COMMENT '所属机构',
`cartype` int(4) DEFAULT NULL COMMENT '车辆类型 (1 轿车 2 商务车 3 大巴)',
`factoryno` varchar(180) DEFAULT NULL COMMENT '厂牌型号',
`EngineNo` varchar(60) DEFAULT NULL COMMENT '发动机号',
`buydate` int(11) DEFAULT NULL COMMENT '购置日期',
`Sealed` char(12) DEFAULT NULL COMMENT '是否封存 (1 已封存 2 未封存)',
`safeguard` int(11) NOT NULL COMMENT '车辆管理人员id',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='车辆信息表';
-- ----------------------------
-- Table structure for cdt_car_maintain
-- ----------------------------
DROP TABLE IF EXISTS `cdt_car_maintain`;
CREATE TABLE `cdt_car_maintain` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` char(120) NOT NULL COMMENT '维护标题',
`carid` int(11) DEFAULT NULL COMMENT '车辆信息ID',
`type` int(4) DEFAULT NULL COMMENT '维护类型 (1 日常维护 2 汽车保养 3 保险)',
`content` text COMMENT '维护内容备注',
`attachment` varchar(255) DEFAULT NULL COMMENT '附件',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='车辆维护信息表';
-- ----------------------------
-- Table structure for cdt_companies
-- ----------------------------
DROP TABLE IF EXISTS `cdt_companies`;
CREATE TABLE `cdt_companies` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '公司名称',
`fullname` varchar(100) NOT NULL DEFAULT '' COMMENT '公司全称',
`level` smallint(6) NOT NULL DEFAULT '0' COMMENT '等级',
`province` varchar(40) NOT NULL DEFAULT '' COMMENT '省份',
`city` varchar(40) NOT NULL DEFAULT '' COMMENT '城市',
`gov_representative` varchar(255) NOT NULL COMMENT '法定代表人',
`memo` varchar(255) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `cdt_companies_name_index` (`name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='公事主体表';
-- ----------------------------
-- Records of cdt_companies
-- ----------------------------
BEGIN;
INSERT INTO `cdt_companies` VALUES (1, '北京车和家有限公司', '北京车和家有限公司', 1, '北京', '北京', '李想', '#', NULL, NULL);
COMMIT;
-- ----------------------------
-- Table structure for cdt_contract
-- ----------------------------
DROP TABLE IF EXISTS `cdt_contract`;
CREATE TABLE `cdt_contract` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cno` char(120) DEFAULT NULL COMMENT '合同编号',
`ctitle` varchar(120) NOT NULL COMMENT '合同(项目)名称',
`types` int(4) DEFAULT NULL COMMENT '合同类型',
`htwtr` char(120) DEFAULT NULL COMMENT '委托人',
`cdate` int(11) DEFAULT NULL COMMENT '合同签订日期',
`sid` int(11) DEFAULT NULL COMMENT '合同上传人',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='合同表';
-- ----------------------------
-- Table structure for cdt_contract_bim
-- ----------------------------
DROP TABLE IF EXISTS `cdt_contract_bim`;
CREATE TABLE `cdt_contract_bim` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cno` char(120) DEFAULT NULL COMMENT '合同编号',
`ctitle` varchar(120) NOT NULL COMMENT 'BIM咨询单位',
`fwlx` char(12) DEFAULT NULL COMMENT '服务类型',
`zxfy` char(120) DEFAULT NULL COMMENT '咨询费(万元)(预计)',
`xmlx` char(120) DEFAULT NULL COMMENT '项目类型',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='合同表';
-- ----------------------------
-- Table structure for cdt_contract_zbdl
-- ----------------------------
DROP TABLE IF EXISTS `cdt_contract_zbdl`;
CREATE TABLE `cdt_contract_zbdl` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cno` char(120) DEFAULT NULL COMMENT '合同编号',
`kjyno` varchar(120) NOT NULL COMMENT '科技园项目编号',
`dlgs` int(4) DEFAULT NULL COMMENT '代理公司(科技园、精信嘉业、百聪)',
`fwnr` char(120) DEFAULT NULL COMMENT '服务内容 (招标代理:施工总包、监理、专业分包、材料设备、服务)',
`xmfzr` char(120) DEFAULT NULL COMMENT '项目负责人',
`xmjbr` char(120) DEFAULT NULL COMMENT '项目经办人',
`htmoney` char(120) DEFAULT NULL COMMENT '合同投资额(万元)',
`sfbz` char(120) DEFAULT NULL COMMENT '收费标准',
`backup` tinytext COMMENT '备注',
`Isarchive` enum('否','是') DEFAULT '否' COMMENT '是否归档',
`archiveno` char(120) DEFAULT NULL COMMENT '归档序号',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='合同表';
-- ----------------------------
-- Table structure for cdt_contract_zjzx
-- ----------------------------
DROP TABLE IF EXISTS `cdt_contract_zjzx`;
CREATE TABLE `cdt_contract_zjzx` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cno` char(120) DEFAULT NULL COMMENT '合同编号',
`kjyno` varchar(120) NOT NULL COMMENT '科技园项目编号',
`qdfwnr` text COMMENT '签订服务内容',
`zxf` char(120) DEFAULT NULL COMMENT '咨询费(万元)(预计)',
`ptype` char(120) DEFAULT NULL COMMENT '项目类型',
`tzgm` varchar(240) DEFAULT NULL COMMENT '投资规模',
`tzmoney` char(120) DEFAULT NULL COMMENT '投资额(万元)',
`kzjje` char(120) DEFAULT NULL COMMENT '控制价金额(万元)',
`hzjyjfzr` char(120) DEFAULT NULL COMMENT '合同及业绩中负责人',
`copies` char(20) DEFAULT NULL COMMENT '份数',
`group` char(120) DEFAULT NULL COMMENT '组别',
`company` char(120) DEFAULT NULL COMMENT '公司',
`yjr` char(120) DEFAULT NULL COMMENT '移交人',
`htyjtime` int(11) DEFAULT NULL COMMENT '合同移交时间',
`htbackup` varchar(255) DEFAULT NULL COMMENT '合同备注',
`Isarchive` enum('否','是') DEFAULT '否' COMMENT '是否归档',
`archiveno` char(120) DEFAULT NULL COMMENT '归档序号',
`archivetime` int(11) DEFAULT NULL COMMENT '归档移交时间',
`archivebackup` varchar(255) DEFAULT NULL COMMENT '归档备注',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='合同表';
-- ----------------------------
-- Table structure for cdt_departments
-- ----------------------------
DROP TABLE IF EXISTS `cdt_departments`;
CREATE TABLE `cdt_departments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`fullname` varchar(255) NOT NULL COMMENT '全称',
`shortname` varchar(255) DEFAULT NULL COMMENT '简称',
`level` tinyint(4) NOT NULL DEFAULT '0' COMMENT '部门级别',
`status` varchar(20) CHARACTER SET utf8mb4 DEFAULT '待生效',
`id_path` varchar(255) DEFAULT NULL COMMENT 'id路径组合',
`name_path` varchar(255) DEFAULT NULL COMMENT 'name_path路径组合',
`canceled` tinyint(1) NOT NULL DEFAULT '0' COMMENT '归档的部门',
`company_id` int(11) NOT NULL COMMENT '所属公司的id',
`parent_id` int(11) NOT NULL COMMENT '父级部门',
`leader_id` int(11) NOT NULL COMMENT '部门负责人Id',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `cdt_departments_fullname_index` (`fullname`) USING BTREE,
KEY `cdt_departments_id_path_index` (`id_path`) USING BTREE,
KEY `cdt_departments_name_path_index` (`name_path`) USING BTREE,
KEY `cdt_departments_parent_id_index` (`parent_id`) USING BTREE,
KEY `cdt_departments_leader_id_index` (`leader_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='部门管理';
-- ----------------------------
-- Records of cdt_departments
-- ----------------------------
BEGIN;
INSERT INTO `cdt_departments` VALUES (1, '研发部门', '研发部门', 1, '已生效', '1', '研发部门', 0, 1, 0, 1, NULL, NULL, NULL);
INSERT INTO `cdt_departments` VALUES (2, '系统部门', '系统部门', 2, '已生效', '1-2', '研发部门-系统部门', 0, 1, 1, 1, NULL, NULL, NULL);
INSERT INTO `cdt_departments` VALUES (3, '开发部门1', '开发部门1', 2, '待生效', NULL, NULL, 0, 0, 1, 1, NULL, '2020-11-26 23:24:12', '2020-11-26 23:24:12');
INSERT INTO `cdt_departments` VALUES (4, '三级部门123', '三级部门123', 3, '已生效', NULL, NULL, 0, 0, 2, 1, NULL, '2020-11-26 23:41:06', '2020-11-26 23:51:42');
COMMIT;
-- ----------------------------
-- Table structure for cdt_document
-- ----------------------------
DROP TABLE IF EXISTS `cdt_document`;
CREATE TABLE `cdt_document` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`filename` varchar(240) NOT NULL COMMENT '文件名',
`filetype` varchar(240) DEFAULT NULL COMMENT '类型',
`filesize` int(4) DEFAULT NULL COMMENT '文件大小',
`filepath` varchar(180) DEFAULT NULL COMMENT '文件路径',
`filepeople` varchar(60) DEFAULT NULL COMMENT '文件所属人',
`share` int(11) NOT NULL DEFAULT '0' COMMENT '是否共享(1 共享 0 不共享)',
`shareorg` char(120) DEFAULT NULL COMMENT '共享范围(共享到部门,不能针对个人)部门ID 分隔符 | ',
`Isdel` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除 1删除 0未删除',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='我的文档表';
-- ----------------------------
-- Table structure for cdt_email
-- ----------------------------
DROP TABLE IF EXISTS `cdt_email`;
CREATE TABLE `cdt_email` (
`id` smallint(4) unsigned NOT NULL AUTO_INCREMENT,
`types` int(11) NOT NULL DEFAULT '0' COMMENT '邮箱类型 (1收件 2发件 3草稿 4废件 )',
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
`macid` int(11) DEFAULT '0' COMMENT '邮件账号唯一id(收件箱的来源)',
`name` varchar(50) NOT NULL DEFAULT '' COMMENT '主题名称',
`content` text NOT NULL COMMENT '内容',
`add_file` varchar(200) DEFAULT NULL COMMENT '附件',
`from` varchar(255) DEFAULT NULL COMMENT '发件人',
`to` varchar(255) DEFAULT NULL COMMENT '收件人',
`reply_to` varchar(255) DEFAULT NULL COMMENT '回复到',
`cc` varchar(255) DEFAULT NULL COMMENT '抄送',
`mcc` varchar(255) DEFAULT NULL COMMENT '密送',
`sendtype` char(24) DEFAULT NULL COMMENT '发送选项 1 紧急 2 回执 3签名',
`read` tinyint(1) NOT NULL DEFAULT '0' COMMENT '已读 0未读 1已读',
`is_del` tinyint(3) NOT NULL DEFAULT '0' COMMENT '删除标记',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for cdt_email_account
-- ----------------------------
DROP TABLE IF EXISTS `cdt_email_account`;
CREATE TABLE `cdt_email_account` (
`id` mediumint(6) NOT NULL,
`sid` varchar(50) NOT NULL DEFAULT '' COMMENT '用户ID',
`mail_name` varchar(50) NOT NULL DEFAULT '' COMMENT '邮件显示名称',
`email` varchar(50) DEFAULT NULL COMMENT '邮件地址',
`pop3svr` varchar(50) NOT NULL DEFAULT '' COMMENT 'pop接收服务器',
`popport` char(24) DEFAULT '110' COMMENT 'pop接收端口',
`smtpsvr` varchar(50) NOT NULL DEFAULT '' COMMENT 'smtp发送服务器',
`smtpport` char(24) DEFAULT '25' COMMENT 'smtp发送端口',
`mail_pwd` varchar(50) NOT NULL DEFAULT '' COMMENT '邮件密码',
`ishome` char(24) CHARACTER SET utf32 DEFAULT NULL COMMENT '是否为默认邮箱',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='邮箱账户信息';
-- ----------------------------
-- Table structure for cdt_failed_jobs
-- ----------------------------
DROP TABLE IF EXISTS `cdt_failed_jobs`;
CREATE TABLE `cdt_failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`connection` text NOT NULL,
`queue` text NOT NULL,
`payload` longtext NOT NULL,
`exception` longtext NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for cdt_meeting_notice
-- ----------------------------
DROP TABLE IF EXISTS `cdt_meeting_notice`;
CREATE TABLE `cdt_meeting_notice` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '会议标题',
`meettype` int(4) DEFAULT NULL COMMENT '会议类型',
`room_id` int(11) NOT NULL DEFAULT '0' COMMENT '会议室ID',
`staff_id` int(11) NOT NULL DEFAULT '0' COMMENT '预定人',
`meetlxr` varchar(120) DEFAULT NULL COMMENT '会议主持人',
`meettel` varchar(60) DEFAULT NULL COMMENT '会议主持人电话',
`start_at` timestamp NULL DEFAULT NULL COMMENT '预定开始时间',
`end_at` timestamp NULL DEFAULT NULL COMMENT '预定结束时间',
`meetcompany` varchar(120) DEFAULT NULL COMMENT '会议组织单位',
`meetcontent` text NOT NULL COMMENT '会议内容',
`meet_people_c` varchar(255) DEFAULT NULL COMMENT '参会单位 人员',
`meet_people_w` varchar(255) DEFAULT NULL COMMENT '参会我的联系人人员',
`attachments` varchar(255) CHARACTER SET ucs2 DEFAULT NULL COMMENT '附件',
`Iscancel` char(12) DEFAULT NULL COMMENT '是否取消',
`reason` varchar(255) DEFAULT NULL COMMENT '取消原因',
`canceltime` int(11) DEFAULT NULL COMMENT '取消时间',
`reminder` char(4) DEFAULT NULL COMMENT '是否邮件提醒',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `cdt_meeting_room_set_log_room_id_index` (`room_id`) USING BTREE,
KEY `cdt_meeting_room_set_log_staff_id_index` (`staff_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='会议通知';
-- ----------------------------
-- Table structure for cdt_meeting_notice_log
-- ----------------------------
DROP TABLE IF EXISTS `cdt_meeting_notice_log`;
CREATE TABLE `cdt_meeting_notice_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`mid` int(11) NOT NULL COMMENT '会议通知ID',
`meet_people` varchar(255) DEFAULT NULL COMMENT '参会单位 人员',
`meet_people_type` char(24) DEFAULT NULL COMMENT '参会 人员类型 (单位联系人和 我的联系人)',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='会议通知查看详情记录表';
-- ----------------------------
-- Table structure for cdt_meeting_room_set_log
-- ----------------------------
DROP TABLE IF EXISTS `cdt_meeting_room_set_log`;
CREATE TABLE `cdt_meeting_room_set_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '会议标题',
`meettype` int(4) DEFAULT NULL COMMENT '会议类型',
`room_id` int(11) NOT NULL DEFAULT '0' COMMENT '会议室ID',
`staff_id` int(11) NOT NULL DEFAULT '0' COMMENT '预定人',
`meetlxr` varchar(120) DEFAULT NULL COMMENT '会议联系人',
`meettel` varchar(60) DEFAULT NULL COMMENT '会议联系人电话',
`start_at` timestamp NULL DEFAULT NULL COMMENT '预定开始时间',
`end_at` timestamp NULL DEFAULT NULL COMMENT '预定结束时间',
`meetstatus` int(4) DEFAULT NULL COMMENT '会议室状态 eg:已预订 已取消',
`memo` varchar(255) NOT NULL DEFAULT '' COMMENT '会议室预定备注',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `cdt_meeting_room_set_log_room_id_index` (`room_id`) USING BTREE,
KEY `cdt_meeting_room_set_log_staff_id_index` (`staff_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='会议室预定记录';
-- ----------------------------
-- Table structure for cdt_meeting_rooms
-- ----------------------------
DROP TABLE IF EXISTS `cdt_meeting_rooms`;
CREATE TABLE `cdt_meeting_rooms` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`office_id` int(11) NOT NULL DEFAULT '0' COMMENT '办公区ID',
`name` varchar(20) NOT NULL DEFAULT '' COMMENT '会议室名称',
`urlname` varchar(40) NOT NULL DEFAULT '' COMMENT 'URL上体现的英文名称,比如lvdi_1',
`sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序正序排列',
`status` varchar(10) NOT NULL DEFAULT '下架' COMMENT '会议室状态',
`forbid_start` timestamp NULL DEFAULT NULL COMMENT '禁止预定开始时间',
`forbid_end` timestamp NULL DEFAULT NULL COMMENT '禁止预定结束时间',
`memo` varchar(50) NOT NULL DEFAULT '' COMMENT '会议室备注,如人数',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `cdt_meeting_rooms_office_id_index` (`office_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='会议室';
-- ----------------------------
-- Records of cdt_meeting_rooms
-- ----------------------------
BEGIN;
INSERT INTO `cdt_meeting_rooms` VALUES (1, 0, '会议室', '1', 1, '上架', NULL, NULL, '上架下', NULL, NULL, '2020-11-23 23:54:29');
INSERT INTO `cdt_meeting_rooms` VALUES (2, 0, '会议2', '12', 0, '下架', NULL, NULL, '1', '2020-11-24 00:06:48', '2020-11-23 23:24:36', '2020-11-24 00:06:48');
INSERT INTO `cdt_meeting_rooms` VALUES (3, 0, '会议室2', '1', 0, '下架', NULL, NULL, '1', '2020-11-24 00:05:49', '2020-11-23 23:45:46', '2020-11-24 00:05:49');
INSERT INTO `cdt_meeting_rooms` VALUES (4, 0, '会议室2', '1', 0, '下架', NULL, NULL, '#', '2020-11-24 00:07:41', '2020-11-24 00:07:38', '2020-11-24 00:07:41');
INSERT INTO `cdt_meeting_rooms` VALUES (5, 0, '12', '12', 0, '下架', NULL, NULL, '12', NULL, '2020-11-28 14:17:53', '2020-11-28 14:17:53');
COMMIT;
-- ----------------------------
-- Table structure for cdt_member_group
-- ----------------------------
DROP TABLE IF EXISTS `cdt_member_group`;
CREATE TABLE `cdt_member_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`groupno` varchar(60) DEFAULT NULL COMMENT '团队编号',
`groupname` varchar(240) DEFAULT NULL COMMENT '团队名称',
`f_ranking` int(12) DEFAULT NULL COMMENT '首次排名',
`s_ranking` int(12) DEFAULT NULL COMMENT '决赛次排名',
`status` int(2) DEFAULT '0' COMMENT ' 0 不显示1 显示',
`regtime` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of cdt_member_group
-- ----------------------------
BEGIN;
INSERT INTO `cdt_member_group` VALUES (7, 'T448023', '撒打发阿萨德法师法', NULL, NULL, 1, 1594956936);
INSERT INTO `cdt_member_group` VALUES (8, 'T448024', 'cwerwerqw', NULL, NULL, 1, 1594980378);
INSERT INTO `cdt_member_group` VALUES (14, 'T448022', '参赛队伍', NULL, NULL, 1, 1596127683);
INSERT INTO `cdt_member_group` VALUES (15, 'T762302', '参赛队伍', NULL, NULL, 1, 1596127805);
INSERT INTO `cdt_member_group` VALUES (16, 'T484408', '参赛队伍2', NULL, NULL, 0, 1596356576);
INSERT INTO `cdt_member_group` VALUES (17, 'T224448', '内队员组成', NULL, NULL, 0, 1596359298);
INSERT INTO `cdt_member_group` VALUES (18, 'T060222', '及以内队员组成', NULL, NULL, 0, 1596366150);
INSERT INTO `cdt_member_group` VALUES (19, 'T488466', '三人团', NULL, NULL, 0, 1596374297);
COMMIT;
-- ----------------------------
-- Table structure for cdt_migrations
-- ----------------------------
DROP TABLE IF EXISTS `cdt_migrations`;
CREATE TABLE `cdt_migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(255) NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of cdt_migrations
-- ----------------------------
BEGIN;
INSERT INTO `cdt_migrations` VALUES (3, '2019_08_19_000000_create_failed_jobs_table', 1);
INSERT INTO `cdt_migrations` VALUES (8, '2020_11_09_211820_create_operate_log_table', 3);
INSERT INTO `cdt_migrations` VALUES (9, '2014_10_12_000000_create_users_table', 4);
INSERT INTO `cdt_migrations` VALUES (11, '2020_11_18_154444_alter_field_to_cdt_system_admin', 5);
INSERT INTO `cdt_migrations` VALUES (19, '2020_11_20_222420_alter_field_to_tables', 9);
INSERT INTO `cdt_migrations` VALUES (23, '2020_11_18_161020_create_tables_table', 10);
INSERT INTO `cdt_migrations` VALUES (25, '2020_11_20_174005_create_staffs_table', 11);
INSERT INTO `cdt_migrations` VALUES (27, '2020_11_30_110934_create_system_rules_table', 12);
INSERT INTO `cdt_migrations` VALUES (28, '2020_11_30_105305_create_system_role_admin_table', 13);
COMMIT;
-- ----------------------------
-- Table structure for cdt_notebook
-- ----------------------------
DROP TABLE IF EXISTS `cdt_notebook`;
CREATE TABLE `cdt_notebook` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL COMMENT '笔记本所属人',
`ntype` int(11) DEFAULT NULL COMMENT '类型ID',
`content` text NOT NULL COMMENT '笔记本内容',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='笔记本';
-- ----------------------------
-- Table structure for cdt_notebook_type
-- ----------------------------
DROP TABLE IF EXISTS `cdt_notebook_type`;
CREATE TABLE `cdt_notebook_type` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL COMMENT '笔记本所属人',
`ntype` int(11) DEFAULT NULL COMMENT '类型ID',
`content` text NOT NULL COMMENT '笔记本内容',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='笔记本类型表';
-- ----------------------------
-- Table structure for cdt_notice
-- ----------------------------
DROP TABLE IF EXISTS `cdt_notice`;
CREATE TABLE `cdt_notice` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '通知标题',
`isred` char(4) DEFAULT NULL COMMENT '是否红标题(1 是 0 否)',
`secondtitle` varchar(255) NOT NULL DEFAULT '' COMMENT '副标题',
`ntype` int(4) DEFAULT NULL COMMENT '通知类型',
`staff_id` int(11) NOT NULL DEFAULT '0' COMMENT '发布人',
`linktype` char(4) NOT NULL DEFAULT '1' COMMENT '链接方式(1 普通 2 外链)',
`link` varchar(255) DEFAULT NULL COMMENT '外链地址url',
`author` varchar(60) DEFAULT NULL COMMENT '作者',
`article_type` char(4) DEFAULT NULL COMMENT '文章类型(撰写 编辑 摘录)',
`label` varchar(240) DEFAULT NULL COMMENT '标签(| 分隔符)',
`attachments` varchar(255) CHARACTER SET ucs2 DEFAULT NULL COMMENT '附件(| 分隔符)',
`content` text NOT NULL COMMENT '内容',
`showltime` int(11) DEFAULT NULL COMMENT '发布时间',
`people_show` varchar(255) DEFAULT NULL COMMENT '可查看人员 (空位全部人员可看)(| 分隔符)',
`people_dow` varchar(255) DEFAULT NULL COMMENT '可下载人员 (空位全部人员可下载)(| 分隔符)',
`RelatedProcess` varchar(255) DEFAULT NULL COMMENT '相关流程(| 分隔符)',
`RelatedProject` varchar(255) DEFAULT NULL COMMENT '相关项目(| 分隔符)',
`RelevantContract` varchar(255) DEFAULT NULL COMMENT '相关合同(| 分隔符)',
`status` char(4) DEFAULT NULL COMMENT '状态(1 正高 2 草稿箱)',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `cdt_meeting_room_set_log_staff_id_index` (`staff_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='通知通告表';
-- ----------------------------
-- Table structure for cdt_notice_category
-- ----------------------------
DROP TABLE IF EXISTS `cdt_notice_category`;
CREATE TABLE `cdt_notice_category` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` int(11) NOT NULL COMMENT '类型名称',
`pid` int(11) NOT NULL DEFAULT '0' COMMENT '父类ID',
`status` int(4) NOT NULL DEFAULT '1' COMMENT '状态 0 不显示 1 显示',
`sort` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='通知通告类型表';
-- ----------------------------
-- Table structure for cdt_notice_log
-- ----------------------------
DROP TABLE IF EXISTS `cdt_notice_log`;
CREATE TABLE `cdt_notice_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`nid` int(11) NOT NULL COMMENT '通知通告ID',
`see_people` varchar(255) DEFAULT NULL COMMENT '查看人员id',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL COMMENT '查看时间',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='通知通告表查看详情记录表';
-- ----------------------------
-- Table structure for cdt_operate_log
-- ----------------------------
DROP TABLE IF EXISTS `cdt_operate_log`;
CREATE TABLE `cdt_operate_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`batch_number` int(11) NOT NULL DEFAULT '0' COMMENT '批次号',
`app` varchar(255) NOT NULL DEFAULT '' COMMENT '应用/功能',
`model_type` varchar(255) NOT NULL DEFAULT '' COMMENT '模型',
`model_id` int(11) NOT NULL DEFAULT '0' COMMENT '模型ID',
`staff_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
`staff_name` varchar(255) NOT NULL DEFAULT '' COMMENT '用户名称',
`field` varchar(255) NOT NULL DEFAULT '' COMMENT '字段',
`field_name` varchar(255) NOT NULL DEFAULT '' COMMENT '字段名称',
`operate_type` varchar(255) NOT NULL DEFAULT '' COMMENT '操作类型:新增、变更、删除',
`old_value` varchar(255) NOT NULL DEFAULT '' COMMENT '旧值',
`new_value` varchar(255) NOT NULL DEFAULT '' COMMENT '新值',
`row_data` text COMMENT '新增数据json',
`memo` text COMMENT '备注',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for cdt_project
-- ----------------------------
DROP TABLE IF EXISTS `cdt_project`;
CREATE TABLE `cdt_project` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cno` char(120) DEFAULT NULL COMMENT '合同编号',
`pno` char(120) DEFAULT NULL COMMENT '项目编号',
`ptitle` varchar(120) NOT NULL COMMENT '项目名称',
`ptypes` int(4) DEFAULT NULL COMMENT '项目类型',
`zbbm` char(120) DEFAULT NULL COMMENT '主办部门',
`zbbmjbr` varchar(120) DEFAULT NULL COMMENT '主办部门经办人',
`xbbum` char(120) DEFAULT NULL COMMENT '协办部门',
`xbbmjbr` char(120) DEFAULT NULL COMMENT '协办部门经办人',
`jsgm` char(120) DEFAULT NULL COMMENT '建设规模',
`jsgmdw` char(80) DEFAULT NULL COMMENT '建设规模单位(台 平方米 米 千米 亩 个 其他)',
`ztzmoney` char(120) DEFAULT NULL COMMENT '总投资额(万元)',
`zzxz` char(12) DEFAULT NULL COMMENT '资金性质( 国拨 自筹 国拨+自筹 )',
`fwf` char(60) DEFAULT NULL COMMENT '服务费(万元)',
`gctype` char(120) DEFAULT NULL COMMENT '工程类型',
`xmhqqd` char(60) DEFAULT NULL COMMENT '项目获取渠道(直接委托 投标中标 中介 发改委抽取 入围抽取 个人关系 业主推荐)',
`gcdd` varchar(255) DEFAULT NULL COMMENT '工程地点',
`yzdwmc` varchar(120) DEFAULT NULL COMMENT '业主单位名称',
`yzdwlx` char(60) DEFAULT NULL COMMENT '业主单位类型',
`yzlxr` char(120) DEFAULT NULL COMMENT '业主联系人',
`yzlxdh` char(60) DEFAULT NULL COMMENT '业主联系电话',
`fwnr` text COMMENT '服务内容',
`sfbz` varchar(255) DEFAULT NULL COMMENT '收费标准',
`backup` varchar(255) DEFAULT NULL COMMENT '项目备注',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='项目表';
-- ----------------------------
-- Table structure for cdt_project_bim
-- ----------------------------
DROP TABLE IF EXISTS `cdt_project_bim`;
CREATE TABLE `cdt_project_bim` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`pno` char(120) DEFAULT NULL COMMENT '项目编号',
`htsmb` char(120) DEFAULT NULL COMMENT '合同(扫描版)',
`tzdzb` varchar(255) DEFAULT NULL COMMENT '图纸(电子版)',
`qtxgzl` varchar(255) DEFAULT NULL COMMENT '其他相关资料(电子版或纸质版)',
`tzyd` varchar(255) DEFAULT NULL COMMENT '图纸答疑',
`gzlxd` varchar(255) DEFAULT NULL COMMENT '工作联系单(电子版)',
`cgwj` varchar(255) DEFAULT NULL COMMENT '成果文件(BIM模型、管线碰撞报告文件、净高分析报告文件、施工进度模拟视频文件、漫游视频文件、施工工序模拟视频文件、节点模型文件、整个项目资料需在平台体现)文件需盖章、模型需有签字确认移交单。',
`gczxxm` varchar(255) DEFAULT NULL COMMENT '工程BIM咨询项目过程记录表(纸质版及相应扫描版)',
`myddcb` varchar(255) DEFAULT NULL COMMENT '满意度调查表(纸质版及相应扫描版)',
`qkfpfyj` varchar(255) DEFAULT NULL COMMENT '清款发票复印件及请款计算过程(扫描版)',
`backup` varchar(255) DEFAULT NULL COMMENT '备注',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='BIM项目';
-- ----------------------------
-- Table structure for cdt_project_gcxm
-- ----------------------------
DROP TABLE IF EXISTS `cdt_project_gcxm`;
CREATE TABLE `cdt_project_gcxm` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`pno` char(120) DEFAULT NULL COMMENT '项目编号',
`gdxx` char(120) DEFAULT NULL COMMENT '归档信息',
`wtxyqdtime` varchar(255) DEFAULT NULL COMMENT '委托协议签订时间',
`htstime` varchar(255) DEFAULT NULL COMMENT '合同执行开始时间',
`heetime` varchar(255) DEFAULT NULL COMMENT '合同执行结束时间',
`xmfzr` varchar(255) DEFAULT NULL COMMENT '项目负责人',
`wtxysmjsc` varchar(255) DEFAULT NULL COMMENT '委托协议扫描件上传',
`wtpjbsmjsc` varchar(255) DEFAULT NULL COMMENT '委托评价表扫描件上传',
`cgzlgzysc` varchar(255) DEFAULT NULL COMMENT '成果资料盖章页扫描件上传',
`gczldzb` varchar(255) DEFAULT NULL COMMENT '过程资料电子版终稿上传',
`backup` varchar(255) DEFAULT NULL COMMENT '备注',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='工程咨询归档信息/项目管理归档信息';
-- ----------------------------
-- Table structure for cdt_project_supervision
-- ----------------------------
DROP TABLE IF EXISTS `cdt_project_supervision`;
CREATE TABLE `cdt_project_supervision` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`pno` char(120) DEFAULT NULL COMMENT '项目编号',
`xmzj` char(120) DEFAULT NULL COMMENT '项目总监',
`wtxyqdtime` varchar(255) DEFAULT NULL COMMENT '委托协议签订时间',
`htstime` varchar(255) DEFAULT NULL COMMENT '合同执行开始时间',
`heetime` varchar(255) DEFAULT NULL COMMENT '合同执行结束时间',
`wtxysmjsc` varchar(255) DEFAULT NULL COMMENT '委托协议扫描件上传',
`wtpjbsmjsc` varchar(255) DEFAULT NULL COMMENT '委托评价表扫描件上传',
`zbtzssmjsc` varchar(255) DEFAULT NULL COMMENT '中标通知书扫描件上传',
`jgysjlsmjsc` varchar(255) DEFAULT NULL COMMENT '竣工验收记录扫描件上传',
`jlghfa` varchar(255) DEFAULT NULL COMMENT '监理规划方案电子版终稿及过程资料扫描上传',
`backup` varchar(255) DEFAULT NULL COMMENT '备注',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='监理归档信息';
-- ----------------------------
-- Table structure for cdt_project_zbdl
-- ----------------------------
DROP TABLE IF EXISTS `cdt_project_zbdl`;
CREATE TABLE `cdt_project_zbdl` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`pno` char(120) DEFAULT NULL COMMENT '项目编号',
`jjy` char(120) DEFAULT NULL COMMENT '科技园项目号',
`ptitle` varchar(120) NOT NULL COMMENT '项目名称',
`wtdw` int(4) DEFAULT NULL COMMENT '委托单位',
`jsgm` char(120) DEFAULT NULL COMMENT '项目规模?',
`jsgmdw` char(80) DEFAULT NULL COMMENT '项目规模单位?(台 平方米 米 千米 亩 个 其他)',
`tzmoney` char(120) DEFAULT NULL COMMENT '投资额?(万元)',
`zzxz` char(12) DEFAULT NULL COMMENT '资金性质?( 国拨 自筹 国拨+自筹 )',
`gctype` char(120) DEFAULT NULL COMMENT '项目类别(?)',
`zbnr` char(60) DEFAULT NULL COMMENT '招标内容(如:幕墙、弱电、设计、勘察、装修、电梯、可行性研究、水土保持、道路养护等)',
`zbno` char(60) DEFAULT NULL COMMENT '标办编号',
`zbfs` varchar(255) DEFAULT NULL COMMENT '招标方式',
`dlgs` varchar(120) DEFAULT NULL COMMENT '代理公司',
`xyqdtime` int(11) DEFAULT NULL COMMENT '协议签订时间',
`htstime` int(11) DEFAULT NULL COMMENT '合同执行开始日期',
`htetime` int(11) DEFAULT NULL COMMENT '合同执行结束日期',
`fbgstime` int(11) DEFAULT NULL COMMENT '发布公告时间',
`kbtime` int(11) DEFAULT NULL COMMENT '开标时间',
`xmfzr` char(24) DEFAULT NULL COMMENT '项目负责人',
`xmwtje` char(120) DEFAULT NULL COMMENT '项目委托金额(万元)',
`zbggfb` varchar(120) DEFAULT NULL COMMENT '招标公告发布平台',
`zbggwzlj` varchar(255) DEFAULT NULL COMMENT '招标公告网站连接',
`zbggpt` varchar(180) DEFAULT NULL COMMENT '中标公告平台',
`zhbggwzlj` varchar(255) DEFAULT NULL COMMENT '中标公告网站连接',
`zbdwmc` varchar(120) DEFAULT NULL COMMENT '中标单位名称',
`zbdwlxr` varchar(30) DEFAULT NULL COMMENT '中标单位联系人',
`zbdwlxdh` varchar(60) DEFAULT NULL COMMENT '中标单位联系电话',
`zbje` char(120) DEFAULT NULL COMMENT '中标金额(万元)',
`fzbtzstime` int(11) DEFAULT NULL COMMENT '发中标通知书时间',
`pfsmjsc` varchar(255) DEFAULT NULL COMMENT '批复扫描件上传',
`wtxxsmjsc` varchar(255) DEFAULT NULL COMMENT '委托协议扫描件上传',
`zbwjdzbsc` varchar(255) DEFAULT NULL COMMENT '招标文件电子版上传',
`zbggwyjtsc` varchar(255) DEFAULT NULL COMMENT '招标公告网页截图上传',
`pbzlsmjsc` varchar(255) DEFAULT NULL COMMENT '评标资料扫描件上传',
`zbtzssmjsc` varchar(255) DEFAULT NULL COMMENT '中标通知书扫描件上传',
`zbgswyjtsc` varchar(255) DEFAULT NULL COMMENT '中标公告网页截图上传',
`wtpjbsmjsc` varchar(255) DEFAULT NULL COMMENT '委托评价表扫描件上传',
`backup` varchar(255) DEFAULT NULL COMMENT '项目备注',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='招标代理项目';
-- ----------------------------
-- Table structure for cdt_project_zjzx
-- ----------------------------
DROP TABLE IF EXISTS `cdt_project_zjzx`;
CREATE TABLE `cdt_project_zjzx` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`pno` char(120) DEFAULT NULL COMMENT '项目编号',
`xyqdtime` int(11) DEFAULT NULL COMMENT '造价协议签订时间',
`htstime` int(11) DEFAULT NULL COMMENT '合同执行开始日期',
`htetime` int(11) DEFAULT NULL COMMENT '合同执行结束日期',
`zbkzj` char(60) DEFAULT NULL COMMENT '招标控制价(万元)',
`sfjdje` char(60) DEFAULT NULL COMMENT '司法鉴定金额(万元)',
`ssje` char(60) DEFAULT NULL COMMENT '送审金额(万元)',
`sdje` char(60) DEFAULT NULL COMMENT '审定金额(万元)',
`bzr` char(60) DEFAULT NULL COMMENT '编制人',
`shr` char(60) DEFAULT NULL COMMENT '审核人',
`fhr` char(60) DEFAULT NULL COMMENT '复核人',
`zjwtxysmjsc` varchar(255) DEFAULT NULL COMMENT '造价委托协议扫描件上传',
`zjwtpjbsmjsc` varchar(255) DEFAULT NULL COMMENT '造价委托评价表扫描件上传',
`scjjpwsmjsc` varchar(255) DEFAULT NULL COMMENT '审查结论批文(财政局或审计局)扫描件上传',
`gclqdjbzbg` varchar(255) DEFAULT NULL COMMENT '工程量清单及编制报告盖章页扫描件上传',
`gcqddgwj` varchar(255) DEFAULT NULL COMMENT '工程量清单成果文件电子版终稿上传',
`zbkzjbzbg` varchar(255) DEFAULT NULL COMMENT '招标控制价及编制报告盖章页扫描件上传',
`zbkzjcgwj` varchar(255) DEFAULT NULL COMMENT '招标控制价成果文件电子版终稿上传',
`gssbg` varchar(255) DEFAULT NULL COMMENT '概、预算报告盖章页扫描件上传',
`gssbgdzb` varchar(255) DEFAULT NULL COMMENT '概、预算成果文件电子版终稿上传',
`jsshcgdsfb` varchar(255) DEFAULT NULL COMMENT '结算审核报告及三方定案表盖章页扫描件上传',
`jsshcg` varchar(255) DEFAULT NULL COMMENT '结算审核成果文件电子版终稿上传',
`qgczjgczl` varchar(255) DEFAULT NULL COMMENT '全过程造价过程资料盖章页扫描件上传',
`qgczjgczldzb` varchar(255) DEFAULT NULL COMMENT '全过程造价过程资料电子版终稿上传',
`backup` varchar(255) DEFAULT NULL COMMENT '备注',
`htdzb` varchar(255) DEFAULT NULL COMMENT '合同(电子版)',
`tzdzb` varchar(255) DEFAULT NULL COMMENT '图纸(电子版)',
`rwfpd` varchar(255) DEFAULT NULL COMMENT '任务分配单(纸质版及电子版)',
`gzjjd` varchar(255) DEFAULT NULL COMMENT '工作交接单',
`tzdj` varchar(255) DEFAULT NULL COMMENT '图纸答疑',
`gzlxd` varchar(255) DEFAULT NULL COMMENT '工作联系单(电子版)',
`sjshd` varchar(255) DEFAULT NULL COMMENT '三级审核单(纸质版及电子版)',
`cgwj` varchar(255) DEFAULT NULL COMMENT '成果文件(清单六个章页、控制价封皮六个章页,结算为审定表及审核报告),盖章页均要求纸质版和电子版,广联达软件文件导成PDF版',
`dffxb` varchar(255) DEFAULT NULL COMMENT '单方分析表(电子版)',
`gczjzxxmgc` varchar(255) DEFAULT NULL COMMENT '工程造价咨询项目过程记录表(纸质版及电子版)',
`myddcb` varchar(255) DEFAULT NULL COMMENT '满意度调查表(纸质版及电子版)',
`jsdg` varchar(255) DEFAULT NULL COMMENT '计算底稿(电子版)',
`qkfpfyj` varchar(255) DEFAULT NULL COMMENT '清款发票复印件及请款计算过程(电子版)',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='造价咨询项目';
-- ----------------------------
-- Table structure for cdt_schedule
-- ----------------------------
DROP TABLE IF EXISTS `cdt_schedule`;
CREATE TABLE `cdt_schedule` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(240) NOT NULL COMMENT '日程主题',
`sid` int(11) DEFAULT NULL COMMENT '日程所属人',
`adress` varchar(255) DEFAULT NULL COMMENT '地点',
`Isrepeat` char(4) DEFAULT NULL COMMENT '是否重复',
`repeat` char(4) DEFAULT NULL COMMENT '重复提醒周期',
`Isallday` char(4) DEFAULT NULL COMMENT '是否全天事件',
`stime` int(11) DEFAULT NULL COMMENT '开始时间',
`etime` int(11) DEFAULT NULL COMMENT '结束时间',
`Isopen` char(4) DEFAULT NULL COMMENT '是否公开(属性:公开 私密)',
`Isemail` char(4) DEFAULT NULL COMMENT '是否邮件提醒',
`content` text COMMENT '日程内容',
`attachment` varchar(255) DEFAULT NULL COMMENT '附件( 分隔符 | )',
`InvitedS` varchar(240) DEFAULT NULL COMMENT '受邀人( 分隔符 | )',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL COMMENT '查看时间',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='我的日程';
-- ----------------------------
-- Table structure for cdt_staffs
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs`;
CREATE TABLE `cdt_staffs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL COMMENT '姓名',
`sex` enum('男','女') DEFAULT NULL,
`ename` varchar(255) DEFAULT NULL COMMENT '英文名字',
`mobile` varchar(255) NOT NULL DEFAULT '' COMMENT '联系方式',
`tel` varchar(30) DEFAULT NULL COMMENT '住宅电话',
`web` varchar(255) DEFAULT NULL COMMENT '个人网址',
`email` varchar(255) NOT NULL DEFAULT '' COMMENT '邮件, 手动填写',
`type` varchar(30) NOT NULL DEFAULT '全职' COMMENT '员工类型 全职 兼职 实习',
`compayid` int(11) NOT NULL COMMENT '所属公司id',
`department_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属部门Id',
`job_title` varchar(30) NOT NULL DEFAULT '' COMMENT '职位名',
`pinyin` varchar(30) NOT NULL DEFAULT '' COMMENT '拼音',
`avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '头像 url',
`detail` text NOT NULL COMMENT '个人介绍',
`weixin` varchar(255) NOT NULL DEFAULT '' COMMENT '微信',
`qq` varchar(255) NOT NULL DEFAULT '' COMMENT 'QQ',
`is_open_oa` char(30) DEFAULT NULL COMMENT '是否开通OA账号 已开通 未开通',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`manager_staff_id` int(11) DEFAULT NULL COMMENT '上级领导',
PRIMARY KEY (`id`) USING BTREE,
KEY `cdt_staffs_department_id_index` (`department_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='员工表';
-- ----------------------------
-- Records of cdt_staffs
-- ----------------------------
BEGIN;
INSERT INTO `cdt_staffs` VALUES (1, '李珊', NULL, NULL, '15910866822', NULL, NULL, '', '全职', 0, 0, '', '', '', '', '', '', NULL, '2020-12-05 15:05:08', NULL, '2020-12-05 15:05:08', NULL);
INSERT INTO `cdt_staffs` VALUES (2, '朱阳阳', '男', '', '', '', '', '', '', 0, 0, '', '', '', '#', '', '', '', '2020-12-05 15:05:15', '2020-12-05 01:48:41', '2020-12-05 15:05:15', NULL);
INSERT INTO `cdt_staffs` VALUES (3, '朱阳阳', '男', 'zhuyy', '13520083281', '', '', '12351231@163.com', '正式', 0, 0, 'PHP开发', 'zhu yang yang', '', '#', '12', '12', '', NULL, '2020-12-05 02:09:56', '2020-12-05 15:05:56', 0);
COMMIT;
-- ----------------------------
-- Table structure for cdt_staffs_account
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs_account`;
CREATE TABLE `cdt_staffs_account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL COMMENT '员工表ID',
`sname` varchar(120) NOT NULL COMMENT '登录账号',
`spwd` varchar(120) NOT NULL COMMENT '登录密码',
`salt` varchar(255) NOT NULL COMMENT '账号秘钥',
`status` enum('正常','锁定') NOT NULL DEFAULT '正常' COMMENT '账号状态',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for cdt_staffs_contacts
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs_contacts`;
CREATE TABLE `cdt_staffs_contacts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL COMMENT '姓名',
`tid` int(11) DEFAULT NULL COMMENT '所属联系人分类类型',
`sex` char(12) DEFAULT NULL COMMENT '性别',
`birthday` int(11) DEFAULT NULL COMMENT '生日',
`tel` varchar(60) DEFAULT NULL COMMENT '住宅电话',
`web` varchar(210) NOT NULL COMMENT '个人网址',
`mobile` varchar(255) NOT NULL DEFAULT '' COMMENT '联系方式',
`email` varchar(255) NOT NULL DEFAULT '' COMMENT '邮件, 手动填写',
`compay` varchar(120) NOT NULL COMMENT '所属公司',
`department` varchar(60) NOT NULL DEFAULT '0' COMMENT '所属部门',
`job_title` varchar(30) NOT NULL DEFAULT '' COMMENT '职位名',
`pinyin` varchar(30) NOT NULL DEFAULT '' COMMENT '拼音',
`avatar` varchar(255) NOT NULL DEFAULT '' COMMENT '头像 url',
`detail` text NOT NULL COMMENT '个人介绍',
`weixin` varchar(255) NOT NULL DEFAULT '' COMMENT '微信',
`qq` varchar(255) NOT NULL DEFAULT '' COMMENT 'QQ',
`adress` varchar(255) DEFAULT NULL COMMENT '现住地址',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `cdt_staffs_department_id_index` (`department`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='员工联系人表';
-- ----------------------------
-- Table structure for cdt_staffs_contactstype
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs_contactstype`;
CREATE TABLE `cdt_staffs_contactstype` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT ' id',
`tname` varchar(120) NOT NULL COMMENT '分类名称名称',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='角色权限关联表';
-- ----------------------------
-- Table structure for cdt_staffs_entry
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs_entry`;
CREATE TABLE `cdt_staffs_entry` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL COMMENT '员工表ID',
`sex` enum('男','女') DEFAULT NULL COMMENT '性别',
`nation` char(30) DEFAULT NULL COMMENT '民族',
`NativePlace` varchar(255) DEFAULT NULL COMMENT '籍贯',
`marriage` enum('未婚','已婚','离异','丧偶') DEFAULT NULL COMMENT '婚姻情况 ''未婚'',''已婚'',''离异'',''丧偶''',
`birthday` varchar(60) DEFAULT NULL COMMENT '生日',
`zzmm` varchar(60) DEFAULT NULL COMMENT '政治面貌',
`jjqk` varchar(60) DEFAULT NULL COMMENT '健康状况',
`card` varchar(22) DEFAULT NULL COMMENT '身份证',
`hkszd` varchar(255) DEFAULT NULL COMMENT '户口所在地',
`hkxz` enum('本地城镇','本地农村','外地城镇','外地农村') DEFAULT NULL COMMENT '户口性质 ''本地城镇'',''本地农村'',''外地城镇'',''外地农村''',
`address` varchar(255) DEFAULT NULL COMMENT '现居住住址(通讯地址)',
`code` char(30) DEFAULT NULL COMMENT '邮编',
`jjlxr` varchar(60) DEFAULT NULL COMMENT '紧急联系人',
`jjlxdh` varchar(60) DEFAULT NULL COMMENT '紧急电话',
`wyyz` varchar(120) DEFAULT NULL COMMENT '外语语种',
`school` varchar(120) DEFAULT NULL COMMENT '毕业学校',
`sxzy` varchar(120) DEFAULT NULL COMMENT '所学专业',
`bytime` int(11) DEFAULT NULL COMMENT '毕业时间',
`xl` char(30) DEFAULT NULL COMMENT '学历',
`xw` char(30) DEFAULT NULL COMMENT '学位',
`zc` char(90) DEFAULT NULL COMMENT '职 称',
`daszd` varchar(255) DEFAULT NULL COMMENT '档案所在地',
`daglxs` char(4) CHARACTER SET swe7 DEFAULT NULL COMMENT '档案管理形式 1 仍在原先单位管理 2 个人委托代理机构管理 3 可转至公司代为管理',
`sfjnshbx` char(4) DEFAULT NULL COMMENT '是否缴纳社会保险\r\n',
`shbxjnxs` char(4) DEFAULT NULL COMMENT '社会保险缴纳形式 1仍在原先单位代缴 2个人委托代理机构缴纳 3 停交 4未办理',
`shbxtjtime` int(11) DEFAULT NULL COMMENT '社保停缴日期停交',
`shbxcard` varchar(90) DEFAULT NULL COMMENT '社保账号',
`sbczlx` char(90) DEFAULT NULL COMMENT '社保参保险种',
`sfjngjj` char(4) DEFAULT NULL COMMENT '是否缴纳公积金\r\n',
`gjjjnxs` char(4) DEFAULT NULL COMMENT '公积金缴纳形式 1仍在原先单位代缴 2个人委托代理机构缴纳 3 停交 4未办理',
`gjjtjtime` int(11) DEFAULT NULL COMMENT '社保停缴日期停交',
`gjjcard` varchar(90) DEFAULT NULL COMMENT '公积金号码',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp(6) NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for cdt_staffs_family
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs_family`;
CREATE TABLE `cdt_staffs_family` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sid` int(11) DEFAULT NULL COMMENT '员工表Id',
`fname` varchar(30) DEFAULT NULL COMMENT '成员姓名',
`cygx` varchar(30) DEFAULT NULL COMMENT '成员关系',
`company` varchar(120) DEFAULT NULL COMMENT '工作单位',
`lxfs` varchar(60) DEFAULT NULL COMMENT '联系方式',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for cdt_staffs_group
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs_group`;
CREATE TABLE `cdt_staffs_group` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT ' id',
`gname` varchar(120) NOT NULL COMMENT '群名称',
`sid` char(120) NOT NULL DEFAULT '1' COMMENT '单位联系人的ID的字符串',
`cid` char(120) DEFAULT NULL COMMENT '我的联系人的id字符串',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `status` (`sid`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='角色权限关联表';
-- ----------------------------
-- Table structure for cdt_staffs_menus
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs_menus`;
CREATE TABLE `cdt_staffs_menus` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
`pid` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '父级id',
`icon` varchar(128) NOT NULL DEFAULT '' COMMENT '图标',
`menu_name` varchar(128) NOT NULL DEFAULT '' COMMENT '按钮名',
`sign` varchar(128) NOT NULL DEFAULT '' COMMENT '标识',
`module` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '模块名',
`controller` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '控制器',
`action` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '方法名',
`params` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '参数',
`sort` tinyint(3) NOT NULL DEFAULT '1' COMMENT '排序',
`is_show` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否显示',
`level` int(4) NOT NULL COMMENT '级别 1 目录 2 菜单 3 按钮',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `is_show` (`is_show`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=51 DEFAULT CHARSET=utf8 COMMENT='权限节点表';
-- ----------------------------
-- Table structure for cdt_staffs_role
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs_role`;
CREATE TABLE `cdt_staffs_role` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '身份管理id',
`role_name` varchar(32) NOT NULL COMMENT '身份管理名称',
`rules` text NOT NULL COMMENT '身份管理权限(menus_id)',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',
`level` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父类id',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='角色权限关联表';
-- ----------------------------
-- Table structure for cdt_staffs_work
-- ----------------------------
DROP TABLE IF EXISTS `cdt_staffs_work`;
CREATE TABLE `cdt_staffs_work` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sid` int(11) DEFAULT NULL COMMENT '员工表Id',
`company` varchar(120) DEFAULT NULL COMMENT '工作单位',
`department` varchar(30) DEFAULT NULL COMMENT '所在部门',
`post` varchar(30) DEFAULT NULL COMMENT '担任职务',
`stime` int(11) DEFAULT NULL COMMENT '开始时间',
`etime` int(11) DEFAULT NULL COMMENT '结束时间',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for cdt_stickynotes
-- ----------------------------
DROP TABLE IF EXISTS `cdt_stickynotes`;
CREATE TABLE `cdt_stickynotes` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`sid` int(11) NOT NULL COMMENT '便签所属人',
`content` text NOT NULL COMMENT '便签内容',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL COMMENT '查看时间',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='便签表';
-- ----------------------------
-- Records of cdt_stickynotes
-- ----------------------------
BEGIN;
INSERT INTO `cdt_stickynotes` VALUES (2, 1, '去恶趣味请问', NULL, '2020-12-04 14:48:46', '2020-12-04 14:48:51');
INSERT INTO `cdt_stickynotes` VALUES (3, 1, '\r\n便签测试', NULL, '2020-12-04 14:49:38', '2020-12-04 14:49:41');
INSERT INTO `cdt_stickynotes` VALUES (4, 1, '网上数据', NULL, '2020-12-04 21:24:07', '2020-12-04 21:24:12');
COMMIT;
-- ----------------------------
-- Table structure for cdt_system_admin
-- ----------------------------
DROP TABLE IF EXISTS `cdt_system_admin`;
CREATE TABLE `cdt_system_admin` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`uname` varchar(255) NOT NULL DEFAULT '' COMMENT '用户名',
`upwd` varchar(255) NOT NULL DEFAULT '' COMMENT '密码',
`salt` char(6) NOT NULL DEFAULT '' COMMENT '关键key加密',
`urole` int(6) DEFAULT NULL COMMENT '角色',
`umobile` char(11) DEFAULT NULL COMMENT '手机',
`logincount` int(11) unsigned NOT NULL COMMENT '登录次数',
`lastlogintime` int(11) DEFAULT NULL COMMENT '最后一次登录时间',
`lastip` varchar(255) DEFAULT NULL COMMENT '最后一次登录ip',
`regtime` int(11) DEFAULT NULL COMMENT '注册时间',
`regip` varchar(255) DEFAULT NULL COMMENT '注册IP',
`updatetime` int(11) DEFAULT NULL COMMENT '更新时间',
`ustatus` int(2) NOT NULL DEFAULT '0' COMMENT '状态',
`is_del` int(2) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除',
`realname` varchar(120) NOT NULL DEFAULT '',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of cdt_system_admin
-- ----------------------------
BEGIN;
INSERT INTO `cdt_system_admin` VALUES (1, 'lichao', 'bf028308a1ecc8e98c290858450a7df9', 'VtFA3U', 1, '15910866822', 73, 1596416878, '127.0.0.1', NULL, NULL, 1582595864, 1, 1, '李超2');
INSERT INTO `cdt_system_admin` VALUES (4, 'admin', '3366667fb7e39ff949c6aecfc91596ba', 'p2YzeH', 5, '15988888888', 9, 1607188038, '127.0.0.1', 1581649615, '127.0.0.1', 1596416910, 1, 0, '管理员1');
COMMIT;
-- ----------------------------
-- Table structure for cdt_system_menus
-- ----------------------------
DROP TABLE IF EXISTS `cdt_system_menus`;
CREATE TABLE `cdt_system_menus` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
`pid` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '父级id',
`icon` varchar(128) NOT NULL DEFAULT '' COMMENT '图标',
`menu_name` varchar(128) NOT NULL DEFAULT '' COMMENT '按钮名',
`sign` varchar(128) NOT NULL DEFAULT '' COMMENT '标识',
`module` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '模块名',
`controller` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '控制器',
`action` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '方法名',
`params` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '参数',
`sort` tinyint(3) NOT NULL DEFAULT '1' COMMENT '排序',
`is_show` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否显示',
`level` int(4) NOT NULL COMMENT '级别 1 目录 2 菜单 3 按钮',
PRIMARY KEY (`id`) USING BTREE,
KEY `pid` (`pid`) USING BTREE,
KEY `is_show` (`is_show`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of cdt_system_menus
-- ----------------------------
BEGIN;
INSERT INTO `cdt_system_menus` VALUES (1, 0, 'fa-desktop', '常规管理', '', 'sysadmin', '#', '#', '', 9, 1, 1);
INSERT INTO `cdt_system_menus` VALUES (2, 1, 'fa-address-book', '菜单管理', 'menu:list', 'sysadmin', 'Menus', '#', '', 20, 1, 1);
INSERT INTO `cdt_system_menus` VALUES (3, 2, 'fa-desktop', '菜单列表', 'qweqwe', 'sysadmin', 'Menus', 'index', '12', 9, 1, 2);
INSERT INTO `cdt_system_menus` VALUES (10, 2, 'fa fa-file-text', '菜单添加', 'menuedit', 'sysadmin', 'Menus', 'edit', '', 9, 1, 2);
INSERT INTO `cdt_system_menus` VALUES (11, 3, 'fa fa-file-text', '菜单编辑', '#@', 'sysadmin', 'Menus', 'edit', '#', 9, 1, 3);
INSERT INTO `cdt_system_menus` VALUES (14, 1, 'fa-address-book', '管理员管理', 'manageamdin', 'sysadmin', '#', '#', '', 8, 1, 1);
INSERT INTO `cdt_system_menus` VALUES (15, 14, 'fa-group', '管理员列表', 'admin:list', 'sysadmin', 'Admin', 'index', '', 9, 1, 2);
INSERT INTO `cdt_system_menus` VALUES (16, 15, 'fa fa-file-text', '管理员添加', '', 'sysadmin', '#', '#', '', 9, 1, 3);
INSERT INTO `cdt_system_menus` VALUES (17, 14, 'fa-address-book-o', '权限列表', 'role:sign', 'sysadmin', 'Setrole', 'index', '', 9, 1, 2);
INSERT INTO `cdt_system_menus` VALUES (18, 17, 'fa-address-book', '角色添加', 'sign:add', 'sysadmin', '#', '#', '', 12, 1, 3);
INSERT INTO `cdt_system_menus` VALUES (19, 17, 'fa-address-book', '角色编辑', '', 'sysadmin', '#', '#', '', 9, 1, 3);
INSERT INTO `cdt_system_menus` VALUES (21, 1, 'fa-desktop', '队员管理', 'member:menu', 'sysadmin', '#', '#', '#', 9, 1, 1);
INSERT INTO `cdt_system_menus` VALUES (22, 21, 'fa-address-book', '队员列表', 'memberlist', 'sysadmin', 'member', 'index', '#', 9, 1, 2);
INSERT INTO `cdt_system_menus` VALUES (25, 1, 'fa-edit', '公告管理', '#', 'sysadmin', '#', '#', '#', 9, 1, 1);
INSERT INTO `cdt_system_menus` VALUES (26, 25, 'fa-edit', '分类管理', 'Category', 'sysadmin', 'Category', 'index', '', 12, 1, 1);
INSERT INTO `cdt_system_menus` VALUES (27, 25, 'fa-edit', '公告列表', 'article', 'sysadmin', 'Articles', 'index', '#', 8, 1, 2);
INSERT INTO `cdt_system_menus` VALUES (28, 25, 'fa-edit', '发布公告', 'articleadd', 'sysadmin', 'Articles', 'edit', '#', 9, 1, 2);
INSERT INTO `cdt_system_menus` VALUES (46, 21, 'fa-address-book', '新增队员', 'member:edit', 'sysadmin', 'member', 'edit', '#', 9, 1, 2);
INSERT INTO `cdt_system_menus` VALUES (48, 21, 'fa-group', '团队列表', 'membergroup', 'sysadmin', 'MemberGroup', 'index', '#', 10, 1, 2);
COMMIT;
-- ----------------------------
-- Table structure for cdt_system_role
-- ----------------------------
DROP TABLE IF EXISTS `cdt_system_role`;
CREATE TABLE `cdt_system_role` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '身份管理id',
`role_name` varchar(32) NOT NULL COMMENT '身份管理名称',
`rules` text NOT NULL COMMENT '身份管理权限(menus_id)',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',
`level` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父类id',
PRIMARY KEY (`id`) USING BTREE,
KEY `status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of cdt_system_role
-- ----------------------------
BEGIN;
INSERT INTO `cdt_system_role` VALUES (1, '超级管理员', '1,2,3,10,11,14,15,16,17,18,19,21,22,25,26,27,28,43,44,45,46,47,48,49', 1, 0);
INSERT INTO `cdt_system_role` VALUES (5, '初级管理员', '1,14,15,16,17,18,19,21,22,25,26,27,28,46,48', 1, 1);
COMMIT;
-- ----------------------------
-- Table structure for cdt_task
-- ----------------------------
DROP TABLE IF EXISTS `cdt_task`;
CREATE TABLE `cdt_task` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`sid` int(11) DEFAULT NULL COMMENT '任务所属人',
`title` varchar(240) NOT NULL COMMENT '任务名称',
`ptid` int(11) NOT NULL DEFAULT '0' COMMENT '所属任务',
`project` varchar(255) DEFAULT NULL COMMENT '所属项目',
`status` char(12) DEFAULT NULL COMMENT '状态 (未开始 进行中 已推迟 已结束)',
`fzr` int(11) DEFAULT NULL COMMENT '项目负责人',
`khr` int(11) DEFAULT NULL COMMENT '项目考核人',
`cyr` varchar(255) DEFAULT NULL COMMENT '项目参与人(分割符 |)',
`stime` int(11) DEFAULT NULL COMMENT '项目开始时间',
`etime` int(11) DEFAULT NULL COMMENT '项目结束时间',
`usetime` char(60) DEFAULT NULL COMMENT '工期',
`progress` char(60) DEFAULT NULL COMMENT '项目进度 完成率',
`pys` char(90) DEFAULT NULL COMMENT '项目预算',
`Isemail` char(4) DEFAULT NULL COMMENT '是否邮件提醒',
`attachment` varchar(255) DEFAULT NULL COMMENT '附件( 分隔符 | )',
`content` text NOT NULL COMMENT '周报内容',
`pqx` int(11) DEFAULT NULL COMMENT '任务前驱',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL COMMENT '查看时间',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='我的任务表';
-- ----------------------------
-- Table structure for cdt_task_log
-- ----------------------------
DROP TABLE IF EXISTS `cdt_task_log`;
CREATE TABLE `cdt_task_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`tid` int(11) DEFAULT NULL COMMENT '任务ID',
`sid` int(11) NOT NULL COMMENT '修改人id',
`fileds` char(30) NOT NULL DEFAULT '' COMMENT '修改字段名',
`f_pcontent` varchar(255) DEFAULT NULL COMMENT '修改前的内容',
`f_ncontent` varchar(255) DEFAULT NULL COMMENT '修改后的内容',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='任务日志表';
-- ----------------------------
-- Table structure for cdt_task_report
-- ----------------------------
DROP TABLE IF EXISTS `cdt_task_report`;
CREATE TABLE `cdt_task_report` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`tid` int(11) DEFAULT NULL COMMENT '任务ID',
`sid` int(11) NOT NULL COMMENT '汇报人id',
`content` text COMMENT '汇报内容',
`attachment` varchar(255) DEFAULT NULL COMMENT '上传附件(分隔符 |)',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL COMMENT '汇报时间',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='任务日志表';
-- ----------------------------
-- Table structure for cdt_task_version
-- ----------------------------
DROP TABLE IF EXISTS `cdt_task_version`;
CREATE TABLE `cdt_task_version` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`tid` int(11) DEFAULT NULL COMMENT '任务ID',
`sid` int(11) NOT NULL COMMENT '修改人id',
`vno` char(24) NOT NULL DEFAULT '' COMMENT '版本号',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL COMMENT '截止日期',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='任务版本表';
-- ----------------------------
-- Table structure for cdt_weekly
-- ----------------------------
DROP TABLE IF EXISTS `cdt_weekly`;
CREATE TABLE `cdt_weekly` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`sid` int(11) DEFAULT NULL COMMENT '周报所属人',
`stime` int(11) DEFAULT NULL COMMENT '开始时间',
`etime` int(11) DEFAULT NULL COMMENT '结束时间',
`weektype` char(4) DEFAULT NULL COMMENT '日志类型 1 全天日志 2分段日志',
`usetime` char(4) DEFAULT NULL COMMENT '工时',
`ustime` int(11) DEFAULT NULL COMMENT '分段开始时间 分段日志是必填',
`uetime` int(11) DEFAULT NULL COMMENT '分段结束时间 分段日志是必填',
`pname` varchar(255) DEFAULT NULL COMMENT '项目名称',
`rwname` varchar(40) DEFAULT NULL COMMENT '任务名称',
`Isemail` char(4) DEFAULT NULL COMMENT '是否邮件提醒',
`attachment` varchar(255) DEFAULT NULL COMMENT '附件( 分隔符 | )',
`content` text COMMENT '周报内容',
`resultc` text COMMENT '结果',
`backup` text COMMENT '备注',
`Isready` enum('未读','已读') DEFAULT '未读' COMMENT '状态 已读 未读',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL COMMENT '查看时间',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='我的周报';
-- ----------------------------
-- Table structure for cdt_weekly_msg
-- ----------------------------
DROP TABLE IF EXISTS `cdt_weekly_msg`;
CREATE TABLE `cdt_weekly_msg` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`wid` int(11) NOT NULL COMMENT '周报ID',
`msgpeople` int(11) DEFAULT NULL COMMENT '留言人员ID',
`content` text COMMENT '留言内容',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL COMMENT '查看时间',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='周报留言表';
SET FOREIGN_KEY_CHECKS = 1;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/mrsqych/oa.git
git@gitee.com:mrsqych/oa.git
mrsqych
oa
oa
master

搜索帮助