/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 80022
 Source Host           : localhost:3306
 Source Schema         : nstocks

 Target Server Type    : MySQL
 Target Server Version : 80022
 File Encoding         : 65001

 Date: 29/12/2021 23:43:52
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for stocks
-- ----------------------------
DROP TABLE IF EXISTS `stocks_tmp`;
CREATE TABLE `stocks_tmp`  (
  `id` double NOT NULL AUTO_INCREMENT,
  `code` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `trade_day` date NULL DEFAULT NULL COMMENT '交易日期',
  `differrange3` decimal(50, 4) NULL DEFAULT NULL COMMENT '3日区间涨跌幅',
  `differrange5` decimal(50, 4) NULL DEFAULT NULL COMMENT '5日区间涨跌幅',
  `differrange15` decimal(50, 4) NULL DEFAULT NULL COMMENT '15日区间涨跌幅',
  `differrange30` decimal(50, 4) NULL DEFAULT NULL COMMENT '30日区间涨跌幅',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 82694 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '全部A股每日交易数据辅助表' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
