You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
snarwork/sql/tabelstructure/exchange/tabels

274 lines
13 KiB

CREATE TABLE `basic_expend_info` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`exchange` varchar(255) DEFAULT NULL,
`chairman` varchar(255) DEFAULT NULL,
`manager` varchar(255) DEFAULT NULL,
`secretary` varchar(255) DEFAULT NULL,
`reg_capital` varchar(255) DEFAULT NULL,
`setup_date` varchar(255) DEFAULT NULL,
`province` varchar(255) DEFAULT NULL,
`city` varchar(255) DEFAULT NULL,
`introduction` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`office` varchar(255) DEFAULT NULL,
`ann_date` varchar(255) DEFAULT NULL,
`business_scope` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`employees` varchar(255) DEFAULT NULL,
`main_business` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ts_code` (`ts_code`)
) ENGINE=InnoDB AUTO_INCREMENT=5026 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `basic_info` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`symbol` varchar(255) DEFAULT NULL,
`symbol_name` varchar(255) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`industry` varchar(255) DEFAULT NULL,
`fullname` varchar(255) DEFAULT NULL,
`enname` varchar(255) DEFAULT NULL,
`cnspell` varchar(255) DEFAULT NULL,
`market` varchar(255) DEFAULT NULL,
`exchange` varchar(255) DEFAULT NULL,
`curr_type` varchar(255) DEFAULT NULL,
`list_status` varchar(255) DEFAULT NULL,
`list_date` varchar(255) DEFAULT NULL,
`delist_date` varchar(255) DEFAULT NULL,
`is_hs` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ts_code` (`ts_code`)
) ENGINE=InnoDB AUTO_INCREMENT=4877 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `basic_info_name` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`symbol_name` varchar(255) DEFAULT NULL,
`start_date` varchar(255) DEFAULT NULL,
`end_date` varchar(255) DEFAULT NULL,
`ann_date` varchar(255) DEFAULT NULL,
`change_reason` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_daily` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`trade_date` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`open` decimal(64,10) DEFAULT NULL,
`high` decimal(64,10) DEFAULT NULL,
`low` decimal(64,10) DEFAULT NULL,
`d_close` decimal(64,10) DEFAULT NULL,
`pre_close` decimal(64,10) DEFAULT NULL,
`d_change` decimal(64,10) DEFAULT NULL,
`pct_chg` decimal(64,10) DEFAULT NULL,
`vol` decimal(64,10) DEFAULT NULL,
`amount` decimal(64,10) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ts_code_2` (`ts_code`,`trade_date`),
KEY `ts_code` (`ts_code`),
KEY `trade_date` (`trade_date`)
) ENGINE=InnoDB AUTO_INCREMENT=4166617 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_daily_value` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`trade_date` varchar(255) DEFAULT NULL,
`d_close` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`turnover_rate` varchar(255) DEFAULT NULL,
`turnover_rate_f` varchar(255) DEFAULT NULL,
`volume_ratio` varchar(255) DEFAULT NULL,
`pe` varchar(255) DEFAULT NULL,
`pe_ttm` varchar(255) DEFAULT NULL,
`pb` varchar(255) DEFAULT NULL,
`ps` varchar(255) DEFAULT NULL,
`ps_ttm` varchar(255) DEFAULT NULL,
`dv_ratio` varchar(255) DEFAULT NULL,
`dv_ttm` varchar(255) DEFAULT NULL,
`total_share` varchar(255) DEFAULT NULL,
`float_share` varchar(255) DEFAULT NULL,
`free_share` varchar(255) DEFAULT NULL,
`total_mv` varchar(255) DEFAULT NULL,
`circ_mv` varchar(255) DEFAULT NULL,
`limit_status` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ts_code_2` (`ts_code`,`trade_date`) USING BTREE,
KEY `ts_code` (`ts_code`) USING BTREE,
KEY `trade_date` (`trade_date`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3783415 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_daily_money` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`trade_date` varchar(255) DEFAULT NULL,
`buy_sm_vol` varchar(255) DEFAULT NULL,
`buy_sm_amount` varchar(255) DEFAULT NULL,
`sell_sm_vol` varchar(255) DEFAULT NULL,
`sell_sm_amount` varchar(255) DEFAULT NULL,
`buy_md_vol` varchar(255) DEFAULT NULL,
`buy_md_amount` varchar(255) DEFAULT NULL,
`sell_md_vol` varchar(255) DEFAULT NULL,
`sell_md_amount` varchar(255) DEFAULT NULL,
`buy_lg_vol` varchar(255) DEFAULT NULL,
`buy_lg_amount` varchar(255) DEFAULT NULL,
`sell_lg_vol` varchar(255) DEFAULT NULL,
`sell_lg_amount` varchar(255) DEFAULT NULL,
`buy_elg_vol` varchar(255) DEFAULT NULL,
`buy_elg_amount` varchar(255) DEFAULT NULL,
`sell_elg_vol` varchar(255) DEFAULT NULL,
`sell_elg_amount` varchar(255) DEFAULT NULL,
`net_mf_vol` varchar(255) DEFAULT NULL,
`net_mf_amount` varchar(255) DEFAULT NULL,
`trade_count` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ts_code_2` (`ts_code`,`trade_date`) USING BTREE,
KEY `ts_code` (`ts_code`) USING BTREE,
KEY `trade_date` (`trade_date`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3882874 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_param_luck` (
`id` bigint NOT NULL AUTO_INCREMENT,
`initday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`real_value` decimal(64,10) DEFAULT NULL,
`total_value` decimal(64,10) DEFAULT NULL,
`random_str` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_param_result` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`initday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`array` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`luck_maxprice` decimal(64,10) DEFAULT NULL,
`luck_avgprice` decimal(64,10) DEFAULT NULL,
`luck_lowprice` decimal(64,10) DEFAULT NULL,
`real_maxprice` decimal(64,10) DEFAULT NULL,
`real_avgprice` decimal(64,10) DEFAULT NULL,
`real_lowprice` decimal(64,10) DEFAULT NULL,
`sub_maxprice` decimal(64,10) DEFAULT NULL,
`sub_avgprice` decimal(64,10) DEFAULT NULL,
`sub_lowprice` decimal(64,10) DEFAULT NULL,
`now_maxprice` decimal(64,10) DEFAULT NULL,
`nowday` varchar(255) DEFAULT NULL,
`now_avgprice` decimal(64,10) DEFAULT NULL,
`now_lowprice` decimal(64,10) DEFAULT NULL,
`isfilter` int DEFAULT NULL,
`vol` decimal(64,10) DEFAULT NULL,
`amount` decimal(64,10) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_param_v1` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`initday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`startlimitday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`endDay` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`array` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`maxpricebit` decimal(64,10) DEFAULT NULL,
`maxvolbit` decimal(64,10) DEFAULT NULL,
`maxamountbit` decimal(64,10) DEFAULT NULL,
`maxturnbit` decimal(64,10) DEFAULT NULL,
`maxpebit` decimal(64,10) DEFAULT NULL,
`maxpbbit` decimal(64,10) DEFAULT NULL,
`avgpricebit` decimal(64,10) DEFAULT NULL,
`avgvolbit` decimal(64,10) DEFAULT NULL,
`avgamountbit` decimal(64,10) DEFAULT NULL,
`avgturnbit` decimal(64,10) DEFAULT NULL,
`avgpebit` decimal(64,10) DEFAULT NULL,
`avgpbbit` decimal(64,10) DEFAULT NULL,
`lowpricebit` decimal(64,10) DEFAULT NULL,
`lowvolbit` decimal(64,10) DEFAULT NULL,
`lowamountbit` decimal(64,10) DEFAULT NULL,
`lowturnbit` decimal(64,10) DEFAULT NULL,
`lowpebit` decimal(64,10) DEFAULT NULL,
`lowpbbit` decimal(64,10) DEFAULT NULL,
`maxprice` varchar(255) DEFAULT NULL,
`lowprice` varchar(255) DEFAULT NULL,
`avgprice` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_param_luck_stock` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`buyday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`buy_price` decimal(64,10) DEFAULT NULL,
`mai_price` decimal(64,10) DEFAULT NULL,
`sub_value` decimal(64,10) DEFAULT NULL,
`buymoney` decimal(64,10) DEFAULT NULL,
`random_str` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_param_filter` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`inittime` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`now_avgprice` decimal(64,10) DEFAULT NULL,
`now_lowprice` decimal(64,10) DEFAULT NULL,
`now_highprice` decimal(64,10) DEFAULT NULL,
`vol` decimal(64,10) DEFAULT NULL,
`amount` decimal(64,10) DEFAULT NULL,
`endDay` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`end_avgprice` decimal(64,10) DEFAULT NULL,
`end_lowprice` decimal(64,10) DEFAULT NULL,
`end_highprice` decimal(64,10) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ts_code` (`ts_code`,`inittime`,`endDay`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_param_result_junxian` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`buyday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`max_pro` decimal(64,10) DEFAULT NULL,
`max_pro_sub` decimal(64,10) DEFAULT NULL,
`last_max_pro_sub_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`sum_pro` decimal(64,10) DEFAULT NULL,
`sum_pro_sub` decimal(64,10) DEFAULT NULL,
`max` decimal(64,10) DEFAULT NULL,
`open` decimal(64,10) DEFAULT NULL,
`low` decimal(64,10) DEFAULT NULL,
`buy` decimal(64,10) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_param_luck_stock_flow` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`uid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`buyday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`sellday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`buy_price` decimal(64,10) DEFAULT NULL,
`sell_price` decimal(64,10) DEFAULT NULL,
`buymoney` decimal(64,10) DEFAULT NULL,
`sellmoney` decimal(64,10) DEFAULT NULL,
`random_str` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6252 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_param_luck_result` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`open` decimal(64,10) DEFAULT NULL,
`buyday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`random_str` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ts_code` (`ts_code`),
KEY `buyday` (`buyday`)
) ENGINE=InnoDB AUTO_INCREMENT=1318047 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `exchange_param_luck_error` (
`id` bigint NOT NULL AUTO_INCREMENT,
`ts_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
`buyday` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=412060 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;