fund_style_stats_dolphin.sql 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. USE mfdb;
  2. -- DROP TABLE fund_style_stats_dolphin;
  3. CREATE TABLE `fund_style_stats_dolphin` (
  4. `fund_id` varchar(10) NOT NULL COMMENT '基金id',
  5. `end_date` varchar(7) NOT NULL COMMENT '截至日期',
  6. `upsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
  7. `downsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
  8. `upsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
  9. `downsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
  10. `upsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
  11. `downsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
  12. `upsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
  13. `downsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
  14. `upsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
  15. `downsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
  16. `upsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
  17. `downsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
  18. `upsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
  19. `downsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
  20. `upsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
  21. `downsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
  22. `upsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
  23. `downsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
  24. `upsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
  25. `downsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
  26. `upsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
  27. `downsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
  28. `upsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
  29. `downsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
  30. `upsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
  31. `downsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
  32. `upsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
  33. `downsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
  34. `upsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
  35. `downsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
  36. `upsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
  37. `downsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
  38. `upsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
  39. `downsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
  40. `upsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
  41. `downsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
  42. `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
  43. `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',
  44. `updaterid` int DEFAULT NULL COMMENT '修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同',
  45. `updatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同',
  46. `isvalid` tinyint NOT NULL DEFAULT '1' COMMENT '记录的有效性;1-有效;0-无效;',
  47. PRIMARY KEY (`fund_id`,`end_date`),
  48. KEY (`end_date`),
  49. KEY (`updatetime`)
  50. ) COMMENT='DolphinDB写回的基金历史捕获率指标表'