fund_indicator_dolphin.sql 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. `creatorid` int DEFAULT NULL COMMENT '创建者Id,默认第一次创建者名称,创建后不变更',
  46. `createtime` datetime DEFAULT NULL COMMENT '创建时间,默认第一次创建的getdate()时间',
  47. `updaterid` int DEFAULT NULL COMMENT '修改者Id;第一次创建时与Creator值相同,修改时与修改人值相同',
  48. `updatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间;第一次创建时与CreatTime值相同,修改时与修改时间相同',
  49. `isvalid` tinyint NOT NULL DEFAULT '1' COMMENT '记录的有效性;1-有效;0-无效;',
  50. PRIMARY KEY (`fund_id`,`end_date`),
  51. KEY (`end_date`),
  52. KEY (`updatetime`)
  53. ) COMMENT='DolphinDB写回的基金历史杂项指标表'