1. 加入 dbschema
2. 修改 即時資訊
This commit is contained in:
parent
86a0f6f11a
commit
606801d3ac
@ -983,6 +983,51 @@ ALTER TABLE `power_station`
|
||||
ALTER TABLE `power_station`
|
||||
ADD COLUMN `HealthStatus` TINYINT(4) UNSIGNED NOT NULL DEFAULT '1' COMMENT '1:設備正常 2:設備斷線 3:設備異常' AFTER `AreaId`;
|
||||
|
||||
-- 各電站每天日照度的平均值 20210708
|
||||
CREATE TABLE `pyrheliometer_history_day` (
|
||||
`Id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`PowerStationId` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '電站編號',
|
||||
`TIMESTAMP` TIMESTAMP NULL DEFAULT NULL,
|
||||
`Irradiance` DECIMAL(5,2) NULL DEFAULT NULL COMMENT '每日平均日照度',
|
||||
PRIMARY KEY (`Id`) USING BTREE,
|
||||
INDEX `IDX_01` (`PowerStationId`) USING BTREE
|
||||
)
|
||||
COMMENT='各電站每天日照度的平均值'
|
||||
COLLATE='utf8mb4_unicode_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
-- 各電站每小時日照度的平均值 20210708
|
||||
CREATE TABLE `pyrheliometer_history_hour` (
|
||||
`Id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`PowerStationId` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '電站編號',
|
||||
`TIMESTAMP` TIMESTAMP NULL DEFAULT NULL,
|
||||
`Irradiance` DECIMAL(5,2) NULL DEFAULT NULL COMMENT '即時平均日照度',
|
||||
PRIMARY KEY (`Id`) USING BTREE,
|
||||
INDEX `IDX_01` (`PowerStationId`) USING BTREE
|
||||
)
|
||||
COMMENT='各電站每小時日照度的平均值'
|
||||
COLLATE='utf8mb4_unicode_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
-- 各電站每月日照度的平均值 20210708
|
||||
CREATE TABLE `pyrheliometer_history_month` (
|
||||
`Id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`PowerStationId` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT '電站編號',
|
||||
`TIMESTAMP` TIMESTAMP NULL DEFAULT NULL,
|
||||
`Irradiance` DECIMAL(5,2) NULL DEFAULT NULL COMMENT '每月平均日照度',
|
||||
PRIMARY KEY (`Id`) USING BTREE,
|
||||
INDEX `IDX_01` (`PowerStationId`) USING BTREE
|
||||
)
|
||||
COMMENT='各電站每月日照度的平均值'
|
||||
COLLATE='utf8mb4_unicode_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
|
||||
@ -150,12 +150,4 @@
|
||||
<canvas id="myChart"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-5">
|
||||
<div class="col-xl-6">
|
||||
<img src="img/backgrounds/clouds.png" class="img-fluid">
|
||||
</div>
|
||||
<div class="col-xl-6">
|
||||
<img src="img/backgrounds/clouds.png" class="img-fluid">
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user