mysql建表且设置主键自增及时间戳字段
/*
Navicat MySQL Data Transfer
Source Server : 192.192.192.4
Source Server Version : 50632
Source Host : 192.192.192.4:3306
Source Database : srapp_stshjz
Target Server Type : MYSQL
Target Server Version : 50632
File Encoding : 65001
Date: 2020-06-10 14:34:21
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for jcfx_qyfx
-- ----------------------------
DROP TABLE IF EXISTS `jcfx_qyfx`;
CREATE TABLE `jcfx_qyfx` (
`pk_jcfx_qyfx` int(50) NOT NULL AUTO_INCREMENT,
`jzrszb1` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比1',
`jzrszb2` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比2',
`jzrszb3` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比3',
`jzrszb4` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比4',
`jzrszb5` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比5',
`jzrszb6` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比6',
`jzrszb7` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比7',
`jzrszb8` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比8',
`jzrszb9` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比9',
`jzrszb10` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比10',
`jzrszb11` decimal(65,0) DEFAULT '0' COMMENT '救助人数占比11',
`pjxfzc1` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出1',
`pjxfzc2` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出2',
`pjxfzc3` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出3',
`pjxfzc4` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出4',
`pjxfzc5` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出5',
`pjxfzc6` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出6',
`pjxfzc7` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出7',
`pjxfzc8` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出8',
`pjxfzc9` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出9',
`pjxfzc10` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出10',
`pjxfzc11` decimal(65,0) DEFAULT '0' COMMENT '当地平均消费支出11',
`rjjzje1` decimal(65,0) DEFAULT '0' COMMENT '人均救助金1',
`rjjzje2` decimal(65,0) DEFAULT '0' COMMENT '人均救助金2',
`rjjzje3` decimal(65,0) DEFAULT '0' COMMENT '人均救助金3',
`rjjzje4` decimal(65,0) DEFAULT '0' COMMENT '人均救助金4',
`rjjzje5` decimal(65,0) DEFAULT '0' COMMENT '人均救助金5',
`rjjzje6` decimal(65,0) DEFAULT '0' COMMENT '人均救助金6',
`rjjzje7` decimal(65,0) DEFAULT '0' COMMENT '人均救助金7',
`rjjzje8` decimal(65,0) DEFAULT '0' COMMENT '人均救助金8',
`rjjzje9` decimal(65,0) DEFAULT '0' COMMENT '人均救助金9',
`rjjzje10` decimal(65,0) DEFAULT '0' COMMENT '人均救助金10',
`rjjzje11` decimal(65,0) DEFAULT '0' COMMENT '人均救助金11',
`time` varchar(255) DEFAULT NULL,
PRIMARY KEY (`pk_jcfx_qyfx`)
) ENGINE=InnoDB AUTO_INCREMENT=469612 DEFAULT CHARSET=utf8;
---------------------------------------------------------------------------------------------------------------------
/*
Navicat MySQL Data Transfer
Source Server : 59.202.43.150
Source Server Version : 50634
Source Host : 59.202.43.150:3306
Source Database : srapp_stsj
Target Server Type : MYSQL
Target Server Version : 50634
File Encoding : 65001
Date: 2020-06-29 15:25:27
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for sr_sjycpc
-- ----------------------------
DROP TABLE IF EXISTS `sr_sjycpc`;
CREATE TABLE `sr_sjycpc` (
`pk_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`fk_id` varchar(50) DEFAULT NULL COMMENT '外键,对应sr_main表的pk_sr_main',
`qhmc` varchar(36) DEFAULT NULL COMMENT '区划名称',
`sys_xzqh` varchar(36) DEFAULT NULL COMMENT '区划编码',
`mhz` varchar(32) DEFAULT NULL COMMENT '申请人姓名',
`mhzsfz` varchar(32) DEFAULT NULL COMMENT '申请人身份证',
`mdjlx` varchar(10) NOT NULL COMMENT '单据类型',
`sys_clbj` decimal(2,0) NOT NULL DEFAULT '0',
`err_msg` text COMMENT '错误信息',
`sys_createtime` varchar(32) DEFAULT NULL COMMENT '数据生成时间',
`task_index` int(11) DEFAULT '0' COMMENT '任务执行第几条数据,只是在跑任务的时候用到',
`type` decimal(2,0) DEFAULT NULL COMMENT '0数据缺失 1数据错乱',
`nf` varchar(10) DEFAULT NULL,
`yf` varchar(10) DEFAULT NULL,
`qs` decimal(10,0) DEFAULT NULL COMMENT '期数',
`bczt` int(1) DEFAULT '0' COMMENT '是否保存:0=未保存,1=保存',
`sys_spdj` int(2) DEFAULT NULL COMMENT '审批等级记录,用于比对数据是否处理',
PRIMARY KEY (`pk_id`),
KEY `index_fk_id` (`fk_id`) USING BTREE,
KEY `index_sys_xzqh` (`sys_xzqh`,`mdjlx`,`type`) USING BTREE,
KEY `index_mhzsfz` (`mhzsfz`) USING BTREE,
KEY `index_mhz` (`mhz`) USING BTREE,
KEY `index_type` (`type`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1940317 DEFAULT CHARSET=gbk;
-----------------------------------------------------------------------------------------------------------
CREATE TABLE `etp_resource_status` (
`ID` varchar(36) NOT NULL COMMENT '主键Id',
`BATCHNO` varchar(36) NOT NULL COMMENT '新批次号',
`ETP_RESOURCE_ID` varchar(36) NOT NULL COMMENT '资源表ID',
`STATUS` varchar(4) NOT NULL COMMENT '0 初始状态;\r\n10 部级接收成功\r\n11 部级接收失败\r\n20 转发协查省成功\r\n21 转发协查省失败\r\n30 协查省接收成功\r\n31 协查省接收失败\r\n40 协查省反馈成功\r\n41 协查省反馈失败\r\n50 结果数据上传成功\r\n51 结果数据上传失败\r\n60 部级反馈成功\r\n61 部级反馈失败\r\n70 结果数据取走成功\r\n71 结果数据取走失败\r\n',
`REMARK` varchar(4000) DEFAULT NULL COMMENT '备注说明',
`LAST_MODIFIED_TIME` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
LAST_MODIFIED_TIME