123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- USE mfdb;
- -- DROP TABLE fund_style_stats_dolphin;
- CREATE TABLE `fund_style_stats_dolphin` (
- `fund_id` varchar(10) NOT NULL COMMENT '基金id',
- `end_date` varchar(7) NOT NULL COMMENT '截至日期',
- `upsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
- `upsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
- `downsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
- `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
- `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',
- `updaterid` int DEFAULT NULL COMMENT '修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同',
- `updatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同',
- `isvalid` tinyint NOT NULL DEFAULT '1' COMMENT '记录的有效性;1-有效;0-无效;',
- PRIMARY KEY (`fund_id`,`end_date`),
- KEY (`end_date`),
- KEY (`updatetime`)
- ) COMMENT='DolphinDB写回的基金历史捕获率指标表'
|