fund_indicator_dolphin.sql 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. USE mfdb;
  2. CREATE TABLE `fund_indicator_dolphin` (
  3. `fund_id` varchar(10) NOT NULL COMMENT '基金id',
  4. `end_date` varchar(7) NOT NULL COMMENT '截至日期',
  5. `info_ratio_6m` decimal(22,6) DEFAULT NULL,
  6. `info_ratio_1y` decimal(22,6) DEFAULT NULL,
  7. `info_ratio_2y` decimal(22,6) DEFAULT NULL,
  8. `info_ratio_3y` decimal(22,6) DEFAULT NULL,
  9. `info_ratio_4y` decimal(22,6) DEFAULT NULL,
  10. `info_ratio_5y` decimal(22,6) DEFAULT NULL,
  11. `info_ratio_10y` decimal(22,6) DEFAULT NULL,
  12. `info_ratio_ytd` decimal(22,6) DEFAULT NULL,
  13. `info_ratio_incep` decimal(22,6) DEFAULT NULL,
  14. `m2_6m` decimal(22,6) DEFAULT NULL,
  15. `m2_1y` decimal(22,6) DEFAULT NULL,
  16. `m2_2y` decimal(22,6) DEFAULT NULL,
  17. `m2_3y` decimal(22,6) DEFAULT NULL,
  18. `m2_4y` decimal(22,6) DEFAULT NULL,
  19. `m2_5y` decimal(22,6) DEFAULT NULL,
  20. `m2_10y` decimal(22,6) DEFAULT NULL,
  21. `m2_ytd` decimal(22,6) DEFAULT NULL,
  22. `m2_incep` decimal(22,6) DEFAULT NULL,
  23. `tracking_error_6m` decimal(22,6) DEFAULT NULL,
  24. `tracking_error_1y` decimal(22,6) DEFAULT NULL,
  25. `tracking_error_2y` decimal(22,6) DEFAULT NULL,
  26. `tracking_error_3y` decimal(22,6) DEFAULT NULL,
  27. `tracking_error_4y` decimal(22,6) DEFAULT NULL,
  28. `tracking_error_5y` decimal(22,6) DEFAULT NULL,
  29. `tracking_error_10y` decimal(22,6) DEFAULT NULL,
  30. `tracking_error_ytd` decimal(22,6) DEFAULT NULL,
  31. `tracking_error_incep` decimal(22,6) DEFAULT NULL,
  32. `var_2y` decimal(22,6) DEFAULT NULL,
  33. `var_3y` decimal(22,6) DEFAULT NULL,
  34. `var_4y` decimal(22,6) DEFAULT NULL,
  35. `var_5y` decimal(22,6) DEFAULT NULL,
  36. `var_10y` decimal(22,6) DEFAULT NULL,
  37. `var_incep` decimal(22,6) DEFAULT NULL,
  38. `cvar_2y` decimal(22,6) DEFAULT NULL,
  39. `cvar_3y` decimal(22,6) DEFAULT NULL,
  40. `cvar_4y` decimal(22,6) DEFAULT NULL,
  41. `cvar_5y` decimal(22,6) DEFAULT NULL,
  42. `cvar_10y` decimal(22,6) DEFAULT NULL,
  43. `cvar_incep` decimal(22,6) DEFAULT NULL,
  44. `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
  45. `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',
  46. `updaterid` int DEFAULT NULL COMMENT '修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同',
  47. `updatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同',
  48. `isvalid` tinyint NOT NULL DEFAULT '1' COMMENT '记录的有效性;1-有效;0-无效;',
  49. PRIMARY KEY (`fund_id`,`end_date`),
  50. KEY (`end_date`),
  51. KEY (`updatetime`)
  52. ) COMMENT='DolphinDB写回的基金历史指标表'