1. 修改db schema
This commit is contained in:
parent
4d7e31953a
commit
bc72f947c7
@ -401,44 +401,44 @@ INSERT INTO `area` (`Id`, `CityId`, `Name`, `ZipCode`) VALUES
|
||||
(368, 21, '烏坵鄉', '06');
|
||||
/*!40000 ALTER TABLE `area` ENABLE KEYS */;
|
||||
|
||||
-- 傾印 資料表 auth_page 結構
|
||||
-- 傾印 資料表 solar_power.auth_page 結構
|
||||
CREATE TABLE IF NOT EXISTS `auth_page` (
|
||||
`AuthCode` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`MainName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '大項名稱',
|
||||
`SubName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '功能名稱',
|
||||
`TagName` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '細項功能名稱',
|
||||
`ControlName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`Priority` int(10) DEFAULT '0',
|
||||
PRIMARY KEY (`AuthCode`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='設定權限頁面';
|
||||
|
||||
-- 正在傾印表格 auth_page 的資料
|
||||
-- 正在傾印表格 solar_power.auth_page 的資料:~23 rows (近似值)
|
||||
DELETE FROM `auth_page`;
|
||||
/*!40000 ALTER TABLE `auth_page` DISABLE KEYS */;
|
||||
INSERT INTO `auth_page` (`AuthCode`, `MainName`, `SubName`, `TagName`, `ControlName`) VALUES
|
||||
('A', '總覽', '地圖總覽', NULL, 'MapOverview'),
|
||||
('B', '總覽', '電站總覽', NULL, 'StationOverview'),
|
||||
('C', '總覽', '電站總覽', '即時資訊', 'StationOverview_UpToDate'),
|
||||
('D', '總覽', '電站總覽', '基本資料', 'StationOverview_Info'),
|
||||
('E', '總覽', '電站總覽', '歷史資料', 'StationOverview_History'),
|
||||
('F', '總覽', '電站總覽', '逆變器分析', 'StationOverview_Inverter'),
|
||||
('G', '總覽', '電站總覽', '異常記錄', 'StationOverview_Exception'),
|
||||
('H', '總覽', '電站總覽', '運維記錄', 'StationOverview_OperationRecord'),
|
||||
('J', '總覽', '電站總覽', '顯示發電金額', 'ShowMoney'),
|
||||
('K', '電站資訊', '電站資訊', NULL, 'PowerStationInfo'),
|
||||
('L', '交叉分析', '合併電站', NULL, 'AnalysisStationCombine'),
|
||||
('M', '交叉分析', '電站交叉分析', NULL, 'AnalysisStationInfo'),
|
||||
('N', '交叉分析', '逆變器交叉分析', NULL, 'AnalysisInverter'),
|
||||
('P', '報表查詢', '電站報表', NULL, 'StationReport'),
|
||||
('Q', '報表查詢', '電廠發電效能統計', NULL, 'HHH'),
|
||||
('R', '報表查詢', '輸入台電售電紀錄', NULL, 'ElectricitySoldRecord'),
|
||||
('S', '報表查詢', '報告發送設定', NULL, 'JJJ'),
|
||||
('T', '即時告警', '異常事件查詢', NULL, 'KKK'),
|
||||
('U', '運維管理', '電站管理', NULL, 'PowerStation'),
|
||||
('V', '運維管理', '定期計畫建立', NULL, 'Operation'),
|
||||
('W', '運維管理', '運維作業記錄', NULL, 'OperationRecord'),
|
||||
('X', '系統管理', '公司管理', NULL, 'Company'),
|
||||
('Y', '系統管理', '帳號管理', NULL, 'User,Role'),
|
||||
('Z', '系統管理', '定時任務設定', NULL, 'LLL');
|
||||
INSERT INTO `auth_page` (`AuthCode`, `MainName`, `SubName`, `TagName`, `ControlName`, `Priority`) VALUES
|
||||
('A', '總覽', '地圖總覽', NULL, 'MapOverview', 1),
|
||||
('B', '總覽', '電站總覽', '逆變器監控', 'StationOverview_InverterInfo', 4),
|
||||
('C', '總覽', '電站總覽', '即時資訊', 'StationOverview_UpToDate', 2),
|
||||
('D', '總覽', '電站總覽', '基本資料', 'StationOverview_Info', 3),
|
||||
('E', '總覽', '電站總覽', '歷史資料', 'StationOverview_History', 6),
|
||||
('F', '總覽', '電站總覽', '逆變器分析', 'StationOverview_Inverter', 5),
|
||||
('G', '總覽', '電站總覽', '異常記錄', 'StationOverview_Exception', 7),
|
||||
('H', '總覽', '電站總覽', '運維記錄', 'StationOverview_OperationRecord', 8),
|
||||
('J', '', '', '顯示發電金額', 'ShowMoney', 9),
|
||||
('K', '運維管理', '電站管理', NULL, 'PowerStationManager', 18),
|
||||
('L', '交叉分析', '合併電站', NULL, 'AnalysisStationCombine', 10),
|
||||
('M', '交叉分析', '電站交叉分析', NULL, 'AnalysisStationInfo', 11),
|
||||
('N', '交叉分析', '逆變器交叉分析', NULL, 'AnalysisInverter', 12),
|
||||
('P', '報表查詢', '電站報表', NULL, 'StationReport', 13),
|
||||
('Q', '報表查詢', '電廠發電效能統計', NULL, 'PowerGeneration', 15),
|
||||
('R', '報表查詢', '台電售電紀錄', NULL, 'ElectricitySoldRecord', 14),
|
||||
('S', '報表查詢', '報告發送紀錄', NULL, 'NoticeSchedule', 16),
|
||||
('T', '即時告警', '異常事件查詢', NULL, 'ExceptionRecord', 17),
|
||||
('U', '運維管理', '定期計畫建立', NULL, 'Operation', 19),
|
||||
('V', '運維管理', '運維作業記錄', NULL, 'OperationRecord', 20),
|
||||
('W', '系統管理', '公司管理', NULL, 'Company', 21),
|
||||
('X', '系統管理', '帳號管理', NULL, 'User,Role', 22),
|
||||
('Y', '系統管理', '定時任務設定', NULL, 'LLL', 23);
|
||||
/*!40000 ALTER TABLE `auth_page` ENABLE KEYS */;
|
||||
|
||||
-- 傾印 資料表 solar_power.city 結構
|
||||
|
||||
Loading…
Reference in New Issue
Block a user