diff --git a/SolarPower/Repository/Implement/CompanyRepository.cs b/SolarPower/Repository/Implement/CompanyRepository.cs index 179f1f8..8f713bf 100644 --- a/SolarPower/Repository/Implement/CompanyRepository.cs +++ b/SolarPower/Repository/Implement/CompanyRepository.cs @@ -620,9 +620,9 @@ namespace SolarPower.Repository.Implement `Id` int(10) unsigned NOT NULL AUTO_INCREMENT, `Deleted` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否刪除, 0:否 1:是', `PowerStationId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '電站編號', - `Type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '類型,0:PR值', - `UpperLimit` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '上限值', - `LowerLimit` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '下限值', + `Type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT '0' COMMENT '類型,PR值', + `UpperLimit` decimal(10,2) DEFAULT NULL COMMENT '上限值', + `LowerLimit` decimal(10,2) DEFAULT NULL COMMENT '下限值', `Alarm` tinyint(4) NOT NULL DEFAULT '0' COMMENT '警報方式,0:email通知', `CreatedBy` int(10) unsigned NOT NULL COMMENT '建立者', `CreatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '建立時間',