|
|
@ -1,3 +1,4 @@ |
|
|
|
#网格员数据分析需求 脚本 2021-07-06 |
|
|
|
CREATE TABLE `fact_grid_member_statistics_daily` |
|
|
|
( |
|
|
|
`ID` varchar(64) NOT NULL COMMENT '主键(t-1)', |
|
|
@ -32,7 +33,9 @@ CREATE TABLE `fact_grid_member_statistics_daily` |
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
) ENGINE = InnoDB |
|
|
|
DEFAULT CHARSET = utf8mb4 COMMENT ='网格员数据统计_日统计'; |
|
|
|
|
|
|
|
#添加唯一索引 |
|
|
|
ALTER TABLE `epmet_data_statistical`.`fact_grid_member_statistics_daily` |
|
|
|
ADD UNIQUE INDEX `unx_staff`(`DATE_ID`, `STAFF_ID`, `GRID_ID`) USING BTREE; |
|
|
|
|
|
|
|
ALTER TABLE `epmet_data_statistical`.`fact_origin_project_main_daily` |
|
|
|
ADD COLUMN `PROJECT_CREATOR` varchar(32) NULL COMMENT '项目创建人(议题转项目或立项人)' AFTER `IS_SATISFIED`; |