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.
38 lines
1.3 KiB
38 lines
1.3 KiB
/*
|
|
Navicat Premium Data Transfer
|
|
|
|
Source Server : localhost
|
|
Source Server Type : MySQL
|
|
Source Server Version : 80022
|
|
Source Host : localhost:3306
|
|
Source Schema : ry
|
|
|
|
Target Server Type : MySQL
|
|
Target Server Version : 80022
|
|
File Encoding : 65001
|
|
|
|
Date: 07/04/2022 13:49:59
|
|
*/
|
|
|
|
SET NAMES utf8mb4;
|
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
|
|
-- ----------------------------
|
|
-- Table structure for account 账户表;盘后统计或查询时统计
|
|
-- ----------------------------
|
|
DROP TABLE IF EXISTS `account`;
|
|
CREATE TABLE `account` (
|
|
`id` double NOT NULL AUTO_INCREMENT,
|
|
`trade_day` date NULL DEFAULT NULL COMMENT '交易日期',
|
|
`week_day` date NULL DEFAULT NULL COMMENT '交易日星期',
|
|
`assets` decimal(50, 2) NULL DEFAULT NULL COMMENT '净资产',
|
|
`total_assets` decimal(50, 2) NULL DEFAULT NULL COMMENT '总资产',
|
|
`profit` decimal(50, 2) NULL DEFAULT NULL COMMENT '当日盈亏',
|
|
`assets_diff` decimal(50, 2) NULL DEFAULT NULL COMMENT '当日净资产盈亏比例',
|
|
`total_diff` decimal(50, 2) NULL DEFAULT NULL COMMENT '当日总资产盈亏比例',
|
|
`user_id` bigint NULL DEFAULT NULL COMMENT '用户id',
|
|
PRIMARY KEY (`id`) USING BTREE
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '账户表' ROW_FORMAT = DYNAMIC;
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|