/*
 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: 15/02/2022 23:43:52
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for css  个股数据
-- ----------------------------
DROP TABLE IF EXISTS `stock_index`;
CREATE TABLE `stock_index`  (
  `id` double NOT NULL AUTO_INCREMENT,
  `code` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
  `trade_day` date NULL DEFAULT NULL COMMENT '交易日期',
  `open` decimal(50, 4) NULL DEFAULT NULL COMMENT '开盘价',
  `close` decimal(50, 4) NULL DEFAULT NULL COMMENT '收盘价',
  `high` decimal(50, 4) NULL DEFAULT NULL COMMENT '最高价',
  `low` decimal(50, 4) NULL DEFAULT NULL COMMENT '最低价',
  `differRange` decimal(50, 4) NULL DEFAULT NULL COMMENT '涨跌幅',
  `volume` decimal(50, 4) NULL DEFAULT NULL COMMENT '成交量',
  `amount` decimal(50, 4) NULL DEFAULT NULL COMMENT '成交额',
  `limitupnum` decimal(50, 4) NULL DEFAULT NULL COMMENT '涨停家数',
  `limitdownnum` decimal(50, 4) NULL DEFAULT NULL COMMENT '跌停家数',
  `suspendnum` decimal(50, 4) NULL DEFAULT NULL COMMENT '停牌家数',
  `risenum` decimal(50, 4) NULL DEFAULT NULL COMMENT '上涨家数',
  `fallnum` decimal(50, 4) NULL DEFAULT NULL COMMENT '下跌家数',
  `flatnum` decimal(50, 4) NULL DEFAULT NULL COMMENT '平盘家数',
  `componentnum` decimal(50, 4) NULL DEFAULT NULL COMMENT '成分个数',
  `mv` decimal(50, 4) NULL DEFAULT NULL COMMENT '总市值',
  `pettm` decimal(50, 4) NULL DEFAULT NULL COMMENT '市盈率PE',
  `pettm_mid` decimal(50, 4) NULL DEFAULT NULL COMMENT '市盈率PE中位值',
  `liqmv` decimal(50, 4) NULL DEFAULT NULL COMMENT '自由流通市值',
  `rcnthigh` decimal(50, 4) NULL DEFAULT NULL COMMENT '近期创历史新高',
  `rcntlow` decimal(50, 4) NULL DEFAULT NULL COMMENT '近期创历史新低',
  PRIMARY KEY (`id`) USING BTREE   
) ENGINE = InnoDB AUTO_INCREMENT = 82694 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '指数交易行情' ROW_FORMAT = Dynamic;