fund_indicator_dolphin.sql 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. USE raw_db;
  2. -- DROP TABLE fund_indicator_dolphin;
  3. CREATE TABLE `fund_indicator_dolphin` (
  4. `fund_id` varchar(10) NOT NULL COMMENT '基金id',
  5. `end_date` varchar(7) NOT NULL COMMENT '截至日期',
  6. `info_ratio_6m` decimal(22,6) DEFAULT NULL,
  7. `m2_6m` decimal(22,6) DEFAULT NULL,
  8. `tracking_error_6m` decimal(22,6) DEFAULT NULL,
  9. `info_ratio_1y` decimal(22,6) DEFAULT NULL,
  10. `m2_1y` decimal(22,6) DEFAULT NULL,
  11. `tracking_error_1y` decimal(22,6) DEFAULT NULL,
  12. `info_ratio_2y` decimal(22,6) DEFAULT NULL,
  13. `m2_2y` decimal(22,6) DEFAULT NULL,
  14. `tracking_error_2y` decimal(22,6) DEFAULT NULL,
  15. `var_2y` decimal(22,6) DEFAULT NULL,
  16. `cvar_2y` decimal(22,6) DEFAULT NULL,
  17. `info_ratio_3y` decimal(22,6) DEFAULT NULL,
  18. `m2_3y` decimal(22,6) DEFAULT NULL,
  19. `tracking_error_3y` decimal(22,6) DEFAULT NULL,
  20. `var_3y` decimal(22,6) DEFAULT NULL,
  21. `cvar_3y` decimal(22,6) DEFAULT NULL,
  22. `info_ratio_4y` decimal(22,6) DEFAULT NULL,
  23. `m2_4y` decimal(22,6) DEFAULT NULL,
  24. `tracking_error_4y` decimal(22,6) DEFAULT NULL,
  25. `var_4y` decimal(22,6) DEFAULT NULL,
  26. `cvar_4y` decimal(22,6) DEFAULT NULL,
  27. `info_ratio_5y` decimal(22,6) DEFAULT NULL,
  28. `m2_5y` decimal(22,6) DEFAULT NULL,
  29. `tracking_error_5y` decimal(22,6) DEFAULT NULL,
  30. `var_5y` decimal(22,6) DEFAULT NULL,
  31. `cvar_5y` decimal(22,6) DEFAULT NULL,
  32. `info_ratio_10y` decimal(22,6) DEFAULT NULL,
  33. `m2_10y` decimal(22,6) DEFAULT NULL,
  34. `tracking_error_10y` decimal(22,6) DEFAULT NULL,
  35. `var_10y` decimal(22,6) DEFAULT NULL,
  36. `cvar_10y` decimal(22,6) DEFAULT NULL,
  37. `info_ratio_ytd` decimal(22,6) DEFAULT NULL,
  38. `m2_ytd` decimal(22,6) DEFAULT NULL,
  39. `tracking_error_ytd` decimal(22,6) DEFAULT NULL,
  40. `info_ratio_incep` decimal(22,6) DEFAULT NULL,
  41. `m2_incep` decimal(22,6) DEFAULT NULL,
  42. `tracking_error_incep` decimal(22,6) DEFAULT NULL,
  43. `var_incep` decimal(22,6) DEFAULT NULL,
  44. `cvar_incep` decimal(22,6) DEFAULT NULL,
  45. PRIMARY KEY (`fund_id`,`end_date`)
  46. ) COMMENT='DolphinDB写回的基金历史杂项指标表'