Source:
Description:Ampeco通知資訊
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
AmpecoNotification | Element | ||||||
|- | notificationTime | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
通知日時 | |
|- | notificationType | 1..1 | enum! | PK | varchar(60) | 通知類別 | "AuthorizationNotification" | "BootNotification" | "ChargePointChangedNotification" | "ChargePointSyncConfigurationNotification" | "CircuitConsumptionNotification" | "DiagnosticsStatusNotification" | "HardwareStatusNotification" | "LocationChangedNotification" | "NetworkStatusNotification" | "SecurityEventNotification" | "SessionMeterValuesNotification" | "SessionStartStopNotification" | "SessionUpdateNotification" | "UserChangedNotification" | "SubOperatorChangedNotification" | "TariffChangedNotification" | "user.subscriptionChanged" | "ReservationChangedNotification" | "PaymentMethodChangedNotification" | "PartnerInviteChangedNotification" | "reservation.changed" | "user.paymentMethod.changed" | "partnerInvite.changed" | "roamingPlatform.changed" | "partner.changed" | "transaction.changed" |
|- | notificationData | 1..1 | AWSJSON! | jsonb | 通知資料 |
Source:
Description:
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
LoadBill | Element | ||||||
|- | powerNumber | 1..1 | String! | PK | varchar(15) | 電號 | |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “BillMappingObject” | |
|- | generatingSet | 1..1 | String! | PK | varchar(2) | 機組 | |
|- | objectID | 1..1 | String! | PK | varchar(10) | 案場編號 |
Data Import:無
Description:充電樁資訊
Name | Name | Card | AppSync Type | PK | SQL-Type | Name | Description |
ChargePoint | |||||||
|- | chargePointID | 1..1 | ID! | PK | int | Ampeco充電樁ID | |
|- | name | 1..1 | String! | varchar(250) | 充電樁名稱 | ||
|- | networkID | 1..1 | String! | varchar(250) | 充電樁id | ||
|- | networkProtocol | 1..1 | enum! | varchar(20) | OCPP通訊協定版本 | ocpp 1.5 | ocpp 1.6 | ocpp 2.0.1 | |
|- | status | 1..1 | enum! | varchar(20) | Ampeco充電樁狀態 | demo | disabled | active | out of order | |
|- | locationID | 1..1 | Int! | int | Ampeco充電站id | ||
|- | evseProps | 1..1 | [AWSJSON!] | jsonb[] | 充電設備資料 | ||
|-evseID | 1..1 | Int! | json - int | Ampeco EVSE Id | |||
|- | accessType | 1..1 | enum! | varchar(20) | 充電樁類型 | private | public | personal | |
|- | model | 0..1 | Reference(DeviceDefinition)→ | varchar(10) | 充電樁裝置定義 | ||
|- | phases | 0..1 | enum | char(1) | 相數 | 1 | 3 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:無
Description:充電樁場資訊
Name | Name | Card | AppSync Type | PK | SQL-Type | Name | Description |
ChargingStation | Element | ||||||
|- | chargingStationID | 1..1 | ID! | PK | varchar(15) | 充電樁場編號 | 同 objectRef |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “ChargingStation” | |
|- | name | 0..1 | String | varchar(300) | 充電樁場名稱 | ||
|- | objectRef | 0..1 | Reference(Object)<→ | varchar(10) | 案場參考 | ||
|- | plugType | 1..* | [AWSJSON!] | jsonb | 充電頭 | ||
|-type | 1..1 | enum! | json - string | 充電頭類型 | J1772 | Mennekes | GB/T | CCS1 | CHAdeMO | CCS2 | GB\T | Tesla | ||
|-count | 1..1 | Int! | json - number | 充電頭數量 | |||
|-model | 0..1 | Reference(DeviceDefinition)→ | json - string | 充電頭裝置定義 | |||
|-plugPortfolio | 0..1 | BackBone(Portfolio) | json - object | 充電頭履歷 | |||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description: O&M 2.0 平台中,CID 表單的個人篩選條件
Source: O&M 2.0 平台介面輸入
Data Import History: 無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
CidFilter | Element | ||||||
|- | cidFilterID | 1..1 | Int! | PK | serial | CID個人篩選條件編號 | |
|- | cidFilterName | 1..1 | String! | varchar(200) | CID個人篩選條件暱稱 | ||
|- | cidFilterContent | 0..1 | ASWJSON | jsonb | 個人篩選條件內容 | ||
|- | userRef | 1..1 | Reference(User)→ | uuid | 使用者識別碼 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description: O&M 2.0 平台中,CID 表單
Source: O&M 2.0 平台介面輸入
Data Import History: 無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
CidForm | Element | ||||||
|- | cidFormID | 1..1 | String! | PK | varchar(10) | 單號 | 編碼規則:"CD" + 6碼流水號 |
|- | status | 1..1 | Int! | smallint | 狀態 | 對應 SystemConfig ( systemName='OM', key='cidStatus') 的 values 欄位值的 key | |
|- | startDate | 1..1 | AWSDate! | date | 發生日期 | ||
|- | endDate | 0..1 | AWSDate | date | 結案日期 | ||
|- | encrypt | 0..1 | Boolean | boolean | 是否加密 | ||
|- | level | 0..1 | Int | smallint | 重要性 | 對應 SystemConfig ( systemName='OM', key='cidLevel') 的 values 欄位值的 key | |
|- | source | 1..1 | Int! | smallint | 來源 | 對應 SystemConfig ( systemName='OM', key='cidSource') 的 values 欄位值的 key | |
|- | userInCharge | 1..1 | Reference(User)→ | uuid | 負責人 | ||
|- | problemCategory | 1..1 | Int! | smallint | 問題分類 | 對應 SystemConfig ( systemName='OM', key='cidProblemCategory') 的 values 欄位值的 key | |
|- | errorCode | 0..1 | String | varchar(10) | Error Code | 並非指的是硬體裝置的 Error Code,是在 CID 層級定義的 | |
|- | topic | 1..1 | String! | varchar | 主題簡述 | ||
|- | possibleRootCause | 0..1 | String | varchar | 可能根因 | ||
|- | rootCause | 0..1 | String | varchar | 實際根因 | ||
|- | currentProgress | 0..1 | String | varchar | 目前分析進度 | ||
|- | solution | 0..1 | String | varchar | 實施對策 | ||
|- | logbook | 0..1 | String | varchar | 建議說明/分析紀錄 | ||
|- | askOmFlag | 0..1 | Int | smallint | 委託維運處理狀態 | 對應 SystemConfig ( systemName='OM', key='cidAskOmFlag') 的 values 欄位值的 key | |
|- | askOmLogs | 0..* | AWSJSON | jsonb | 委託維運歷程 | ||
|- askDate | 1..1 | AWSDate! | json - string | 委託日期 | |||
|- askReason | 1..1 | String! | json - string | 委託維運內容說明 | |||
|- askUserID | 1..1 | String! | json - string | 發起人ID | |||
|- takeDate | 0..1 | AWSDate | json - string | OM單位接收的日期 | |||
|- | files | 0..* | BackBone([FileProps]) | jsonb | 附件 | ||
|- | ocaps | 0..* | AWSJSON | jsonb | OCAP/SOP | ||
|- ocapID | 0..1 | String! | json - string | OCAP 編號 | 對應 SystemConfig ( systemName='OM', key='ocap') 的 values 欄位值的 key | ||
|- ocapRefDate | 0..1 | String! | json - string | 在 CID 單中加入此筆 OCAP 的日期 | |||
|- | objects | 0..* | [Reference(Object)]→
或 [String] |
varchar(10)[] | 相關案場 | 存放內容參考:
["T1234", "T2345"] |
|
|- | alertLogs | 0..* | [Reference(PVAlertLog)]→
或 [Int] |
int[] | 相關警報Log | 存放內容參考:
[1, 2, 3] |
|
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description: O&M 2.0 平台中,CID 表單異動歷程 (用於查詢使用者操作追蹤)
Source: O&M 2.0 平台異動 CID 表單資料時,同步記錄
Data Import History: 無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
CidFormHistory | Element | ||||||
|- | cidFormHistoryID | 1..1 | Int! | PK | serial | 流水號 | |
|- | cidFormID | 1..1 | String! | varchar(10) | CID表單單號 | ||
|- | cidFormContent | 1..1 | AWSJSON | jsonb | CID表單內容 | ||
|- | crUser | 1..1 | Reference(User)→ | uuid | 建立人員識別碼 | ||
|- | crDate | 1..1 | AWSDateTime! | timestamp
with time zone |
建立日期時間 |
Description: O&M 2.0 平台中,CID 表單的片語
Source: O&M 2.0 平台介面輸入
Data Import History: 無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
CidPhrase | Element | ||||||
|- | cidPhraseID | 1..1 | Int! | PK | serial | CID片語編號 | |
|- | problemCategory | 1..1 | Int! | smallint | CID表單 - 問題分類 | ||
|- | errorCode | 0..1 | String | varchar(10) | CID表單 - Error Code | ||
|- | kind | 1..1 | String! | varchar(30) | 片語類型 | topic | rootCause | solution | |
|- | phraseContent | 1..1 | String! | varchar | 片語內容 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:依據監控2.0 - RfdmeMonitor 資料庫(測試區)中的 ProjectDeviceInfo 資料進行匯入
Description:邊緣端ClientDevice資訊 \
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
ClientDevice | Element | ||||||
|- | clientDeviceID | 1..1 | ID! | PK | varchar(10) | 附屬裝置編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “ClientDevice” | |
|- | objectRef | 1..1 | Reference(Object)→ | varchar(10) | 裝置監控之案場編號 | 說明此 ClientDevice 監控哪一個案場的資料 | |
|- | locationObjectID | 1..1 | ID! | varchar(10) | 裝置實際放置案場編號 | 說明此 ClientDevice 實際放置在哪一個案場
當需要提供案場配置資料時,以此欄位組合實際配置情況 |
|
|- | clientDevicePortfolio | 0..1 | Backbone(Portfolio) | jsonb | 附屬裝置履歷 | ||
|- | deviceDefinitionRef | 0..1 | Reference(DeviceDefinition)→ | varchar(10) | 附屬裝置定義參考 | ||
|- | seq | 0..1 | Int | smallint | 附屬裝置序號 | ||
|- | modbusAddress | 0..1 | Int | smallint | 附屬裝置連線埠號 | ||
|- | modbusTCPIP | 0..1 | String | varchar(50) | 附屬裝置連線IP位址 | ||
|- | comPort | 0..1 | String | varchar(50) | 待 Roach 補充 | ||
|- | dreamsFlag | 0..1 | Int | smallint | 待 Roach 補充 | ||
|- | chargePointRef | 0..1 | Reference(ChargePoint) | int[] | 充電樁參考 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description:電路裝置參數
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
circuit | json | |||||
|- | circuitID | 1..1 | Int! | int | Ampeco電路ID | |
|- | name | 1..1 | String! | varchar(250) | Ampeco電路名稱 | |
|- | phases | 1..1 | String! | char(1) | 電路相數 | |
|- | maxCurrent | 1..1 | Float! | numeric(8,1) | 每相的最大電流 | |
|- | minChargePointCurrent | 0..1 | Float | numeric(8,1) | 充電樁最低可控電流 | |
|- | setSessionLimitToZeroOnIdle | 0..1 | Bool | boolean | 設定連線限制 | 若啟用,當充電樁為Idle狀態時,將session限制為0 |
Description:公司資料結構。 \
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Company | Element | ||||||
|- | companyID | 1..1 | ID! | PK | varchar(10) | 公司編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Company” | |
|- | name | 1..1 | String | varchar(300) | 公司名稱 | ||
|- | address | 0..1 | Address | jsonb | 公司地址 | ||
|- | contact | 0..1 | ContactPoint | jsonb | 公司聯絡人 | ||
|- | agent | 0..1 | String | varchar(10) | 公司代理人 | ||
|- | uniformNumber | 0..1 | String | varchar(8) | 公司統一編號 | ||
|- | state | 1..1 | String | varchar(1) | 資料狀態 | Y = 使用
D = 刪除 |
|
|- | vppRef | 0..* | Reference([TopologyVPPGrid])→ | varchar(100)[] | vpp 參考 | 目前只EMS使用 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | ||
|- | code | 0..1 | String | varchar(50) | RD用公司代碼 |
Description:公司休假資料
Source:?
Data Import:無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
CompanyHoliday | Element | ||||||
|- | companyHolidayID | 1..1 | ID! | PK | serial | 流水號 | |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “CompanyHoliday” | |
|- | companyRef | 1..1 | Reference(Company!)→ | varchar(10) | 公司流水號 | 對應 Company.companyID | |
|- | year | 0..1 | String | varchar(4) | 西元年 | ||
|- | holiday | 0..* | [String!] | varchar(10)[] | 放假日期 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description:5分鐘發電數據檔(粒度:案場)
Source:將 CorrectionPowerDevice 進行加總
Data Import:無
Status:rfdme_asset = 完整資料,有排程持續更新
rfdme_asset_stg = 需要的時候從 rfdme_asset 搬移一份
rfdme_asset_dev = 需要的時候從 rfdme_asset 搬移一份,目前可能有前一個版本的資料混雜
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
CorrectionPower | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “CorrectionPower” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
日期時間 | 每 5 分鐘一筆 |
|- | powerPerUT | 0..1 | Float | numeric(16, 8) | 該 5 分鐘累積發電量 | ||
|- | powerKwPerUT | 0..1 | Float | numeric(16, 8) | 該 5 分鐘每 kWp 的發電功率 | ||
|- | powerSum | 0..1 | Float | numeric(16, 8) | 當日累積發電量 | ||
|- | powerBillPerUT | 0..1 | Float | numeric(16, 8) | 該 5 分鐘累積發電量
(經電費單校正) |
||
|- | powerBillKwPerUT | 0..1 | Float | numeric(16, 8) | 該 5 分鐘發電功率
(經電費單校正) |
||
|- | powerBillSum | 0..1 | Float | numeric(16, 8) | 當日累積發電量
(經電費單校正) |
||
|- | flag | 0..1 | String | varchar(5) | 資料處理狀態 | ||
|- | moduleType | 0..1 | String | varchar(10) | 描述此筆記錄是使用哪一種元件的資料去計算 | dm | inv |
Description: 15分鐘發電數據檔
Source: 將 CorrectionPower 進行加總,以每 15 分鐘為間隔,描述該案場的發電量
Data Import:無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
CorrectionPower15 | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “CorrectionPower15” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
日期時間 | 每 15 分鐘一筆 |
|- | powerPerUT | 0..1 | Float | numeric(18, 8) | 該 5 分鐘累積發電量 | ||
|- | powerKwPerUT | 0..1 | Float | numeric(18, 8) | 該 5 分鐘發電功率 | ||
|- | powerSum | 0..1 | Float | numeric(18, 8) | 當日累積發電量 |
Description:5分鐘發電數據檔(粒度:裝置)
Source:週期性排程從 Kinesis 取得監控發電數據(數位電錶、逆變器),進行 5 分鐘發電換算
Data Import:無
Status:rfdme_asset = 完整資料,有排程持續更新
rfdme_asset_stg = 需要的時候從 rfdme_asset 搬移一份
rfdme_asset_dev = 需要的時候從 rfdme_asset 搬移一份,目前可能有前一個版本的資料混雜
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
CorrectionPowerDevice | Element | ||||||
|- | clientDeviceID | 1..1 | String! | PK | varchar(10) | 裝置編號 | |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “CorrectionPowerDevice” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
日期時間 | 每 5 分鐘一筆 |
|- | powerPerUT | 0..1 | Float | numeric(16, 8) | 該 5 分鐘累積發電量 | ||
|- | powerSum | 0..1 | Float | numeric(16, 8) | 當日累積發電量 | ||
|- | powerSatellitePerUT | 0..1 | Float | numeric(16, 8) | 衛星轉發電 5 分鐘累積發電量 | 用以校正監控值使用的衛星發電量 | |
|- | powerSatelliteSum | 0..1 | Float | numeric(16, 8) | 衛星轉發電當日累積發電量 | 用以校正監控值使用的衛星發電總量 | |
|- | flag | 0..1 | string | varchar(5) | 資料處理狀態 | 資料狀態:SN, YI, ABN NV, NI, CSN |
Description: 每日發電數據檔(粒度:案場)
Source: 從 CorrectionPower 取該日最後一筆資料成為每日發電數據
Data Import: 無
Status:rfdme_asset = 完整資料,有排程持續更新
rfdme_asset_stg = 需要的時候從 rfdme_asset 搬移一份
rfdme_asset_dev = 需要的時候從 rfdme_asset 搬移一份
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
DailyPower | Element | ||||||
|- | objectID | 1..1 | String! | PK | varchar(max) | 案場編號 | |
|- | date | 1..1 | AWSDate! | PK | date | 日期 | |
|- | dailyEnergy | 0..1 | Float | numeric(16,8) | 太陽能當日總發電量
(純監控計算) |
想表達實際上有發電賣給台電的發電量 | |
|- | correctDailyEnergy | 0..1 | Float | numeric(16,8) | 太陽能當日總發電量
(監控+衛星計算) |
理想上正常發電情況的發電量
(等同於 CorrectionPower 的最後一筆的數據) |
|
|- | billCorrection
- 等待 Jerry 改程式後,再將欄位改為 NOT NULL |
1..1 | Boolean | boolean | 是否做電費單校正 | true = 已校正
false = 未校正 |
Name:設備定義檔
Description:描述邊緣端裝置定義(被EnergyStorageSystem、 ChargingStation、 ClientDevice參考)
Source:Roach 手動更新或通知 DBA 更新
Data Import:依據監控2.0 - RfdmeMonitor 資料庫(測試區)中的 ProjectDeviceInfo 資料進行匯入
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
DeviceDefinition | Element | ||||||
|- | deviceDefinitionID | 1..1 | ID! | PK | varchar(10) | 裝置定義編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “DeviceDefinition” | |
|- | modelNumber | 0..1 | String | varchar(200) | 裝置型號 | unique number given to each product made by computer hardware manufacturers | |
|- | connectMode | 1.1 | String! | varchar(25) | 附屬裝置連線模式 | 此欄位值代表告知樹莓派要用哪種連線方式,來連線哪一家廠牌(哪一種)硬體
由工程師(江源)自行設定代碼,才可搭配實際情況使用 |
|
|- | brandCompanyRef | 0..1 | Reference(Company)→ | varchar(10) | 裝置廠牌 | brand | |
|- | firmware | 0..1 | String | varchar(100) | 裝置韌體版本 | “DEFAULT” is an option while you don’t notice what firmware is | |
|- | nodeProps | 0..1 | Backbone(NodeProps!) | jsonb | 裝置參數 | 參考 NodeProps 定義
system = inv | irr | dm | temp | ess | evcs … systemProps 參考下方 DeviceDefinition - nodeProps -systemProps 系列表格 |
|
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description:逆變器裝置參數
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
inv | ||||||
Description:日照計裝置參數
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
irr | json | |||||
|- | sensitivity | 0..1 | Range | json - object | 日照計靈敏度 | |
|- | impedance | 0..1 | SimpleQuantity | json - object | 日照計阻抗 | |
|- | measuringRange | 0..1 | Range | json - object | 日照計測量範圍 | |
|- | viewingField | 0..1 | SimpleQuantity | json - object | 日照計視野 | |
|- | spectralRange | 0..1 | Range | json - object | 日照計光譜範圍 | |
|- | operatingTempRange | 0..1 | Range | json - object | 日照計操作溫度範圍 | |
|- | samplingRate | 0..1 | Timing | json - object | 日照計取樣頻率 |
Description:電錶裝置參數
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
dm | json | |||||
|- | type | 0..1 | String | json - string | 電表類型 | |
|- | sampling rate | 0..1 | Timing | json - object | 取樣率 | 點/秒 |
|- | voltageMeasureAccuracy | 0..1 | SimpleQuantity | json - object | 電壓量測精度 | 單位:% |
|- | currentMeasureAccuracy | 0..1 | SimpleQuantity | json - object | 電流量測精度 | 單位:% |
|- | powerMeasureAccuracy | 0..1 | SimpleQuantity | json - object | 功率量測精度
( /kWh, kVARh, kVAh ) |
單位:% |
|- | energyMeasureAccuracy | 0..1 | SimpleQuantity | json - object | 電能量測精度
( /kWh, kVARh, kVAh ) |
單位:% |
|- | powerFactorMeasureAccuracy | 0..1 | SimpleQuantity | json - object | 功率因素量測精度 | 單位:% |
|- | frequencyMeasureAccuracy | 0..1 | SimpleQuantity | json - object | 頻率量測精度 | 單位:% |
|- | totalHarmonicMeasureAccuracy | 0..1 | SimpleQuantity | json - object | 總諧波量測精度 | 單位:% |
|- | singleHarmonicMeasureAccuracy | 0..1 | SimpleQuantity | json - object | 單次諧波量測精度 | 單位:% |
|- | maxInputPt1 | 0..1 | SimpleQuantity | json - object | 量測最高輸入-PT一次側 | 單位:V |
|- | minInputPt1 | 0..1 | SimpleQuantity | json - object | 量測最低輸入-PT一次側 | 單位:V |
|- | maxInputPt2 | 0..1 | SimpleQuantity | json - object | 量測最高輸入-PT二次側 | 單位:V |
|- | minInputPt2 | 0..1 | SimpleQuantity | json - object | 量測最低輸入-PT二次側 | 單位:V |
|- | maxInputCt1 | 0..1 | SimpleQuantity | json - object | 量測最高輸入-CT一次側 | 單位:A |
|- | minInputCt1 | 0..1 | SimpleQuantity | json - object | 量測最低輸入-CT一次側 | 單位:A |
|- | maxInputCt2 | 0..1 | SimpleQuantity | json - object | 量測最高輸入-CT二次側 | 單位:A |
|- | minInputCt2 | 0..1 | SimpleQuantity | json - object | 量測最低輸入-CT二次側 | 單位:A |
|- | maxInputFrequency | 0..1 | SimpleQuantity | json - object | 量測最高輸入-頻率 | 單位:Hz |
|- | minInputFrequency | 0..1 | SimpleQuantity | json - object | 量測最低輸入-頻率 | 單位:Hz |
|- | maxOperatingTemperature | 0..1 | SimpleQuantity | json - object | 最高工作溫度 | 單位:攝氏_度 |
|- | minOperatingTemperature | 0..1 | SimpleQuantity | json - object | 最低工作溫度 | 單位:攝氏_度 |
Description:溫度計裝置參數
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
temp | json | |||||
|- | sensitivity | 0..1 | Range | json - object | 溫度計靈敏度 | |
|- | measuringRange | 0..1 | Range | json - object | 溫度計測量範圍 | |
|- | operatingTempRange | 0..1 | Range | json - object | 溫度計操作溫度範圍 |
Description:儲能裝置參數
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
ess | json | |||||
|- | installedEnergy | 0..1 | SimpleQuantity | json - object | 電池電量 | 單位:Wh |
|- | capacity | 0..1 | SimpleQuantity | json - object | 額定容量 | 單位:kW |
|- | cycleLife | 0..1 | SimpleQuantity | json - object | 循環壽命 | 單位:次 (80% DOD)
循環幾次會降到 80% 的能力,可能 80% 的時候就會汰換 |
|- | normalVoltage | 0..1 | SimpleQuantity | json - object | 額定電壓 | 單位:Vdc |
|- | operatingVoltage | 0..1 | SimpleQuantity | json - object | 操作電壓範圍 | 單位:Vdc |
|- | efficiency | 0..1 | Quantity | json - object | 轉換效率 | 單位:>% |
|- | totalHarmonicDistortion | 0..1 | Quantity | json - object | 電網電流諧波 \ 波形失真率(THD) | 單位:<% |
|- | ratedChargePower | 0..1 | SimpleQuantity | json - object | 額定充電功率 | 單位:W |
|- | maxChargePower | 0..1 | SimpleQuantity | json - object | 最高充電功率 | 單位:W,視在功率 |
|- | ratedDischargePower | 0..1 | SimpleQuantity | json - object | 額定放電功率 | 單位:W |
|- | maxDischargePower | 0..1 | SimpleQuantity | json - object | 最高放電功率 | 單位:W,視在功率 |
|- | peakDischargePower | 0..1 | SimpleQuantity | json - object | 峰值放電功率 | 單位:W |
|- | ratedDischargeCurrent | 0..1 | SimpleQuantity | json - object | 額定放電電流 | 單位:A |
|- | maxDischargeCurrent | 0..1 | SimpleQuantity | json - object | 最高放電電流 | 單位:A |
|- | peakDischargeCurrent | 0..1 | SimpleQuantity | json - object | 峰值放電電流 | 單位:A |
|- | controlPower | 0..1 | SimpleQuantity | json - object | AC電壓 | 單位:V |
Description:充電樁裝置參數
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
evcs | json | |||||
|- | phase | 0..1 | Int | json - number | 相位 | e.g.1 - 單相3線,此欄位填 1
e.g.2 - 3相3線,此欄位填 3 |
|- | wire | 0..1 | Int | json - number | 電線 | e.g.1 - 單相3線,此欄位填 3
e.g.2 - 3相3線,此欄位填 3 |
|- | maxInputVoltAC | 0..1 | SimpleQuantity | json - object | 最高輸入電壓 (交流電) | 單位:V |
|- | minInputVoltAC | 0..1 | SimpleQuantity | json - object | 最低輸入電壓 (交流電) | 單位:V |
|- | outputVoltAC | 0..1 | SimpleQuantity | json - object | 輸出電壓 (交流電) | 單位:V |
|- | maxOutputVoltDC | 0..1 | SimpleQuantity | json - object | 最高輸出電壓 (直流電) | 單位:V |
|- | minOutputVoltDC | 0..1 | SimpleQuantity | json - object | 最低輸出電壓 (直流電) | 單位:V |
|- | maxOutputCurrent | 0..1 | SimpleQuantity | json - object | 最高輸出電流 | 單位:A |
|- | minOutputCurrent | 0..1 | SimpleQuantity | json - object | 最低輸出電流 | 單位:A |
|- | minEffciency | 0..1 | Quantity | json - object | 最低轉換效率 | 數值表示此項應 >= % |
|- | frequency | 0..1 | SimpleQuantity | json - object | 頻率 | 單位:Hz |
|- | userAuthMethod | 0..1 | String | json - string | 使用者認證方式 | e.g. RFID |
|- | maxOperatingTemperature | 0..1 | SimpleQuantity | json - object | 最高工作溫度 | 單位:攝氏_度 |
|- | minOperatingTemperature | 0..1 | SimpleQuantity | json - object | 最低工作溫度 | 單位:攝氏_度 |
Description:需被校正處理的裝置監控值列表
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
DevicePendingList | Element | ||||||
|- | id | 1..1 | String! | PK | varchar(15) | 裝置id | |
|- | sTime | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
處理起始時間 | |
|- | eTime | 1..1 | AWSDateTime! | timestamp
with time zone |
處理結束時間 | ||
|- | state | 0..1 | Bool | boolean | 處理狀態 | ||
|- | energy_diff | 0..1 | Float | numeric(16, 8) | 監控端區間實際發電數值 |
Data Import:依據監控2.0 - RfdmeMonitor 資料庫(測試區)中的 MonitorBoxInfo / NodeInfo / MonitorBoxNodeMapping 資料進行匯入
Description:邊緣端中心節點。在微電系統,可看作監控箱,或是研華Logger。 如果object為儲能系統,則EdgeCenterNode為儲能的中心系統(包含控制與監控)。將取代ControlNode(coreDevice 樹莓派)。 \
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
EdgeCenterNode | Element | ||||||
|- | edgeCenterNodeID | 1..1 | ID! | PK | varchar(10) | 邊緣中心節點編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “EdgeCenterNode” | |
|- | name | 0..1 | String | varchar(300) | 邊緣節點名稱 | ||
|- | edgeControllerRef | 1..* | Reference([EdgeController!])→ | varchar(10)[] | 邊緣中心節點內置主板 | ||
|- | edgeCenterNodePortfolio | 0..1 | Backbone(Portfolio)→ | jsonb | 邊緣中心節點履歷 | ||
|- | edgeCenterNodeDefinition | 0..1 | Reference(DeviceDefinition)→ | varchar(10) | 邊緣中心節點裝置定義 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:匯入 EdgeCenterNode 資料表時,再依據 NodeInfo 資料匯入
Description:邊緣端中心節點內之監控/控制程式安裝位置 (即樹莓派或研華 logger)
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
EdgeController | Element | ||||||
|- | edgeControllerID | 1..1 | ID! | PK | varchar(10) | 邊緣控制器編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “EdgeController” | |
|- | edgeCenterNodeRef | 1..1 | Reference(EdgeCenterNode)<→ | varchar(10) | 邊緣中心節點參考 | ||
|- | seq | 1..1 | Int | smallint | 子系統順序編號 | 在同一個 EdgeCenterNode 中,子系統的優先順序編號 | |
|- | nodeProps | 0..1 | AWSJson | jsonb | 控制板的屬性(設定) | 提供 Edge 端開發者自行定義 edge 端程式所需的資訊 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | ||
|- | operateModel | 0..1 | String | varchar(10) | |||
|- | phoneNumber | 0..1 | String | varchar(10) |
Data Import:轉入 Object 資料時,將屬於儲能型案場的部分轉入
Description:儲能場資訊
Schematic:
>>>>> gd2md-html alert: inline image link here (to images/image1.jpg). Store image on your image server and adjust path/filename/extension if necessary.
(Back to top)(Next alert)
>>>>>
Name | Name | Card. | AppSync Type | SQL-Type | PK | Name | Description |
EnergyStorageSystem | Element | ||||||
|- | energyStorageSystemID | 1..1 | ID! | varchar(15) | PK | 儲能場案場編號 | 同 objectRef |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “EnergyStorageSystem” | |
|- | name | 0..1 | String | varchar(300) | 儲能場案場名稱 | ||
|- | objectRef | 0..1 | Reference(Object)<→ | varchar(10) | 案場參考 | ||
|- | essPortfolio | 0..1 | BackBone(Portfolio) | jsonb | 儲能場管理系統履歷 | ||
|- | essType | 1..* | [AWSJSON!] | jsonb | 儲能系統 | ||
|-type | 1..1 | CodeDisplay | json - string | 儲能系統類型 | 只記錄 CodeDisplay 中的 code 值
electrical | electochemical | mechanical | hybrid | thermal \ OR dReg | sReg |
||
|-model | 0..1 | Reference(DeviceDefinition)→ | json - string | 儲能系統裝置定義 | |||
|-capacity | 1..1 | Float! | json - number | 儲能系統裝置容量 | |||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source:
Description: EVSE 之監控數據校正每分鐘資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
EvsePower | Element | ||||||
|- | timestamp | 1..1 | AWSDateTime! | timestamp
with time zone |
日期時間 | ||
|- | chargePointID | 1..1 | Int! | int | Ampeco 充電樁 ID | ||
|- | evseID | 1..1 | Int! | int | Ampeco 充電設備 ID | ||
|- | energy | 0..1 | Float | numeric(10,4) | EVSE當日當前累積度數 | 單位:Wh | |
|- | current | 0..1 | Float | numeric(10,4) | EVSE當前電流提供充電 | 單位:A | |
|- | voltage | 0..1 | Float | numeric(10,4) | EVSE當前電壓提供充電 | 單位:V | |
|- | power | 0..1 | Float | numeric(10,4) | EVSE當前功率提供充電 |
Data Import:
Description: EVSE 之監控數據校正每15分鐘資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
EvsePower15 | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “EvsePower15” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
日期時間 | 每 15 分鐘一筆 |
|- | powerPerUT | 0..1 | Float | numeric(18,8) | 該 15 分鐘累積用電量 | 單位:kWh | |
|- | powerKwPerUT | 0..1 | Float | numeric(18,8) | 該 15 分鐘平均功率 | 單位:kW | |
|- | powerSum | 0..1 | Float | numeric(18,8) | 當日累積用電量 | 單位:kWh |
Source:
Description: 記錄 EVSE 之監控數據原始資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
EvseSession | Element | ||||||
|- | timestamp | 1..1 | AWSDateTime! | timestamp
with time zone |
日期時間 | ||
|- | chargePointID | 1..1 | Int! | int | Ampeco 充電樁 ID | ||
|- | evseID | 1..1 | Int! | int | Ampeco 充電設備 ID | ||
|- | sessionID | 1..1 | Int! | int | Ampeco 充電紀錄 ID | ||
|- | energyConsumed | 0..1 | Float | numeric(10,4) | 此次充電的電度數使用(當次sessionID累積) | 單位:Wh | |
|- | soc | 0..1 | Float | numeric(10,4) | 車子當前Soc | 單位:百分比 | |
|- | currentConsumed | 0..1 | Float | numeric(10,4) | 此次充電的電流使用(當次sessionID累積) | 單位:A | |
|- | currentOffered | 0..1 | Float | numeric(10,4) | EVSE當前電流提供充電 | 單位:A | |
|- | voltage | 0..1 | Float | numeric(10,4) | EVSE當前電壓提供充電 | 單位:V | |
|- | powerOffered | 0..1 | Float | numeric(10,4) | EVSE當前功率提供充電 |
Source: rfdme-iot-data-test-ts-db.rfdme-ess-state-test-tb
Description: 記錄 ESS 之監控數據資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
EssPower15 | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “EssPower15” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
日期時間 | 每 15 分鐘一筆 |
|- | activePower | 0..1 | Float | numeric(18,8) | 15 分鐘平均充放電功率 | 單位:kW | |
|- | soc | 0..1 | Float | numeric(6,5) | 當15分鐘充電狀態 | 單位:百分比, 值域 0~1 |
Data Import: 無
Source: rfdme-iot-data-test-ts-db.rfdme-ess-state-test-tb
Description: 記錄ESS最新soc狀態
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
EssStatus | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | |
|- | clientDeviceID | 1..1 | ID! | PK | varchar(10) | 附屬裝置編號 | |
|- | soc | Float | numeric(5,4) | 剩餘容量 | |||
|- | txDate | AWSDateTime | DateTime | 更新時間 |
Source:
Description:
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
ImputationRecord | Element | ||||||
|- | objectID | 1..1 | String! | PK | varchar(max) | ||
|- | latestStamp | 0..1 | AWSDate! | date | |||
|- | isDone | 0..1 | Bool | boolean | ? |
Description:使用H8衛星反演日射量、電廠鄰近的氣象局測站風速及氣溫,搭配相關模型產出的發電數值。(針對不同逆變器的日資料)
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
|- | objectID | PK | varchar(5) | 案場編號 | |||
|- | date | PK | date | 日期 | 台灣日期 | ||
|- | inv | PK | int | 逆變器號碼 | |||
|- | kWh | float | 模型估計發電量 |
Description:使用H8衛星反演日射量、電廠鄰近的氣象局測站風速及氣溫,搭配相關模型產出的發電數值。(針對不同objectID的日資料)
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
|- | objectID | PK | varchar(5) | 案場編號 | |||
|- | date | PK | date | 日期 | 台灣日期 | ||
|- | kWh | float | 模型估計發電量 |
Description:使用H8衛星反演日射量、電廠鄰近的氣象局測站風速及氣溫,搭配相關模型產出的發電數值。(針對不同案場、傾角方位角的日資料)
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
|- | objectID | PK | varchar(5) | 案場編號 | |||
|- | date | PK | date | 日期 | 台灣日期 | ||
|- | String_azimuth | PK | float | 方位角 | |||
|- | String_slope | PK | float | 傾角 | |||
|- | GHI | float | 全天空輻射量 | ||||
|- | POA | float | 模組接收日射量 | ||||
|- | kWh_per_kWp | float | 模型估計發電量 | 每kW估計量 |
Description:使用H8衛星反演日射量、電廠鄰近的氣象局測站風速及氣溫,搭配相關模型產出的發電數值。(針對不同逆變器的小時資料)
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
|- | objectID | PK | varchar(5) | 案場編號 | |||
|- | date | PK | date | 日期 | 台灣日期 | ||
|- | inv | PK | int | 逆變器號碼 | |||
|- | kWh | float | 模型估計發電量 |
Description:使用H8衛星反演日射量、電廠鄰近的氣象局測站風速及氣溫,搭配相關模型產出的發電數值。(針對不同objectID的小時資料)
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
|- | objectID | PK | varchar(5) | 案場編號 | |||
|- | time | PK | timestamp \ with time zone | 日期時間 | |||
|- | kWh | float | 模型估計發電量 |
Description:使用H8衛星反演日射量、電廠鄰近的氣象局測站風速及氣溫,搭配相關模型產出的發電數值。(針對不同案場、傾角方位角的小時資料)
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
|- | objectID | PK | varchar(5) | 案場編號 | |||
|- | time | PK | timestamp \ with time zone | 日期時間 | |||
|- | String_azimuth | PK | float | 方位角 | |||
|- | String_slope | PK | float | 傾角 | |||
|- | GHI | float | 全天空輻射量 | ||||
|- | POA | float | 模組接收日射量 | ||||
|- | kWh_per_kWp | float | 模型估計發電量 | 每kW估計量 |
Source:
Description:預報每個時間點的log
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
InsolationPredictionLog | Element | ||||||
|- | logID | 1..1 | String! | PK | varchar(max) | ? | |
|- | logTime | 0..1 | AWSDateTime! | timestamp
with time zone |
? | ||
|- | logValue | 0..1 | jsonb | ? |
Source:rfdme-iot-interpolation-data-prod-stream
Description:紀錄最新收到的發電量資料,以便校正服務使用
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
LatestEnergyRecord | Element | ||||||
|- | objectID | 1..1 | String! | varchar(max) | 案場編號 | ||
|- | deviceID | 1..1 | String! | PK | varchar(10) | 設備編號 | |
|- | time | 1..1 | AWSDateTime! | timestamp
with time zone |
資料時間戳記 | ||
|- | activeEnergy | 0..1 | Float | numeric(18, 8) | 總累計發電量 | ||
|- | acActiveEnergyDaily | 0..1 | Float | numeric(18, 8) | 日累計發電量 | ||
|- | abnormalCount | int | smallInt | 即時異常次數 | 用於處理即時異常數值 |
Source:
Description:紀錄最新收到的發電量資料,以便校正服務補值模式使用
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
LatestEnergyRecordRecalculate | Element | ||||||
|- | objectID | 1..1 | String! | varchar(max) | 案場編號 | ||
|- | deviceID | 1..1 | String! | PK | varchar(10) | 設備編號 | |
|- | time | 1..1 | AWSDateTime! | timestamp
with time zone |
資料時間戳記 | ||
|- | activeEnergy | 0..1 | Float | numeric(18, 8) | 總累計發電量 | ||
|- | acActiveEnergyDaily | 0..1 | Float | numeric(18, 8) | 日累計發電量 | ||
|- | abnormalCount | int | smallInt | 即時異常次數 | 用於處理即時異常數值 |
Data Import:轉入 Object 資料時,將屬於負載型案場的部分轉入
Description:負載場資訊
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Loading | Element | ||||||
|- | loadID | 1..1 | ID! | PK | varchar(15) | 負載場編號 | 同 objectRef |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Load” | |
|- | name | 0..1 | String | varchar(300) | 負載場名稱 | ||
|- | objectRef | 1..1 | Reference(Object)<→ | varchar(10) | 案場參考 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source:負載端提供之電費單
Description:記錄負載電費單之原始數據
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
LoadBill | Element | ||||||
|- | loadBillID | 1..1 | ID! | PK | varchar(10) | 負載電費單編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Price” | |
|- | loadRef | 1..1 | Reference(Load!) | varchar(10) | 負載案場參考 | ||
|- | powerNumber | 1..1 | String! | varchar(15) | 負載場電號 | 對應到LoadSubInfo.powerNumberID | |
|- | billType | 1..1 | String | varchar(2) | 電費單類型 | 1 = 時間電價
2 = 非時間電價 |
|
|- | yearMonth | 1..1 | String! | varchar(8) | 電費單年月 | ||
|- | startDate | 1..1 | AWSDate! | date | 電費單計費開始日期 | 台灣日期 | |
|- | endDate | 1..1 | AWSDate! | date | 電費單計費結束日期 | 台灣日期 | |
|- | loadPower | 0..1 | Int! | int | 用電度數 | 註:非時間電價電費單需填入資料 | |
|- | peakPower | 0..1 | Int! | int | 尖峰用電度數 | ||
|- | halfPeakPower | 0..1 | Int! | int | 半尖峰用電度數 | ||
|- | satHalfPeakPower | 0..1 | Int! | int | 週六半尖峰用電度數 | ||
|- | offPeakPower | 0..1 | Int! | int | 離峰用電度數 | ||
|- | approveFlag | 1..1 | String! | char(1) | 電費單確認註記 | Y=已經過人工確認;N=尚未經過人工確認 | |
|- | recordTrail | 1..1 | RecordLog! | json | 資料日誌 |
Data Import:DEXMA Sample 匯入
Description: 記錄 DEXMA Sample 負載數據資料之記錄
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
LoadPower | Element | ||||||
|- | loadExampleID | 1..1 | String! | PK | varchar(10) | 範本編號 | 對應到 SystmeConfig.systmeConfigID = '2' 清單ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “LoadExample” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
日期時間 | 每 15 分鐘一筆 |
|- | powerPerUT | 0..1 | Float | numeric(18,8) | 該 15 分鐘累積發電量 | 單位:kWh | |
|- | powerSum | 0..1 | Float | numeric(18,8) | 當日累積發電量 | 單位:kWh |
Data Import:RE平台上傳
Description: 記錄 RE 平台負載端資料之記錄
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
LoadPower | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “LoadPower15” | |
|- | powerNumber | 1..1 | String! | PK | varchar(15) | 負載場電號 | 對應到LoadSubInfo.powerNumberID |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
日期時間 | 每 15 分鐘一筆 |
|- | powerPerUT | 0..1 | Float | numeric(18,8) | 該 15 分鐘累積發電量 | 單位:kWh | |
|- | powerSum | 0..1 | Float | numeric(18,8) | 當日累積發電量 | 單位:kWh |
Data Import:Darren 產出之模擬用監控用電資料
Description: 記錄每 15 分鐘一筆的用電監控資料 (粒度到裝置)
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
LoadPower15Device | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | |
|- | clientDeviceID | 1..1 | String! | PK | varchar(10) | 裝置編號 | |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “LoadPower15Device” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | |
|- | loadKwPerUT | 0..1 | Float | numeric(18, 8) | 該 15 分鐘的平均用電功率 | 單位:kW | |
|- | loadPerUT | 0..1 | Float | numeric(18, 8) | 該 15 分鐘用電量 | ||
|- | loadSum | 0..1 | Float | numeric(18, 8) | 當日累積用電量 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | crDate = 排程執行時間 |
Data Import:無
Source: 由 Andrew 設計之用電預測模型產出
Description: 記錄每 60 分鐘一筆的用電預測資料
※ 問 Andrew
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
LoadPrediction | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “LoadPrediction” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | 每 60 分鐘一筆 |
|- | loadKwPerUT | 0..1 | Float | numeric(18,8) | 該 60 分鐘的平均用電功率 | ||
|- | loadPerUT | 0..1 | Float | numeric(18,8) | 該 60 分鐘累積用電量 | 單位:kWh | |
|- | loadSum | 0..1 | Float | numeric(18,8) | 當日累積用電量 | 單位:kWh | |
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 |
Data Import:Darren 產出之模擬用預測用電資料
Description: 記錄每 15 分鐘一筆的用電預測資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
LoadPrediction15 | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “LoadPrediction15” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | 每 15 分鐘一筆 |
|- | loadKwPerUT | 0..1 | Float | numeric(18,8) | 用電功率 | ||
|- | loadPerUT | 0..1 | Float | numeric(18,8) | 該 15 分鐘累積用電量 | 單位:kWh | |
|- | loadSum | 0..1 | Float | numeric(18,8) | 當日累積用電量 | 單位:kWh | |
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 |
Data Import:轉入 Load 資料時,建立對應的電號資訊
Description:負戴電號相關資訊
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Loading | Element | ||||||
|- | powerNumberID | 1..1 | ID! | PK | varchar(15) | 負載電號編號 | |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Load” | |
|- | name | 0..1 | String | varchar(300) | 電號名稱 | ||
|- | loadRef | 1..1 | Reference(Load)<→ | PK | varchar(15) | 負戴場參考 | |
|- | timePriceID | 1..1 | String | varchar(2) | 時間電價類型 | 對應到 SystmeConfig.systmeConfigID = '3' | |
|- | contractCapacity | 0..1 | Int | bigint | 契約容量 | ||
|- | sourceType | 0..1 | String | varchar(2) | 用電數據來源 | 1 = 監控數據
2 = 電費單 3 = 網路範本資料 4 = 非時間電價電費單 |
|
|- | exampleID | 0..1 | String | varchar(2) | 範本類型 | 對應到 SystmeConfig.systmeConfigID = '2' | |
|- | nonTimeExampleID | 0..1 | String | varchar(2) | 非時間電價範本類型 | 對應到 SystmeConfig.systmeConfigID = '2' | |
|- | state | 1..1 | String | varchar(1) | 資料狀態 | Y = 使用
D = 刪除 |
|
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description: 任何使用端呼叫『訊息通知模組 (API) 』時,該 API 的被呼叫歷程
Source: 程式 rfdme-vpp-message-notify.api-insert-sqs-notify-queue
update time: 2022-12-06 11:36 (Jeremy)
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
NotifyMessageRecord | Element | ||||||
|- | notifyMessageRecordID | 1..1 | Int! | PK | serial | 訊息通知編號 | ID
編碼規則:流水號 |
|- | programName | 1..1 | String! | varchar(200) | 程式名稱 | ||
|- | programMessage | 1..1 | String! | varchar(max) | 程式欲傳送之訊息內容 | ||
|- | sendType | 1..1 | String! | varchar(2) | 訊息通知類型 | 1 = 通知指定的 LINE 群組
2 = 通知指定的 Mail 3 = 以上兩者都通知 |
|
|- | groupCodes | 0..1 | String! | varchar(100) | 指定的 LINE 群組代碼 | 字串,以逗號區隔
對應至 SystemConfig 中,systemConfigID=’1’ 的 values 值 |
|
|- | mailToList | 0..1 | String! | varchar(max) | 指定的 Mail | 字串,以逗號區隔 | |
|- | crDate | 1..1 | AWSDateTime! | timestamp
with time zone |
建立時間 |
Data Import:
- 依據監控2.0 - RfdmeMonitor 資料庫(測試區)中的 ProjectDeviceInfo 有對應到的案場清單 (理論上的實際資料)
- RFDME AWS RDS 的 asset 資料庫,轉入 T6294L / T6294ESS / T6294EdReg / T8004L / T8004ESS / T8305L / T8305ESS (調度DEMO用假資料)
Description:案場資訊,案場為太陽能案場、儲能案場、充電樁場、負載場之其一
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Object | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID
編碼規則:依據開發部給定的代碼 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Object” | |
|- | name | 0..1 | String | varchar(300) | 案場名稱 | Object Name | |
|- | projectRef | 0..1 | Reference(Project?) | varchar(10) | 對應之專案編號 | ||
|- | status | 0..1 | CodeDisplay | varchar(20) | 案場狀態 | 只記錄 CodeDisplay 中的 code 值
active | inactive | suspended | repairing | error |
|
|- | node | 1..1 | Backbone(NodeUnion!) | jsonb | 案場類型 | ||
|-system | 1..1 | CodeDisplay | json - string | 案場類型 - 值 | 只記錄 CodeDisplay 中的 code 值
SolarPlant | EnergyStorageSystem | ChargingStation | Loading |
||
|-systemRef | 1..1 | Reference( UNION(SolarPlant | EnergyStorageSystem | ChargingStation | Load) !)<→ | json - string | 案場類型 - 外部對應鍵值 | SolarPlant | EnergyStorageSystem | ChargingStation | Loading - type of object
查詢 SolaPlant | EnergyStorageSystem | ChargingStation | Loading 使用的條件值,如:T8305 |
||
|- | objectPortfolio | 0..1 | Backbone(Portfolio) | jsonb | 案場履歷 | ||
|- | successiveOwnerships | 0..* | [Ownership!] | jsonb | 案場歷年擁有權 | AcquisiteObject table included | |
|- | partnerRef | 0..* | Reference([Company])→ | varchar(10)[] | 案場合夥公司參考 | ||
|- | location | 0..1 | GeoLocation | jsonb | 案場地理位置 | GPS location of the object | |
|- | address | 0..1 | Address | jsonb | 案場地址 | ||
|- | capacity | 1..1 | Float! | numeric(15,5) | 案場容量 | 太陽能廠 = 所有太陽能板的最多發電裝置容量
儲能場 = 所有電池最多能儲存多少電量 充電樁 = 所有充電樁其供電的最大總額 負載 = ? |
|
|- | edgeCenterNode | 0..1 | AWSJSON | jsonb | 案場邊緣節點 | ||
|-type | 1..1 | CodeDisplay | json - string | 案場邊緣節點類型 | 只記錄 CodeDisplay 中的 code 值
control | monitoring | both |
||
|-edgeCenterNodeRef | 1..* | Reference([EdgeCenterNode!])→ | json - string[] | 案場邊緣節點參考 | 因為一個EdgeCenterNode,可對應1到*案場,且一個案場可對應0到1個監控箱。所以這邊EdgeCenterNode為0..1,然後由Object直接refer到EdgeCenterNode,EdgeCenterNode不refer回Object。 | ||
|- | weatherStationRef | 0..1 | Reference(WeatherStationInfo)→ | varchar(10) | 案場附近觀測站參考 | ||
|- | priceContractRef | 0..* | Reference([PriceContract])→ | varchar(10)[] | 相關電價 | 躉售電價、轉供電價...等 | |
|- | state | 1..1 | String | varchar(1) | 資料狀態 | Y = 使用
D = 刪除 |
|
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description:需被校正處理的案場監控值列表
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
ObjectPendingList | Element | ||||||
|- | id | 1..1 | String! | PK | varchar(15) | 案場id | |
|- | sTime | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
處理起始時間 | |
|- | eTime | 1..1 | AWSDateTime! | timestamp
with time zone |
處理結束時間 | ||
|- | state | 0..1 | Bool | boolean | 處理狀態 | ||
|- | energy_diff | 0..1 | Float | numeric(16, 8) | 時間區間發電量 |
Description: O&M 2.0 平台中,OM 表單的個人篩選條件
Source: O&M 2.0 平台介面輸入
Data Import History: 無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
OmFilter | Element | ||||||
|- | omFilterID | 1..1 | Int! | PK | serial | OM個人篩選條件編號 | |
|- | omFilterName | 1..1 | String! | varchar(200) | OM個人篩選條件暱稱 | ||
|- | omFilterContent | 0..1 | ASWJSON | jsonb | 個人篩選條件內容 | ||
|- | userRef | 1..1 | Reference(User)→ | uuid | 使用者識別碼 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description: O&M 2.0 平台中,OM 表單
Source: O&M 2.0 平台介面輸入
Data Import History: 無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
OmForm | Element | ||||||
|- | omFormID | 1..1 | String! | PK | varchar(10) | 單號 | 編碼規則:"OM" + 6碼流水號 |
|- | cidFormRef | 0..1 | Reference(CidForm)→ | varchar(10) | CID表單單號 | ||
|- | status | 1..1 | Int! | smallint | 狀態 | 對應 SystemConfig ( systemName='OM', key='omStatus') 的 values 欄位值的 key | |
|- | startTime | 0..1 | AWSDateTime | timestamp
with time zone |
派工開始時間 | ||
|- | endTime | 0..1 | AWSDateTime | timestamp
with time zone |
派工結束時間 | ||
|- | soure | 0..1 | Int | smallint | 來源 | 對應 SystemConfig ( systemName='OM', key='omSource') 的 values 欄位值的 key | |
|- | object | 0..1 | String | varchar(30) | 相關案場 | ||
|- | traffic | 0..1 | Int | smallint | 交通方式 | 對應 SystemConfig ( systemName='OM', key='omTraffic') 的 values 欄位值的 key | |
|- | expectPvStatus | 0..1 | Int | smallint | 預期案場狀態 | 對應 SystemConfig ( systemName='OM', key='omExpectPvStatus') 的 values 欄位值的 key | |
|- | action | 0..1 | Int | smallint | 行動 | 對應 SystemConfig ( systemName='OM', key='omAction') 的 values 欄位值的 key | |
|- | executionResult | 0..1 | Int | smallint | 執行結果 | 對應 SystemConfig ( systemName='OM', key='omExecutionResult') 的 values 欄位值的 key | |
|- | processingItem | 0..1 | String | varchar | 處理項目 | ||
|- | actionPlan | 0..1 | String | varchar | 行動計劃 | ||
|- | userInCharge | 0..* | Reference([User])→ | uuid[] | 主要處理人員 | 存放內容參考:
[<UUID1>, <UUID2>] |
|
|- | userCooperate | 0..* | Reference([User])→ | uuid[] | 協同處理人員 | 存放內容參考:
[<UUID3>, <UUID4>] |
|
|- | continueFlag | 1..1 | String | char(1) | 接續開單註記 | Y=需要接續開單
N=不需要接續開單 Z =已完成接續開單 |
|
|- | nextOmFormID | 0..1 | String | varchar(10) | 接續的 OM 單號 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description: O&M 2.0 平台中,OM 表單異動歷程 (用於查詢使用者操作追蹤)
Source: O&M 2.0 平台異動 OM 表單資料時,同步記錄
Data Import History: 無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
OmFormHistory | Element | ||||||
|- | omFormHistoryID | 1..1 | Int! | PK | serial | 流水號 | |
|- | omFormID | 1..1 | String! | varchar(10) | OM表單單號 | ||
|- | omFormContent | 1..1 | AWSJSON | jsonb | OM表單內容 | ||
|- | crUser | 1..1 | Reference(User)→ | uuid | 建立人員識別碼 | ||
|- | crDate | 1..1 | AWSDateTime! | timestamp
with time zone |
建立日期時間 |
Description: O&M 2.0 平台中,OM 處理歷程
Source: O&M 2.0 平台介面輸入
Data Import History: 無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
OmWorkHistory | Element | ||||||
|- | omFormID | 1..1 | String! | PK | varchar(10) | OM表單單號 | |
|- | seq | 1..1 | Int! | PK | smallint | 該表單之處理歷程編號 | 不同張OM單,編號重編 |
|- | status | 1..1 | Int! | smallint | 狀態 | 對應 SystemConfig ( systemName='OM', key='omWorkStatus') 的 values 欄位值的 key | |
|- | startTime | 1..1 | AWSDateTime | timestamp
with time zone |
處理開始時間 | ||
|- | endTime | 1..1 | AWSDateTime | timestamp
with time zone |
處理結束時間 | ||
|- | userID | 1..1 | String! | uuid | 處理人員 | ||
|- | workContent | 1..1 | String! | varchar | 工作簡述 | ||
|- | recommend | 1..1 | String! | varchar | 下次建議 | ||
|- | logbook | 0..1 | String | varchar | LogBooks | ||
|- | ocaps | 0..* | [String] | varchar(10)[] | Ocaps | 存放內容參考:
["OCAP0001", "OCAP0002"] |
|
|- | components | 0..* | AWSJSON | jsonb | 更換組件 | ||
|- componentID | 1..1 | Int! | json - number | 組件編號 | |||
|- amount | 1..1 | Float! | json - number | 組件數量 | |||
|- | files | 0..* | BackBone([FileProps]) | jsonb | 附件 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source: 從各平建立此表資料
Description: 外部案場之專案資訊
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Project | Element | ||||||
|- | outerProjectID | 1..1 | ID! | PK | varchar(10) | 專案編號 | ID
編碼規則 ( RE 平台 ): 發電 = 字母為 S 用電 = 字母為 L ????? |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “OuterProject” | |
|- | name | 0..1 | String | varchar(100) | 專案名稱 | ||
|- | ownerRef | 0..1 | Reference(Company) | varchar(10) | 持有者公司參考 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source:settingsDB
Description:逆變器規格
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
PVModule | Element | ||||||
|- | model | 1..1 | String! | PK | varchar(max) | 模組型號 | |
|- | vendor | 0..1 | String | varchar(max) | 廠商 | ||
|- | cellType | 0..1 | String | varchar(max) | |||
|- | cellSize | 0..1 | Int | integer | |||
|- | layoutHeight | 0..1 | Int | integer | |||
|- | layoutWidth | 0..1 | Int | integer | |||
|- | height | 0..1 | Float | numeric(10, 2) | |||
|- | width | 0..1 | Float | numeric(10, 2) | |||
|- | thickness | 0..1 | Float | numeric(10, 2) | |||
|- | tolerance_LB | 0..1 | Float | numeric(4, 2) | |||
|- | tolerance_UB | 0..1 | Float | numeric(4, 2) | |||
|- | busBar | 0..1 | String | varchar(5) | |||
|- | pmpp | 0..1 | Float | numeric(10, 4) | |||
|- | vmpp | 0..1 | Float | numeric(10, 4) | |||
|- | impp | 0..1 | Float | numeric(10, 4) | |||
|- | voc | 0..1 | Float | numeric(10, 4) | |||
|- | isc | 0..1 | Float | numeric(10, 4) | |||
|- | tc_pmpp | 0..1 | Float | numeric(10, 4) | |||
|- | tc_voc | 0..1 | Float | numeric(10, 4) | |||
|- | tc_isc | 0..1 | Float | numeric(10, 4) | |||
|- | noct | 0..1 | Float | numeric(10, 4) | |||
|- | maxOvercurrent | 0..1 | Float | numeric(10, 4) | |||
|- | rs | 0..1 | Float | numeric(10, 4) | |||
|- | eff | 0..1 | Float | numeric(10, 4) |
Data Import:匯入 PriceContract 資料表時,將價格相關欄位整理後轉入
Description:價格資料
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
Price | Element | |||||
|- | priceID | 1..1 | ID! | varchar(10) | 價格編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Price” |
|- | name | 1..1 | String! | varchar(200) | 價格名稱 | |
|- | values | 1..1 | AWSJSON! | jsonb | 價格金額 | |
|- | recordTrail | 1..1 | RecordLog! | json | 資料日誌 |
Data Import:RFDME AWS RDS 的 asset 資料庫,將 SellPrice 資料轉置後匯入 (註:需要另外建立 Company 資料)
Description:與金錢交易有關的合約資料記錄
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
PriceContract | Element | ||||||
|- | priceContractID | 1..1 | ID! | PK | varchar(10) | 合約編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “PriceContract” | |
|- | name | 0..1 | String | varchar(500) | 合約名稱 | ||
|- | contractPeriod | 1..1 | Period | jsonb | 合約有效區間 | ||
|- | prices | 1..* | AWSJSON! | jsonb | 合約價格內容 | ||
|-partyACompanyRef | 1..1 | Reference(Company!) | json - string | 甲方 | |||
|-partyBCompanyRef | 0..1 | Reference(Company) | json - string | 乙方 | |||
|-partyATakeMoney | 0..1 | Boolean | json - bool | 是否是甲方收錢 | 如果是 true 表示甲方收錢,如果是 false 表示甲方付錢 | ||
|-pricePeriod | 1..1 | Period! | json - object | 價格有效區間 | |||
|-price | 1..1 | Float! | json - number | 躉售價格 | |||
|-acquisitionPrice | 0..1 | Float! | json - number | 電力取得價格 | |||
|-revenueSharingRatio | 0..1 | Float! | json - number | 抽成比例 | |||
|-demandLimit | 0..1 | Float! | json - number | 契約容量上限 | 單位:瓩(kW) | ||
|- | staust | 1..1 | String! | varchar(2) | 狀態 | null = 正式合約
1 = VPP試算 2 = RE試算 |
|
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source: 可從 S:\CURVE 相關資料夾中的檔案,整理至此表
Description: 微電建造(買進)案場之專案資訊
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Project | Element | ||||||
|- | projectID | 1..1 | ID! | PK | varchar(10) | 專案編號 | ID
編碼規則:依據開發部/業務部給定的代碼 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Project” | |
|- | name | 0..1 | String | varchar(100) | 專案名稱 | ||
|- | ownerRef | 0..1 | Reference(Company) | varchar(10) | 持有者公司參考 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:從 Timestream.rfdme-predict-power5-data-test-tb 轉入,該表在轉入後將移除不使用
Source: 利用太陽能案場之監控數據,預測之後 5 分鐘的發電數據
Description: 記錄每 5 分鐘一筆的太陽能發電預測資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
PvMeterPrediction | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “PvMeterPrediction” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | 每 5 分鐘一筆 |
|- | powerKwPerUT | 0..1 | Float | numeric(18,8) | 該 5 分鐘每 kWp 的發電功率 | 單位:kW (有除以裝置容量) | |
|- | powerPerUT | 0..1 | Float | numeric(18,8) | 該 5 分鐘累積發電量 | 單位:kWh | |
|- | powerSum | 0..1 | Float | numeric(18,8) | 當日累積發電量 | 單位:kWh | |
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 |
Data Import:從 Timestream.rfdme-predict-data-test-tb 轉入,該表在轉入後將移除不使用
Source: 由 智堯 設計之太陽能發電預測模型產出
Description: 記錄每 5 分鐘一筆的太陽能發電預測資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
PvSatellitePrediction | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “PvSatellitePrediction” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | 每 5 分鐘一筆 |
|- | powerKwPerUT | 0..1 | Float | numeric(18,8) | 該 5 分鐘每 kWp 的發電功率 | 單位:kW (有除以裝置容量) | |
|- | powerPerUT | 0..1 | Float | numeric(18,8) | 該 5 分鐘累積發電量 | 單位:kWh | |
|- | powerSum | 0..1 | Float | numeric(18,8) | 當日累積發電量 | 單位:kWh | |
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 |
Data Import:從 Timestream.rfdme-predict-solcast-elec-test-tb 轉入,該表在轉入後將移除不使用
Source: 利用爬蟲撈取 solcast 網頁並記錄所需資訊
Description: 記錄 solcast 的太陽能發電預測資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
PvSolcastPrediction | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “PvSolcastPrediction” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | |
|- | powerKwPerUT | 0..1 | Float | numeric(18,8) | 該 5 分鐘每 kWp 的發電功率 | 單位:kW (有除以裝置容量) | |
|- | powerPerUT | 0..1 | Float | numeric(18,8) | 該 5 分鐘累積發電量 | 單位:kWh | |
|- | powerSum | 0..1 | Float | numeric(18,8) | 當日累積發電量 | 單位:kWh | |
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 |
Description:太陽能案場中,太陽能板與逆變器串列組合資訊
Datasource:S:\共用\電站相關\PPdiagnose_access 的 PPD_settingsDB-v1F.xlsm
How to Import:手動執行程式 ( Yuan撰寫),將 xlsm 資料更新到資料表 \
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
PvString | Element | ||||||
|- | objectID | 1..1 | Reference(SolarPlant!) ←→ | PK | varchar(10) | 太陽能案場編號 | |
|- | stringID | 1..1 | String! | PK | varchar(10) | 串列編號 | |
|- | roofNO | 0..1 | Int | smallint | 屋頂號 | ||
|- | roofFace | 0..1 | String | varchar(10) | 屋頂座向 | ||
|- | azimuth | 0..1 | Int | smallint | 方位角 | ||
|- | roofElevationAngle | 0..1 | Float | numeric(5, 2) | 屋頂仰角 | ||
|- | moduleSerialNumber | 0..1 | String | varchar(50) | 模組序號 | ||
|- | stringModuleCount | 0..1 | Int | smallint | 單串模組數 | ||
|- | stringCapacity | 0..1 | Float | numeric(10, 4) | 單串容量(KW) | 對應原表:THEORY_STR_OU_KW | |
|- | dcBox1EqNO | 0..1 | Int | smallint | 直流箱1設備編號 | 對應原表:INPUT_DCB1_EQ_No | |
|- | dcBox1InNO | 0..1 | Int | smallint | 直流箱1輸入編號 | 對應原表:INPUT_DCB1_IN_No | |
|- | dcBox1OutNO | 0..1 | Int | smallint | 直流箱1輸出編號 | 對應原表:INPUT_DCB1_OU_No | |
|- | dcBox1InKw | 0..1 | Float | numeric(10, 4) | 直流箱1輸入kw | 對應原表:THEORY_DCB1_IN_KW | |
|- | dcBox2EqNO | 0..1 | Int | smallint | 直流箱2設備編號 | 對應原表:INPUT_DCB2_EQ_No | |
|- | dcBox2InNO | 0..1 | Int | smallint | 直流箱2輸入編號 | 對應原表:INPUT_DCB2_IN_No | |
|- | dcBox2OutNO | 0..1 | Int | smallint | 直流箱2輸出編號 | 對應原表:INPUT_DCB2_OU_No | |
|- | dcBox2InKw | 0..1 | Float | numeric(10, 4) | 直流箱2輸入kw | 對應原表:THEORY_DCB2_IN_KW | |
|- | invEqNO | 0..1 | Int | smallint | 逆變器設備編號 | 對應: ClientDevice.seq
對應原表:INPUT_INV_EQ_No |
|
|- | invInNO | 0..1 | Int | smallint | 逆變器輸入編號 | 對應原表:INPUT_INV_IN_No | |
|- | invOutNO | 0..1 | Int | smallint | 逆變器輸出編號 | 對應原表:INPUT_INV_OU_No | |
|- | invInKw | 0..1 | Float | numeric(10, 4) | 逆變器輸入kw | 對應原表:THEORY_INV_IN_KW | |
|- | invOutKw | 0..1 | Float | numeric(10, 4) | 逆變器輸出kw | 對應原表:THEORY_INV_OU_KW | |
|- | acBoxEqNO | 0..1 | Int | smallint | 交流箱設備編號 | 對應原表:INPUT_ACB_EQ_No | |
|- | acBoxInNO | 0..1 | Int | smallint | 交流箱輸入編號 | 對應原表:INPUT_ACB_IN_No | |
|- | acBoxOutNO | 0..1 | Int | smallint | 交流箱輸出編號 | 對應原表:INPUT_ACB_OU_No | |
|- | acBoxInKw | 0..1 | Float | numeric(10, 4) | 交流箱輸入kw | 對應原表:THEORY_ACB_IN_KW | |
|- | acBoxOutKw | 0..1 | Float | numeric(10, 4) | 交流箱輸出kw | 對應原表:THEORY_ACB_OU_KW | |
|- | trEqNO | 0..1 | Int | smallint | 對應原表:INPUT_TR_EQ_No | ||
|- | trInNO | 0..1 | Int | smallint | 對應原表:INPUT_TR_IN_No | ||
|- | trOutNO | 0..1 | Int | smallint | 對應原表:INPUT_TR_OU_No | ||
|- | trInKw | 0..1 | Float | numeric(10, 4) | 對應原表:THEORY_TR_IN_KW | ||
|- | trOutKw | 0..1 | Float | numeric(10, 4) | 對應原表:THEORY_TR_OU_KW | ||
|- | mpEqNO | 0..1 | Int | smallint | 總盤設備編號 | 對應原表:INPUT_MP_EQ_No | |
|- | mpInNO | 0..1 | Int | smallint | 總盤輸入編號 | 對應原表:INPUT_MP_IN_No | |
|- | mpOutNO | 0..1 | Int | smallint | 總盤輸出編號 | 對應原表:INPUT_MP_OU_No | |
|- | mpInKw | 0..1 | Float | numeric(10, 4) | 總盤輸入kw | 對應原表:THEORY_MP_IN_KW | |
|- | mpOutKw | 0..1 | Float | numeric(10, 4) | 總盤輸出kw | 對應原表:THEORY_MP_OU_KW | |
|- | pmEqNO | 0..1 | Int | smallint | 數位電表設備編號 | 對應原表:INPUT_PM_EQ_No | |
|- | pmInNO | 0..1 | Int | smallint | 數位電表輸入編號 | 對應原表:INPUT_PM_IN_No | |
|- | pmOutNO | 0..1 | Int | smallint | 數位電表輸出編號 | 對應原表:INPUT_PM_OU_No | |
|- | pmOutKw | 0..1 | Float | numeric(10, 4) | 數位電表輸出kw | 對應原表:THEORY_PM_OU_KW | |
|- | smEqNO | 0..1 | Int | smallint | 日照計設備編號 | 對應原表:INPUT_SM_EQ_No | |
|- | smInNO | 0..1 | Int | smallint | 日照計輸入編號 | 對應原表:INPUT_SM_IN_No | |
|- | smOutNO | 0..1 | Int | smallint | 日照計輸出編號 | 對應原表:INPUT_SM_OU_No | |
|- | smOutKw | 0..1 | Float | numeric(10, 4) | 日照計輸出kw | 對應原表:THEORY_SM_OU_KW | |
|- | tmEqNO | 0..1 | Int | smallint | 溫度計設備編號 | 對應原表:INPUT_TM_EQ_No | |
|- | tmInNO | 0..1 | Int | smallint | 溫度計輸入編號 | 對應原表:INPUT_TM_IN_No | |
|- | tmOutNO | 0..1 | Int | smallint | 溫度計輸出編號 | 對應原表:INPUT_TM_OU_No | |
|- | tmOutKw | 0..1 | Float | numeric(10, 4) | 溫度計輸出kw | 對應原表:THEORY_TM_OU_KW | |
|- | crUser | 1..1 | String! | uuid | 建立人員識別碼 | ||
|- | crDate | 1..1 | AWSDateTime! | timestamp
with time zone |
建立日期 | ||
|- | txUser | 1..1 | String! | uuid | 異動人員識別碼 | ||
|- | txDate | 1..1 | AWSDateTime! | timestamp
with time zone |
異動日期 | ||
|- | invInDc | 0..1 | Float | numeric(10,4) | INV起始電壓 |
Data Import:從 Timestream.rfdme-predict-wrf-data-test-tb 轉入,該表在轉入後將移除不使用
Source: 利用 WRF / LSTM 機制計算出之太陽能發電預測資料
Description: 記錄透過機器學習機制所得的太陽能發電預測資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
PvWrfPrediction | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “PvWrfPrediction” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | |
|- | powerKwPerUT | 0..1 | Float | numeric(18,8) | 該 5 分鐘每 kWp 的發電功率 | 單位:kW (有除以裝置容量) | |
|- | powerPerUT | 0..1 | Float | numeric(18,8) | 該 5 分鐘累積發電量 | 單位:kWh | |
|- | powerSum | 0..1 | Float | numeric(18,8) | 當日累積發電量 | 單位:kWh | |
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 |
Source: signal asset
Description: 記錄signal的asset資訊
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Signal | Element | ||||||
|- | signalID | 1..1 | ID! | PK | varchar(15) | 訊號編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Signal” | |
|- | signalName | 1..1 | String! | varchar(60) | 訊號名稱 | ||
|- | displayName | 1..1 | String! | varchar(60) | 訊號呈現名稱 | ||
|- | signalType | 1..1 | String! | varchar(20) | 訊號類型 | ||
|- | component | 1..1 | String! | varchar(30) | 訊號來自的組件 | INV, DM, IRR, TEMP, CORE_DEVICE | |
|- | trigger | 1..1 | String! | varchar(20) | 訊號檢測頻率Cron | ||
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 |
PVAlert
Source: alert asset
Description: 記錄alert的asset資訊
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Alert | Element | ||||||
|- | alertID | 1..1 | ID! | PK | varchar(15) | 警報編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Alert” | |
|- | alertName | 1..1 | String! | varchar(60) | 警報名稱 | ||
|- | displayName | 1..1 | String! | varchar(60) | 警報呈現名稱 | ||
|- | alertType | 1..1 | String! | varchar(30) | 警報類型 | ||
|- | signalNameRef | 1..* | [String!] | varchar(60)[] | 判斷訊號參考 | ||
|- | condition | 1..1 | String! | varchar(10) | 訊號判斷邏輯 | could be “or”, “and”, “order” | |
|- | extend | 1..1 | AWSJson! | jsonb | 判斷訊號需持續時間 | ||
|- | component | 1..1 | String! | varchar(30) | 警報來自組件 | ||
|- | degree | 1..1 | String! | varchar(20) | 警報嚴重程度 | ||
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 |
Source: signal經由異常檢測框架等方法產生,並且去重後後寫入PVSignalLog
Description: 記錄經由異常檢測框架l產生之signal
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
PVSignalLog | Element | ||||||
|- | signalLogID | 1..1 | ID! | varchar(10) | 訊號流水編號 | 流水編號,前端顯示用 | |
|- | signalOwnerID | 1..1 | ID! | PK | varchar(10) | 訊號擁有者編號 | ID (可能是 objectID 或者 clientDeviceID) |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “PVSignalLog” | |
|- | signalName | 1..1 | String! | PK | varchar(60) | 訊號名稱 | 對應到 Signal.signalName |
|- | startTimestamp | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
訊號起始時間 | |
|- | endTimestamp | 1..1 | AWSDateTime! | timestamp
with time zone |
訊號結束時間 | ||
|- | ownerType | 1..1 | String! | varchar(20) | 擁有者類型 | 用以說明signalOwnerID是objectID or clientDeviceID | |
|- | signalHistory | 1..1 | AWSJson! | jsonb | 訊號訊息內容 | 紀錄同一事件所產生的歷史signal | |
|-time | 1..1 | String! | jsonb | 訊號檢測時間 | |||
|-switch | 1..1 | Boolean | jsonb | 訊號開關 | |||
|-objectID | 1..1 | String! | jsonb | 案場編號 | |||
|-anomalyInfo | 0..1 | JsonElement | jsonb | 異常點資訊 | 案例 \
[
] |
||
|-anomalyPoints | 0..* | [JsonElement] | jsonb | 異常點 | 案例
[
] |
||
|- | switch | 1..1 | Boolean! | boolean | 訊號開關 | ||
|- | expired | 1..1 | Boolean! | boolean | 訊號是否過期 | active or inactive | |
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 |
Source: PVSignalLog經由business roles or decision tree or ml等方法產生Alert,並且去重後後寫入PVAlertLog
Description: 記錄經由signal產生之alert
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
PVAlertLog | Element | ||||||
|- | alertLogID | 1..1 | ID! | varchar(10) | 警報流水編號 | 流水編號,前端顯示用 | |
|- | alertOwnerID | 1..1 | ID! | PK | varchar(10) | 警報擁有者編號 | 依據 ownerType 欄位的內容,來決定此欄位的編號涵義
Object → objectID ClientDevice → clientDeviceID EdgeController → edgeControllerID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “PVAlertLog” | |
|- | alertName | 1..1 | String! | PK | varchar(60) | 警報名稱 | 對應到 Alert.alertName |
|- | startTimestamp | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
警報起始時間 | |
|- | endTimestamp | 1..1 | AWSDateTime! | timestamp
with time zone |
警報結束時間 | ||
|- | signalLogRef | 1..1 | AWSJson! | jsonb | 警報對應訊號 | 觸發此警報的訊號參考 | |
|- | ownerOtherSignalRef | 1..1 | AWSJson! | jsonb | 擁有者其他訊號 | 同個擁有者 其他訊號參考 | |
|- | ownerType | 1..1 | String! | varchar(20) | 擁有者類型 | Object | ClientDevice | EdgeController | |
|- | lossEnergy | 1..1 | Float | numeric(16, 5) | 累積發電損失 | 單位:kwh | |
|- | expired | 1..1 | Boolean | boolean | 警報是否過期 | active or inactive | |
|- | recordTrail | 1..1 | AWSJson! | jsonb | 資料日誌 | ||
|- | realComponent | 0..1 | Int | smallint | 實際設備等級 | 對應 SystemConfig 表中
systemName='OM', key='AlertRealComponent' 之設定 |
|
|- | misjudge | 0..1 | String | char(1) | 是否為誤判 | Y = 是
N = 否 Null = 否 |
|
|- | misjudgeType | 0..1 | Int | smallint | 誤判類別 | 對應 SystemConfig 表中
systemName='OM', key='AlertMisjudgeType' 之設定 |
|
|- | misjudgeReason | 0..1 | String | varchar(3000) | 誤判說明 | ||
|- | respType | 0..1 | Int | smallint | 責任歸屬類別 | 對應 SystemConfig 表中
systemName='OM', key='AlertRespType' 之設定 |
|
|- | cause | 0..1 | String | varchar(3000) | 事由 |
Data Import:RFDME AWS RDS 的 asset 資料庫,將 RealInsolationPower 資料轉置後匯入
Source: 向日葵8號衛星資料 BIN 檔
Description: 衛星資料直轉發電量
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
RealInsolationPower | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “RealInsolationPower” | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
日期時間 | 每 10 分鐘一筆 |
|- | powerPerUT | 0..1 | Float | numeric(18, 8) | 該 10 分鐘累積發電量 | ||
|- | powerKwPerUT | 0..1 | Float | numeric(18, 8) | 該 10 分鐘發電功率 | ||
|- | powerSum | 0..1 | Float | numeric(18, 8) | 當日累積發電量 |
Description: 迴歸式衛星預報之公式記錄
※ 目前等待程式調整,再由開發者提出資料表最終規格,並轉入資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
RegressionParameter | Element | ||||||
|- | id | 1..1 | PK | integer | |||
|- | uuid | 1..1 | varchar(max) | ||||
|- | objectID \ db:無此欄位 | 1..1 | ID! | varchar(10) | 案場編號 | ID | |
|- | type \ db:無此欄位 | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “RegressionParameter” | |
|- | kind | 0..1 | varchar(max) | ||||
|- | x2 | 0..1 | double | ||||
|- | x | 0..1 | double | ||||
|- | c | 0..1 | double |
Data Import:RFDME AWS RDS 的 asset 資料庫,將 Resource / ResourceDeviceMapping 資料轉置後匯入
Description: 調度優化使用的抽象聚合資源
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Resource | Element | ||||||
|- | resourceID | 1..1 | ID! | PK | varchar(100) | 抽象聚合資源編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → "Resource" | |
|- | name | 1..1 | String! | varchar(200) | 抽象聚合資源顯示名稱 | ||
|- | kind | 1..1 | enum! | varchar(50) | 抽象聚合資源類型
pv | ess | load | ev |
列舉值:source | sink | storage | bus | |
|- | clientDeviceRef | 1..* | Reference([ClientDevice!]) → | varchar(10)[] | 邊緣端裝置參考 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source:
Description: 拆解調度指令,依照其內容展開成指定資源每分鐘的調度目標值。此表的資料,應只由 MQTT Subscriber Program 維護
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
ResourcePaocRecord | Element | ||||||
|- | resourceID | 1..1 | ID! | PK | varchar(100) | 抽象聚合資源編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → "ResourcePaocRecord" | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | |
|- | simulateFlag | 1..1 | String! | PK | char(1) | 模擬數據註記 | |
|- | wattValue | 0..1 | Float | numeric(15, 5) | 調度目標值 | ||
|- | achieveRate | 0..1 | Float | numeric(6, 5) | 該分鐘的調度達成率 | ||
|- | topologyVPPGridRef | 0..1 | Reference(TopologyVPPGrid)→ | varchar(100) | VPP虛擬電網參考 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | 因為是轉入的資料,可以不寫 crUser / txUser |
Data Import:轉入 Object 資料時,將屬於太陽能型案場的部分轉入
Description:太陽能案場資訊
Note:如果微電另外接入其他案場,且案場有許多資訊不列於下面的欄位,則可以加入interface SolarPlant,並且讓此SolarPlant去繼承interface SolarPlant。 \
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
SolarPlant | Element | ||||||
|- | solarPlantID | 1..1 | ID! | PK | varchar(15) | 太陽能案場編號 | 同 objectRef |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “SolarPlant” | |
|- | name | 0..1 | String | varchar(300) | 太陽能案場名稱 | ||
|- | objectRef | 0..1 | Reference(Object)<→ | varchar(10) | 案場參考 | ||
|- | solarPlantType | 0..1 | CodeDisplay | varchar(50) | 太陽能案場類型 | 只記錄 CodeDisplay 中的 code 值
none | singleSubstation | lowSubstation |
|
|- | isPatch | 0..1 | Boolean | boolean | 是否是"補"型的案場 | 不知道用意,但在原代碼設計中,代碼含有 E 的,表示它是 "補" 案,所以增加此屬性來記錄。 | |
|- | setup | 0..1 | AWSJson / String | jsonb | 開關及參數設定 | { \ "show_monitor":<電站維運管理平台開關>, \ "setup_inv ":<Inv監控開關>, \ "setup_sp ":<Sp監控開關>, \ "health_monitor_pvalue":<健康分析參數>, \ "inv_offset_value":<健康分析參數>, \ "sp_offset_value ":<健康分析參數>, \ "line_notify_status":<Line通知開關>, \ } | |
|- | annualPower | 0..1 | Float | numeric(10, 5) | 首年保證發電量 (kWh) | 此欄位唯一會變動數值的時間為 一開始案場建立與案場將被交易時且有簽維運合約的情況下。
※ 以 setttingsDB.xlsx 中的資料更新 |
|
|- | annualDecayRate | 0..1 | SimpleQuantity | jsonb | 年效率衰減(%) | ||
|- | meterBeginDate | 0..1 | AWSDate | date | 掛表日 | ※ 以 settingsDB.xlsx 中的資料更新 | |
|- | validityBeginDate | 0..1 | AWSDate | date | 結算起始日 | 如果是自建的案場,結算起始日與掛表日為同一天
如果是非自建的案場(即買來的),結算起始日為買到手的那天 保留欄位,目前整併索拉的資料 |
|
|- | saleMode | 1..* | [String!] | varchar(100)[] | 賣電對象 | fit(躉售), wheeling(轉供) | |
|- | guaranteeBeginDate | 0..1 | AWSDate | date | 保發起始日 | ||
|- | preparePeriod | 0..1 | String | varchar(20) | 大案的施工期別 | 以目前天璣大案為例,它的期別有
1, 2-1-1, 2-2-2, … |
|
|- | maxMatch | 1..1 | Float | numeric(6,5) | 最大匹配比例 | 案場可以提供給轉供負載優化匹配的比例
未匹配值為 1 已匹配10%,值為 0.9 |
|
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source:
Description: 全服務通用型設定
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
SystemConfig | Element | ||||||
|- | systmeConfigID | 1..1 | ID! | PK | varchar(20) | 設定編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “SystemConfig” | |
|- | systemName | 1..1 | String! | varchar(200) | 服務名稱 | ||
|- | key | 1..1 | String! | varchar(100) | |||
|- | values | 1..1 | AWSJSON! | jsonb | 自行定義之設定值 | ||
|- | description | 0..1 | String! | varchar(max) | 設定說明 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description:台電基本電費資料
Source:『電價計算_台電_電價表_11201調漲_簡易版.pdf』整理的資料
Data Import:無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TPCBasicPrice | Element | ||||||
|- | tpcBasicPriceID | 1..1 | ID! | PK | serial | 流水號 | |
|- | tpcPowerBillRef | 1..1 | Reference(TPCPowerBill)→ | integer | 台電電費類型流水號 | 對應 TPCPowerBill.tpcPowerBillID | |
|- | isSummer | 1..1 | Boolean! | boolean | 是否為夏月 | ||
|- | deviceContractByHouse | 0..1 | Float | numeric(6, 2) | (裝置契約 / 不分)
按戶計收費用 - 不分 |
每戶每月 | |
|- | deviceContractByHouseMeter1 | 0..1 | Float | numeric(6, 2) | 按戶計收費用 - 單相 | 每戶每月 | |
|- | deviceContractByHouseMeter3 | 0..1 | Float | numeric(6, 2) | 按戶計收費用 - 三相 | 每戶每月 | |
|- | deviceContractByKw | 0..1 | Float | numeric(6, 2) | (裝置契約)
裝置契約費用 |
每瓩每月 | |
|- | responseContractByHouse | 0..1 | Float | numeric(6, 2) | (需量契約)
按戶計收費用 - 不分 |
每戶每月 | |
|- | contract | 0..1 | Float | numeric(6, 2) | 經常契約 | 每瓩每月 | |
|- | halfPeakContract | 0..1 | Float | numeric(6, 2) | 半尖峰契約 | 每瓩每月 | |
|- | satHalfPeakContract | 0..1 | Float | numeric(6, 2) | 週六半尖峰契約 | 每瓩每月 | |
|- | offPeakContract | 0..1 | Float | numeric(6, 2) | 離峰契約 | 每瓩每月 |
Source: EdregAchievementLookup、AfcPriceConfig
Description: 台電官方用設定檔
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TPCConfig | Element | ||||||
|- | tpcConfigID | 1..1 | ID! | PK | varchar(10) | 台電設定檔編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TPCConfig” | |
|- | kind | 1..1 | String! | varchar(500) | 規則適用說明 | ||
|- | rules | 0..1 | AWSJSON | jsonb | 條件 |
Source: EssPaocRecord
Description: 記錄台電端進行 e-dReg 調度的指令
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TPCEdregPaocRecord | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TPCEdregPaocRecord” | |
|- | startTime | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
開始時間 | |
|- | endTime | 1..1 | AWSDateTime! | timestamp
with time zone |
結束時間 | ||
|- | bidPrice | 0..1 | Int | smallint | 得標價格 | ||
|- | bidCapacity | 0..1 | Float | numeric(8, 3) | 得標容量 | ||
|- | shiftCapacity | 0..1 | Float | numeric(8, 3) | 電能移轉排程量 | ||
|- | basicFrequency | 0..1 | Float | numeric(6, 3) | 基準頻率 | ||
|- | qualityIndex | 0..1 | Float | numeric(3, 2) | 服務品質指標(監控) | ||
|- | tpcConfigRef | 0..1 | Reference(TPCConfig)→ | varchar(10) | AFC輔助服務價格對應 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | 因為是轉入的資料,可以不寫 crUser / txUser |
Source: EssEdregRecord
Description: 從 Timestream 資料庫中,搬移 ess-edreg 監控資料,並在搬移時進行達成率的計算
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TPCEdregRecord | Element | ||||||
|- | objectID | 1..1 | ID! | PK | varchar(10) | 案場編號 | ID
編碼規則:流水號 |
|- | clientDeviceID | 1..1 | String! | PK | varchar(10) | 附屬裝置編號 | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
監控時間 | |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TPCEdregRecord” | |
|- | measureName | 0..1 | String | varchar(20) | 監測名稱 | ||
|- | frequency | 0..1 | Float | numeric(5, 3) | 頻率 | ||
|- | dregPower | 0..1 | Float | numeric(18, 8) | dReg功率 | ||
|- | soc | 0..1 | Float | numeric(11, 8) | 電池狀態 | ||
|- | enhancedPower | 0..1 | Float | numeric(18, 8) | 尖離峰轉移功率(e-dReg) | ||
|- | activePower | 0..1 | Float | numeric(18, 8) | 實際功率 | ||
|- | achieveRate | 0..1 | Float | numeric(11, 8) | 達成率 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | 因為是轉入的資料,可以不寫 crUser / txUser |
Source: 台電公告,手動輸入
Description: 記錄台電定義之用電離峰日
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TPCHoliday | Element | ||||||
|- | tpcHolidayID | 1..1 | ID! | PK | varchar(10) | 台電離峰日編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TPCHoliday” | |
|- | year | 1..1 | String! | varchar(4) | 西元年 | ||
|- | dates | 0..* | [String!] | varchar(10)[] | 該年之離峰日 | 台灣日期 | |
|- | govHoliday | 0..* | [String!] | varchar(10)[] | 該年之政府放假日 | 手動轉入(https://data.gov.tw/dataset/14718)
轉入是否放假為2的日期 |
|
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | 因為是轉入的資料,可以不寫 crUser / txUser |
Description:台電電費類型檔
Source:從『電價計算_台電_電價表_11201調漲_簡易版.pdf』整理的資料
Data Import:無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TPCPoweBill | Element | ||||||
|- | tpcPowerBillID | 1..1 | ID! | PK | serial | 流水號 | |
|- | kindValue | 1..1 | Int | smallint | 電價類型值 | 讓使用的 table (LoadSubInfo) 對應回來的值 | |
|- | kindName | 1..1 | String! | varchar(100) | 電價類型名稱 | 簡易型二段式、簡易型三段式... | |
|- | seq | 1..1 | Int | smallint | 該類型的序號 | ||
|- | sort | 0..1 | Int | smallint | 電價類型排序 | ||
|- | validStartDate | 0..1 | AWSDate | date | 有效日期 - 起 | ||
|- | vlidEndDate | 0..1 | AWSDate | date | 有效日期 - 迄 | ||
|- | over2000pricePerUnit | 0..1 | Float | numeric(6, 2) | 每月總度數超過2000度之部分,每度加收金額 | ||
|- | summerStartDate | 1..1 | String | varchar(5) | 夏月計算日期 - 起 | 格式:MM-DD | |
|- | summerEndDate | 1..1 | String | varchar(5) | 夏月計算日期 - 迄 | 格式:MM-DD |
Source: 電力交易平台
Description: 電力交易平台相關參數,有部分未知資料先撈進資料庫
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TPCSettleInformation | Element | ||||||
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
資料時間 | |
|- | marginalPrice | 0..1 | Float | numeric(18, 8) | 未知 | ||
|- | regBid | 0..1 | Float | numeric(18, 8) | 調頻備轉得標容量(國營) | ||
|- | regBidQse | 0..1 | Float | numeric(18, 8) | 調頻備轉得標容量(民間) | ||
|- | regBidNontrade | 0..1 | Float | numeric(18, 8) | 調頻備轉得標容量(作廢) | ||
|- | regDemand | 0..1 | Float | numeric(18, 8) | 未知 | ||
|- | regOffering | 0..1 | Float | numeric(18, 8) | 未知 | ||
|- | regPrice | 0..1 | Float | numeric(11, 8) | 未知 | ||
|- | regRegistered | 0..1 | Float | numeric(18, 8) | 未知 | ||
|- | srBid | 0..1 | Float | numeric(18, 8) | 即時備轉得標容量(國營) | ||
|- | srBidQse | 0..1 | Float | numeric(11, 8) | 即時備轉得標容量(民間) | ||
|- | srBidNontrade | 0..1 | Float | numeric(11, 8) | 即時備轉得標容量(作廢) | ||
|- | srDemand | 0..1 | Float | numeric(11, 8) | 未知 | ||
|- | srOffering | 0..1 | Float | numeric(11, 8) | 未知 | ||
|- | srPrice | 0..1 | Float | numeric(11, 8) | 未知 | ||
|- | srRegistered | 0..1 | Float | numeric(11, 8) | 未知 | ||
|- | supBid | 0..1 | Float | numeric(11, 8) | 補充備轉得標容量(國營) | ||
|- | supBidQse | 0..1 | Float | numeric(11, 8) | 補充備轉得標容量(民間) | ||
|- | supBidNontrade | 0..1 | Float | numeric(11, 8) | 補充備轉得標容量(作廢) | ||
|- | supDemand | 0..1 | Float | numeric(11, 8) | 未知 | ||
|- | supOffering | 0..1 | Float | numeric(11, 8) | 未知 | ||
|- | supPrice | 0..1 | Float | numeric(11, 8) | 未知 | ||
|- | supRegistered | 0..1 | Float | numeric(11, 8) | 未知 |
Source: 電力交易平台
Description: 電力交易平台相關參數
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TPCTenderInformation | Element | ||||||
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
資料時間 | |
|- | regOffering | 0..1 | Float | numeric(18, 8) | 調頻備轉投標容量(國營) | ||
|- | regOfferingQse | 0..1 | Float | numeric(18, 8) | 調頻備轉投標容量(民營) | ||
|- | srOffering | 0..1 | Float | numeric(18, 8) | 即時備轉投標容量(國營) | ||
|- | srOfferingQse | 0..1 | Float | numeric(18, 8) | 即時備轉投標容量(民營) | ||
|- | supOffering | 0..1 | Float | numeric(18, 8) | 補充備轉投標容量(國營) | ||
|- | supOfferingQse | 0..1 | Float | numeric(18, 8) | 補充備轉投標容量(民營) |
Description:台電流動電費資料
Source:『電價計算_台電_電價表_11201調漲_簡易版.pdf』整理的資料
Data Import:無
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TPCTimePrice | Element | ||||||
|- | tpcTimePriceID | 1..1 | ID! | PK | serial | 流水號 | |
|- | tpcPowerBillRef | 1..1 | Reference(TPCPowerBill)→ | integer | 台電電費類型流水號 | 對應 TPCPowerBill.tpcPowerBillID | |
|- | startTime | 0..1 | AWSTime | time
with time zone |
計費開始時間 | 台灣時間 | |
|- | endTime | 0..1 | AWSTime | time
with time zone |
計費結束時間 | 台灣時間 | |
|- | isSummer | 0..1 | Boolean | boolean | 是否為夏月 | ||
|- | weekType | 0..1 | String | char(1) | 日期類型 | A = 週一至週五
B = 週六 C = 週日與離峰日 |
|
|- | peakType | 0..1 | String | char(1) | 峰型 | A = 尖峰
B = 半尖峰 C = 離峰 |
|
|- | price | 0..1 | Float | numeric(5, 2) | 電費價格 |
Data Import:RFDME AWS RDS 的 asset 資料庫,將 TopologyFlow 資料轉置後匯入
Description: 虛擬電網之拓撲節點間”流”的資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TopologyFlow | Element | ||||||
|- | topologyFlowID | 1..1 | ID! | PK | varchar(100) | vpp flow 編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TopologyFlow” | |
|- | startVppNodeRef | 1..1 | Reference(TopologyNode!)→ | varchar(100) | 起始節點參考 | ||
|- | endVppNodeRef | 1..1 | String! | varchar(100) | 迄止節點參考 | ||
|- | priceContractRef | 0..1 | Reference(PriceContract)→ | varchar(10) | 價格契約參考 | ||
|- | conversionFactorsTransformer | 0..1 | Float | numeric(10, 2) | 轉換率 | ||
|- | nominalValue | 0..1 | String | varchar(max) | 額定量 | ||
|- | range | 0..1 | Range | jsonb | 某範圍 | 原設計欄位為 max / min (最大值 / 最小值)
0~1 \ 數值 | 陣列 \ 陣列:表示一天中每15分鐘一個數值 |
|
|- | variableCosts | 0..1 | String | varchar(max) | 可變成本 | 暫停使用 | |
|- | summedRange | 0..1 | Range | jsonb | 總流量範圍 | 總流量最大值、總流量最小值 | |
|- | fixed | 0..1 | Boolean | bool | 是否固定 | ||
|- | investment | 0..1 | AWSJSON | jsonb | 投資規劃 | ||
|- | nonconvex | 0..1 | AWSJSON | jsonb | 非連續型變數 | ||
|- | positiveGradientUpperBound | 0..1 | Float | numeric(10, 2) | 提高功率上限 | ||
|- | positiveGradientCosts | 0..1 | Float | numeric(10, 2) | 提高功率成本 | ||
|- | negativeGradientUpperBound | 0..1 | Float | numeric(10, 2) | 降低功率上限 | ||
|- | negativeGradientCosts | 0..1 | Float | numeric(10, 2) | 降低功率成本 | ||
|- | dr | 0..1 | Boolean | bool | |||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:RFDME AWS RDS 的 asset 資料庫,將 TopologyNode 資料轉置後匯入
Description: 虛擬電網之拓撲節點資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TopologyNode | Element | ||||||
|- | topologyNodeID | 1..1 | ID! | PK | varchar(100) | vpp node 編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TopologyNode” | |
|- | label | 1..1 | String! | varchar(100) | 節點標籤 | ||
|- | nodeType | 1..1 | String! | varchar(50) | 節點類別 | bus | source | storage | sink | |
|- | nominalStorageCapacity | 0..1 | Float | numeric(10,2) | 標稱儲存容量 | ||
|- | initialStorageLevel | 0..1 | Float | numeric(10,2) | 初始儲存電量 | ||
|- | balanced | 0..1 | Boolean | bool | 平衡限制 | ||
|- | lossRate | 0..1 | Float | numeric(10,6) | 自損率 | ||
|- | inflowConversionFactor | 0..1 | Float | numeric(10,2) | 輸入轉換比率 | ||
|- | outflowConversionFactor | 0..1 | Float | numeric(10,2) | 輸出轉換比率 | ||
|- | storageLevelRange | 0..1 | Range | jsonb | 儲存容量等級範圍 | ||
|- | investRelationInputCapacity | 0..1 | Float | numeric(10,2) | 輸入投資容量 | ||
|- | investRelationOutputCapacity | 0..1 | Float | numeric(10,2) | 輸出投資容量 | ||
|- | investRelationInputOutput | 0..1 | Float | numeric(10,2) | 投資輸出入比例 | ||
|- | fixedLossesRelative | 0..1 | Float | numeric(10,2) | 相對固定損秏 | ||
|- | fixedLossesAbsolute | 0..1 | Float | numeric(10,2) | 絕對固定損秏 | ||
|- | investment | 0..1 | AWSJSON | jsonb | 投資規劃 | ||
|- | singleOutput | 0..1 | Boolean | bool | 單一輸出 | ||
|- | resourceRef | 0..* | Reference([Resource])→ | varchar(100)[] | 資源對應參考 | ||
|- | vppFlowRef | 0..* | Reference([TopologyFlow])→ | varchar(100)[] | 虛擬電網"流"參考 | ||
|- | taker | 0..1 | AWSJSON | jsonb | 持有方 | {
"producer": 1, "consumer": null } |
|
|- | sourceType | 0..1 | String | varchar(50) | 能源類別 | green | gray | |
|- | sinkType | 0..1 | String | varchar(50) | 負載類別 | ||
|- | endStorageLevel | 0..1 | Float | numeric(10,2) | 結束儲存電量 | ||
|- | transformerType | 0..1 | String | varchar(50) | 轉換類別 | ||
|- | position | 0..1 | String | varchar(50) | 位置 | front | behind
sourceType = green => front : 綠電轉供;behind : 自發自用 nodeType = storage => front : 錶前儲能;behind : 錶後儲能 |
|
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:
Description: 拓撲模板
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TopologyTemplate | Element | ||||||
|- | templateID | 1..1 | ID! | PK | varchar(100) | 模板編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TopologyTemplate” | |
|- | templateName | 0..1 | String | varchar(200) | 模板名稱 | ||
|- | topologyInfo | 0..1 | AWSJSON! | jsonb | 拓撲內谷 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:RFDME AWS RDS 的 asset 資料庫,將 TopologyVPPConfig 資料轉置後匯入
Description: 虛擬電網設定資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TopologyVPPConfig | Element | ||||||
|- | topologyVPPConfigID | 1..1 | ID! | PK | varchar(100) | vpp config 編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TopologyVPPConfig” | |
|- | resolution | 0..1 | Int | smallint | 時間間隔 | ||
|- | timeUnit | 0..1 | String | varchar(5) | 時間單位 | ||
|- | configPeriod | 0..1 | Period | jsonb | 設定有效區間 | ||
|- | horizon | 0..1 | SimpleQuantity | jsonb | 時間總長 | 單位:小時 | |
|- | objectiveType | 0..1 | enum | varchar(100) | 目標類別 | cost | price | re | |
|- | timezone | 0..1 | String | varchar(30) | 時區 | ||
|- | comparisonHorizon | 0..1 | SimpleQuantity | jsonb | 比較時長 | 單位:小時 | |
|- | reLowerBound | 0..1 | Float | numeric(10,2) | 最低RE限制% | 0~1 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:RFDME AWS RDS 的 asset 資料庫,將 TopologyVPPGrid 資料轉置後匯入
Description: 虛擬電網資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TopologyVPPGrid | Element | ||||||
|- | topologyVPPGridID | 1..1 | ID! | PK | varchar(100) | vpp 編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TopologyVPPGrid” | |
|- | name | 0..1 | String | varchar(200) | vpp名稱 | ||
|- | displayName | 0..1 | String | varchar(200) | 顯示名稱 | ||
|- | description | 0..1 | String | varchar(max) | vpp說明 | ||
|- | vppType | 1..1 | CodeDisplay! | varchar(100) | vpp類別 | 只記錄 CodeDisplay 中的 code 值
pv | pvess | pvessload | … |
|
|- | vppConfigRef | 1..1 | Reference(TopologyVPPConfig!)→ | varchar(100) | vpp設定參考 | ||
|- | vppNodeRef | 0..* | Reference([TopologyNode])→ | varchar(100)[] | vpp node 參考 | ||
|- | vppFlowRef | 0..* | Reference([TopologyFlow])→ | varchar(100)[] | vpp flow 參考 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source:RE平台售電試算結果主檔
Description:
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TrialBalanceMain | Element | ||||||
|- | trialBalanceID | 1..1 | ID! | PK | varchar(11) | 試算編號 | ID
編碼規則:日期(8碼) + 流水號(3碼) |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TrialBalanceMain” | |
|- | loadRef | 1..1 | Reference(Load!) | varchar(10) | 購電公司 | ||
|- | powerNumbers | 1..* | [String!] | varchar(15)[] | 電號 | ||
|- | sumLoadPower | 1..1 | Int! | int | 總用電量 | ||
|- | expectReRate | 0..1 | Float! | numeric(6,5) | 設定 RE 比例 | ||
|- | expectRePower | 0..1 | Int! | int | 設定 RE 用電量 | ||
|- | transPrice | 1..1 | Float! | numeric(5,4) | 綠電轉供價格 | ||
|- | minThreshold | 1..1 | Float! | numeric(6,5) | 最小比例 | ||
|- | limitGenerations | 1..1 | Int! | smallint | 限制間數 | ||
|- | startDate | 1..1 | String! | varchar(5) | 評估數據起日 | 格式:MM-DD | |
|- | endDate | 1..1 | String! | varchar(5) | 評估數據迄日 | 格式:MM-DD | |
|- | state | 1..1 | String! | varchar(1) | 資料狀態 | E = 轉供評估中 \ F = 無法評估 \ Y = 正常 \ D = 刪除 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source:RE平台售電試算結果明細檔
Description:
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
TrialBalanceSub | Element | ||||||
|- | trialBalanceID | 1..1 | ID! | PK | varchar(11) | 試算編號 | ID
編碼規則:日期(8碼) + 流水號(3碼) |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “TrialBalanceSub” | |
|- | seq | 1..1 | String! | PK | varchar(3) | 序號 | |
|- | matchObject | 1..* | AWSJSON! | jsonb | 匹配案場 | ||
|- companyRef | 1..1 | Reference(Company) | json - string | 公司ID | |||
|- objectRef | 1..1 | Reference(Object) | json - string | 案場ID | |||
|- capacity | 1..1 | Float! | json - number | 案場容量 | |||
|- price | 1..1 | Float! | json - number | 躉售價格 | |||
|- yearPowerSum | 1..1 | Float! | json - number | 年度發電量 | |||
|- matchRate | 1..1 | Float! | json - number | 尚可匹配比例 | 目前預設為 1(100%) | ||
|- settingMatchRate | 0..1 | Float | json - number | 手動設定比例 | |||
|- evaluateMatchRate | 1..1 | Float! | json - number | 評估匹配比例 | |||
|- sellAveragePrice | 1..1 | Float! | json - number | 售電平均單價 | |||
|- sellPower | 1..1 | Float! | json - number | 綠電售電量 | |||
|- sellPowerRate | 1..1 | Float! | json - number | 綠電售電率 | |||
|- yearLimitation | 1..1 | Float! | json - number | 最大售電限制 (年) | |||
|- monthLimitation | 1..1 | Float! | json - number | 最大售電限制 (月) | |||
|-acquisitionPrice | 0..1 | Float! | json - number | 電力取得價格 | |||
|-revenueSharingRatio | 0..1 | Float! | json - number | 抽成比例 | |||
|-greenSellPrice | 1..1 | Float! | json - number | 綠電售電價格 | 公式:
保底價格:以「電力取得價格」為主,無則「躉售價格」 保底價格 + (綠電轉供價格 - 保底價格) * 抽成比例 |
||
|-revenue | 1..1 | Float! | json - number | 營收 | |||
|- | matchPowerNumber | 1..* | AWSJSON! | jsonb | 匹配電號 | ||
|- powerNumberRef | 1..1 | Reference(LoadSubInfo) | json - string | 電號ID | |||
|- useAveragePrice | 1..1 | Float! | json - number | 用電平均單價 | |||
|- addPowerCost | 1..1 | int | json - number | 增加用電成本 | |||
|- timePriceID | 1..1 | String | json - string | 時間電價類型 | |||
|- | |||||||
|- | 公式:加總(案場容量 * 評估匹配比例) | ||||||
|- | |||||||
|- | |||||||
|- | 公式:總銷售發電量 - 綠電銷售電量 | ||||||
|- | 公式:綠電銷售電量 / 總銷售發電量 | ||||||
|- | generatorDatas | 0..* | AWSJSON! | jsonb | 發電端資料 | ||
|-companyRef | 1..1 | Reference(Company) | json - string | 公司ID | |||
|-greenSellPrice | 1..1 | Float! | json - number | 平均綠電售電價格 | |||
|-sellAveragePrice | 1..1 | Float! | json - number | 售電平均單價 | |||
|-matchCapacitySum | 1..1 | Float! | json - number | 匹配售電總容量 | |||
|-matchSellPowerSum | 1..1 | Float! | json - number | 總銷售發電量 | |||
|-sellPower | 1..1 | Float! | json - number | 綠電銷售電量 | |||
|-surplusPower | 1..1 | Float! | json - number | 綠電躉售電量 | |||
|-sellPowerRate | 1..1 | Float! | json - number | 綠電售電率 | |||
|-revenue | 1..1 | Float! | json - number | 營收 | |||
|- | costSales | 0..1 | Float | numeric(19,4) | 收購成本(售電端) | ||
|- | revenueSales | 0..1 | Float | numeric(19,4) | 售電收入(售電端) | ||
|- | evaluateReRate | 0..1 | Float | numeric(6,5) | 評估 RE 比例 | ||
|- | loadAveragePrice | 0..1 | Float | numeric(6,4) | 用電平均單價 | ||
|- | loadPowerSum | 0..1 | Float | numeric(16,8) | 總用電量 | ||
|- | loadGrayPower | 0..1 | Float | numeric(16,8) | 灰電用電量 | 公式:總用電量 - 綠電銷售電量 | |
|- | matchResult | 0..1 | String | varchar | 匹配結果 | ||
|- | state | 1..1 | String! | varchar(1) | 資料狀態 | E = 轉供評估中 \ F = 無法評估 \ Y = 正常 \ D = 刪除 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:
Description: 使用者檔,僅EMS暫時使用,待後續建立完整的權限管控
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
Users | Element | ||||||
|- | userID | 1..1 | ID! | PK | varchar(100) | AWS Cognito 使用者識別碼 | UUID |
|- | companyRef | 0..1 | Reference([Company])→ | varchar(100)[] | Company 參考 | ||
|- | omProps | 0..1 | AWSJSON | jsonb | 使用 O&M2.0 系統
的個人設定檔 |
忘記做什麼用的,想不起來的話就刪掉 |
Source: VppPowerRecord 與 DynamoDB 的 rfdme-vpp-paoc-workflow-log-tb
Description: 記錄虛擬電網的每日收益總和
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
VPPDailyIncomeRecord | Element | ||||||
|- | topologyVPPGridID | 1..1 | String! | PK | varchar(100) | vpp 編號 | |
|- | date | 1..1 | AWSDate! | PK | date | 日期 | |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “VPPDailyIncomeRecord” | |
|- | expectIncome | 0..1 | Float | numeric(12, 5) | 調度預期收益 | 單位:元 | |
|- | monitorIncome | 0..1 | Float | numeric(12, 5) | 監控推估收益 | 單位:元 | |
|- | realIncome | 0..1 | Float | numeric(12, 5) | 實際收益 | 單位:元 | |
|- | expectCost | 0..1 | Float | numeric(12, 5) | 預期成本 | 單位:元 | |
|- | monitorCost | 0..1 | Float | numeric(12, 5) | 監控推估成本 | 單位:元 | |
|- | expectRe | 0..1 | Float | numeric(6, 5) | 預期Re | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | 因為是轉入的資料,可以不寫 crUser / txUser |
Source:
太陽能實際發電:**PostgreSQL.CorrectionPower.powerPerUT (UTC時區 +0)**
儲能實際電量:Timestream.rfdme-ess-data-test-tb.activePower (UTC時區 +0)
負戴實際電量:Timestream.rfdme-load-data-test-tb.loadPerUT (UTC時區 +0)
Description: 拆解各裝置於該時間的電量來源,以計算RE比例、發電售電率等資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
VPPPowerRecord | Element | ||||||
|- | topologyVPPGridID | 1..1 | String! | PK | varchar(100) | vpp 編號 | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | 每5分鐘一筆 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “VPPPowerRecord” | |
|- | loadPerUT | 0..1 | Float | numeric(15,10) | 負載+可控負載(充電椿) | 單位:kWh \ 每15分鐘一筆 | |
|- | pvPerUT | 0..1 | Float | numeric(15,10) | 太陽能發電(轉供) | 單位:kWh \ 台灣時間05:00 - 20:00以外不會有發電資料 | |
|- | windPerUT | 風力發電(轉供) | |||||
|- | selfPerUT | 自發自用發電 | |||||
|- | essPerUT | 0..1 | Float | numeric(15,10) | 儲能 | 單位:kWh | |
|- | pvToEss | 0..1 | Float | numeric(15,10) | 太陽能供儲能 | 單位:kWh | |
|- | pvToLoad | 0..1 | Float | numeric(15,10) | 太陽能供負載 | 單位:kWh | |
|- | pvToGrid | 0..1 | Float | numeric(15,10) | 太陽能供台電 | 單位:kWh | |
|- | essToLoad | 0..1 | Float | numeric(15,10) | 儲能供負載 | 單位:kWh | |
|- | essToGrid | 0..1 | Float | numeric(15,10) | 儲能供台電 | 單位:kWh | |
|- | wheelingToEss | 0..1 | Float | numeric(15,10) | 綠電轉供供儲能 | 單位:kWh | |
|- | wheelingToLoad | 0..1 | Float | numeric(15,10) | 綠電轉供供負載 | 單位:kWh | |
|- | wheelingToGrid | 0..1 | Float | numeric(15,10) | 綠電轉供供台電 | 單位:kWh | |
|- | selfToEss | 0..1 | Float | numeric(15,10) | 自發供儲能 | ||
|- | selfToLoad | 0..1 | Float | numeric(15,10) | 自發供負載 | ||
|- | selfToGrid | 0..1 | Float | numeric(15,10) | 自發供台電 | ||
|- | income | 0..1 | Float | numeric(12,5) | 推估收益 | 單位:元 | |
|- | status | 1..1 | String | char(1) | 狀態 | ||
|- | gridToEss | 0..1 | Float | numeric(15,10) | 電網供儲能 | ||
|- | gridToLoad | 0..1 | Float | numeric(15,10) | 電網供負載 | ||
|- | cost | 0..1 | Float | numeric(12,5) | 成本 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | 因為是轉入的資料,可以不寫 crUser / txUser |
Source:
Description: 拆解各裝置於該時間的電量來源、時間電價,以計算RE比例、發電售電等指標資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
VppTargetRecord | Element | ||||||
|- | topologyVPPGridID | 1..1 | String! | PK | varchar(100) | vpp 編號 | |
|- | time | 1..1 | AWSDateTime! | PK | timestamp
with time zone |
時間 | 每5分鐘一筆 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “VPPPowerRecord” | |
|- | re | 0..1 | Float | numeric(8,5) | re比 | ||
|- | gray | 0..1 | Float | numeric(15,5) | 灰電使用電量 | 單位:kWh | |
|- | green | 0..1 | Float | numeric(15,5) | 綠電使用電量 | 單位:kWh | |
|- | essAchieveRate | 0..1 | Float | numeric(8,5) | 儲能達成率 | ||
|- | monitorIncome | 0..1 | Float | numeric(15,5) | 監控推估收益 | 單位:元 | |
|- | monitorCost | 0..1 | Float | numeric(15,5) | 監控推估成本 | 單位:元 | |
|- | pvFitIncome | 0..1 | Float | numeric(15,5) | 太陽能躉售收益 | 單位:元 | |
|- | pvFitPower | 0..1 | Float | numeric(15,5) | 太陽能躉售電量 | 單位:kWh | |
|- | essFitIncome | 0..1 | Float | numeric(15,5) | 儲能躉售收益 | 單位:元 | |
|- | essFitPower | 1..1 | Float | numeric(15,5) | 儲能躉售電量 | 單位:kWh | |
|- | wheelingPower | 0..1 | Float | numeric(15,5) | 綠電轉供用電量
|
||
|- | selfPower | 0..1 | Float | numeric(15,5) | 自發自用用電量
|
||
|- | uncontrolledBill | 0..1 | Float | numeric(15,5) | 未調度用電費推估
|
預估未經調度的用電量(負載用電+充電椿用電) * 時間電價 + 契約容量罰款
|
|
|- | monitorBill | 0..1 | Float | numeric(15,5) | 實際電費推估
|
灰電輸入的電量 * 時間電價 + (綠電轉供*綠電轉供價格) + 契約容量罰款
|
|
|- | saveBill | 0..1 | Float | numeric(15,5) | 電費節約
|
未調度用電費推估-實際電費推估
|
|
|- | usedPowerBill | 0..1 | Float | numeric(15,5) | 用電電費推估
|
總電費:(灰電輸入*灰電時間電價) + (綠電轉供*綠電轉供價格)
|
|
|- | avgPowerPrice | 0..1 | Float | numeric(15,5) | 平均電價
|
總電費(用電電費推估) / 用電量(灰電輸入 + 綠電轉供)
|
|
|- | contractFine | 0..1 | Float | numeric(15,5) | 契約容量罰金推估
|
推估罰金
|
|
|- | saveFine | 0..1 | Float | numeric(15,5) | 契約容量超約避免
|
推估未經調度的罰金 - 推估罰金
|
|
|- | greenEffective | 0..1 | Float | numeric(15,5) | 綠能效益
|
自發自用的綠能帶來的效益
|
|
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 | 因為是轉入的資料,可以不寫 crUser / txUser |
Data Import:RFDME AWS RDS 的 asset 資料庫,將 WeatherStationData 資料轉置後匯入
Source: 氣象局縣市測站列表 ( https://www.cwb.gov.tw/V8/C/W/OBS_County.html?ID=10017 )
Description: 觀測測站數據
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
WeatherStationData | Element | ||||||
|- | weatherStationID | 1..1 | ID! | PK | varchar(20) | 觀測測站編號 | ID
編碼規則:沿用氣象局的測站代號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “WeatherStationData” | |
|- | date | 1..1 | AWSDate! | PK | date | 記錄日期 | 台灣日期 |
|- | temperature | 0..1 | Float | numeric(5,2) | 溫度 | ||
|- | weather | 0..1 | String | varchar(20) | 天氣 | ||
|- | humidity | 0..1 | Float | numeric(10,5) | 濕度 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:RFDME AWS RDS 的 asset 資料庫,將 WeatherStationInfo 資料轉置後匯入
Source: 氣象局現存測站列表 ( https://e-service.cwb.gov.tw/wdps/obs/state.htm ) ← 請 Jerry 更新說明
Description: 觀測測站基本資料
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
WeatherStationInfo | Element | ||||||
|- | weatherStationID | 1..1 | ID! | PK | varchar(10) | 觀測測站編號 | ID
編碼規則:沿用氣象局的測站代號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “WeatherStationInfo” | |
|- | name | 0..1 | String | varchar(300) | 觀測測站名稱 | ||
|- | location | 0..1 | GeoLocation | jsonb | 觀測測站地理位置 | ||
|- | address | 0..1 | Address | jsonb | 觀測測站地址 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source:RE平台上傳
Description:記錄 RE 平台發電端發電資料之記錄
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
WheelingGenPowerRawRecord | Element | ||||||
|- | wheelingGenPowerRawRecordID | 1..1 | ID! | PK | varchar(10) | 用電資料編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “WheelingGenPowerRawRecord” | |
|- | objectRef | 1..1 | Reference(Object!) | varchar(10) | 案場參考 | ||
|- | time | 1..1 | AWSDateTime | timestamp
with time zone |
時間 | 每 15 分鐘一筆 | |
|- | powerPerUT | 1..1 | Float | numeric(16,8) | 該 15 分鐘累積發電量 | ||
|- | powerSum | 1..1 | Float | numeric(16,8) | 當日累積發電量 |
Source:CorrectionPower 轉換
Description:記錄 RE 平台針對發電端產電資料之記錄
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
WheelingGenPowerRecord | Element | ||||||
|- | wheelingGenPowerRecordID | 1..1 | ID! | PK | varchar(10) | 發電資料編號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “WheelingGenPowerRecord” | |
|- | priceType | 1..1 | String! | varchar(2) | 計價類型代碼 | 對應到 TPCPowerBill.kindValue | |
|- | objectRef | 1..1 | Reference(Object!) | varchar(10) | 案場參考 | ||
|- | yearMonth | 1..1 | String! | varchar(8) | 發電歸納年月 | 台灣日期 | |
|- | peakPower | 1..1 | Int! | numeric(10, 2) | 尖峰發電度數 | 無條件捨去至整數 | |
|- | halfPeakPower | 1..1 | Int! | numeric(10, 2) | 半尖峰發電度數 | 無條件捨去至整數 | |
|- | satHalfPeakPower | 1..1 | Int! | numeric(10, 2)) | 週六半尖峰發電度數 | 無條件捨去至整數 | |
|- | offPeakPower | 1..1 | Int! | numeric(10, 2) | 離峰發電度數 | 無條件捨去至整數 | |
|- | recordTrail | 1..1 | RecordLog! | json | 資料日誌 |
Source:LoadBill 或 LoadPower15 轉換
Description:記錄 RE 平台針對負載端用電資料之記錄
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
WheelingUsePowerRecord | Element | ||||||
|- | wheelingUsePowerRecordID | 1..1 | ID! | PK | varchar(10) | 用電資料流水號 | ID
編碼規則:流水號 |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “WheelingUsePowerRecord” | |
|- | objectRef | 1..1 | Reference(Object!) | varchar(10) | 案場參考 | ||
|- | powerNumber | 1..1 | String! | varchar(15) | 負載場電號 | ||
|- | priceType | 1..1 | String! | varchar(2) | 計價類型代碼 | 對應到 SystmeConfig.systmeConfigID = '3' | |
|- | yearMonth | 1..1 | String! | varchar(8) | 電費單歸類年月 | 台灣日期 | |
|- | peakPower | 1..1 | Int! | numeric(10, 2) | 尖峰用電度數 | ||
|- | halfPeakPower | 1..1 | Int! | numeric(10, 2) | 半尖峰用電度數 | ||
|- | satHalfPeakPower | 1..1 | Int! | numeric(10, 2) | 週六半尖峰用電度數 | ||
|- | offPeakPower | 1..1 | Int! | numeric(10, 2) | 離峰用電度數 | ||
|- | recordTrail | 1..1 | RecordLog! | json | 資料日誌 |
Data Import:轉入 Object 資料時,將屬於風力型案場的部分轉入
Description:風力發電場資訊
Name | Name | Card. | AppSync Type | PK | SQL-Type | Name | Description |
WindFarm | Element | ||||||
|- | windFarmID | 1..1 | ID! | PK | varchar(10) | 風力案場編號 | 同 objectRef |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “WindFarm” | |
|- | name | 0..1 | String | varchar(300) | 負載場名稱 | ||
|- | objectRef | 1..1 | Reference(Object)<→ | varchar(10) | 案場參考 | ||
|- | meterBeginDate | 0..1 | AWSDate | date | 掛表日 | ||
|- | maxMatch | 1..1 | Float | numeric(6,5) | 最大匹配比例 | ||
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
-
Design Data Structure between Data Model, RDB, and GraphQL
-
4 Level Data Structures
-
Level1 - Foundation Type
- Primitive Type
→ AppSync: Primitive Type
→ RDB: Primitive Type except Json - Custom type Data Model base (The type of field in Custom type are all in Level1 Foundation Type)
→ AppSync: Custom Type
→ RDB: Json e.g., Money, Period, HumanName, Timing, Ratio, Address......- Rule1: Appsync type names should be UpperCamelCase , with the first letter of every word capitalized
- Rule2: The field name in type of Appsync is mapping to the DB table field, which is lowerCamelCase
- Primitive Type
-
Level2 - Concepts in Energy System
→ AppSync: Custom Type
→ RDB: Table/ Timestream: Table- Project Related
- Object Related
- O&M Related
- VPP Related
- Financial Related
- Sensor Data Related
Rule1: If a field name is referring to one of type in Appsync, then the filed name has to be ending with “Ref”
Rule2: Appsync enum values have to be lowercase except the enum values are designed as Level2 Type
-
-
Level3 – Work Process
→ AppSync: type Query {process functionality} * Project Process * O&M Process * VPP Process * Financial Process * Service Process- Level4 – Application → Service Oriented Architecture
-
Nullability rules with lists
GraphQL Type | Description |
type | A nullable type values |
[type] | A list of nullable type values |
type! | A non-nullable of nullable type values |
[type!]! | A non-nullable list of non-nullable type values |
Source:AWS AppSync Supportted Types
Description: 以 AppSync Type 為底,向上擴充。 \
Type | Value Domain |
ID | A unique identifier for an object. This scalar is serialized like a string but isn't meant to be human-readable. |
Boolean | true | false |
String | string type |
Int | -2^(31) and 2^(31) -1 |
Float | decimal representation |
base64Binary | base64 encoded |
AWSDate | An extended ISO 8601 date string in the format YYYY-MM-DD. |
AWSTime | An extended ISO 8601 time string in the format hh:mm:ss.sss. |
AWSDateTime | An extended ISO 8601 date and time string in the format YYYY-MM-DDThh:mm:ss.sssZ. |
AWSTimestamp | An integer value representing the number of seconds before or after 1970-01-01-T00:00Z. |
AWSJSON | A JSON string. Any valid JSON construct is automatically parsed and loaded in the resolver mapping templates as maps, lists, or scalar values rather than as the literal input strings. Unquoted strings or otherwise invalid JSON result in a GraphQL validation error. |
AWSURL | A URL as defined by RFC 1738. For example, https://www.amazon.com/dp/B000NZW3KC/ or mailto:example@example.com. URLs must contain a schema (http, mailto) and can't contain two forward slashes (//) in the path part. |
enum | (Actually not a type) Indicates that the value is taken from a set of controlled strings |
Description: 有需要顯示具可閱讀性之名稱的代碼轉換結構,e.g. 下拉式選單
Name | Name | AppSync Type | JSON Type | Description |
CodeDisplay | json | |||
|- | code | enum | json - string | 下拉式選單的代碼
以 Address 的 use 欄位為例,此處會儲存 home | work … |
|- | display | Reference(UNION( ChineseDisplay | EnglishDisplay | JapanDisplay …)) | json - string | 下拉式選單的名稱
依據呼叫 API 時傳入之語系參數,來決定要讀取哪一張語系表,再透過 code 欄位作為對應,找出該語系的名稱,此欄位不額外存於資料庫。資料的參考直接由code當作key來對table查詢。 |
Description: 地址資料結構 \
Name | Name | AppSync Type | JSON Type | Description |
Address | Element | json | ||
|- | use | CodeDisplay | json - string | 只記錄 CodeDisplay 中的 code 值
home | work | temp | old | billing | project | object - purpose of this address |
|- | text | String | json - string | 完整地址 |
|- | line | String | json - string | Street name, number, direction & P.O. Box etc.
不含縣市/鄉鎮區的地址部分 |
|- | city | String | json - string | Name of city, town etc.
直轄市/縣 |
|- | district | String | json - string | District name (aka county)
縣轄市/鄉/鎮/區 |
|- | state | String | json - string | Sub-unit of country (abbreviations ok) |
|- | postalCode | String | json - string | Postal code for area
郵遞區號 |
|- | country | String | json - string | Country (e.g. can be ISO 3166 2 or 3 letter code)
國家 |
|- | period | Period | json - object | Time period when address was/is in use
有效區間 |
Description: 聯絡資訊資料結構
Name | Name | AppSync Type | Description |
ContactPoint | Element | ||
|- | system | CodeDisplay | phone | fax | email | pager | url | sms | other |
|- | value | String | The actual contact point details |
|- | use | CodeDisplay | home | work | temp | old | mobile - purpose of this contact point |
|- | rank | Int | Specify preferred order of use (1 = highest) |
|- | period | Period | Time period when the contact point was/is in use |
Description:經緯度資料結構
Name | Name | AppSync Type | Description |
GeoLocation | Element | ||
|- | latitude | Float | Latitude is a measurement on a globe or map of location north or south of the Equator. |
|- | longitude | Float | Longitude is a measurement of location east or west of the prime meridian at Greenwich, the specially designated imaginary north-south line that passes through both geographic poles and Greenwich, London. |
Description:人名資料結構
Name | Name | AppSync Type | Description |
HumanName | Element | ||
|- | text | String | Text representation of the full name |
|- | family | String | Family name (often called 'Surname') |
|- | given | [String] | Given names (not always 'first'). Includes middle names |
|- | prefix | [String] | Parts that come before the name |
|- | suffix | [String] | Parts that come after the name. e.g. Mr. |
|- | period | Period | Time period when name was/is in use. e.g. PhD, Senior |
Description:貨幣與貨幣別資料結構
Name | Name | AppSync Type | Description |
Money | Element | ||
|- | value | Float | Amount of money |
|- | currency | CodeDisplay | ISO 4217 Currency Code |
Description:日期時間區間結構
Name | Name | AppSync Type | Description |
Period | Element | + Rule: If present, start SHALL have a lower value than end | |
|- | start | AWSDateTime | Starting time with inclusive boundary |
|- | end | AWSDateTime | End time with inclusive boundary, if not ongoing |
Description:測量值的單位與數值,或用以描述某值與此欄位標示之值的關係
Name | Name | AppSync Type | Description |
Quantity | Element | A measured or measurable amount + Rule: If a code for the unit is present, the system SHALL also be present | |
|- | value | Float | Numerical value (with implicit precision) |
|- | comparator | enum | < | <= | >= | > - how to understand the value |
|- | unit | String | Unit representation |
- The value contains the numerical value of the quantity, including an implicit precision. If no comparator is specified, the value is a point value (i.e. '='). The comparator element can never be ignored.
- SimpleQuantity: The comparator is not used on a SimpleQuantity
Description:範圍的資料結構
Name | Name | AppSync Type | Description |
Range | Element | + Rule: If present, low SHALL have a lower value than high | |
|- | low | SimpleQuantity | Low limit |
|- | high | SimpleQuantity | High limit |
Description:物體的長寬高資料結構 \
Name | Name | AppSync Type | Description |
Dimenstions | Element | ||
|- | length | SimpleQuantity | length of object |
|- | width | SimpleQuantity | width of object |
|- | height | SimpleQuantity | height of object |
Description:A ratio of two Quantity values - a numerator and a denominator
Examples where a Ratio is used are: titers (e.g. 1:128); concentration ratios where the denominator is significant (e.g. 5mg/10mL); observed frequencies (e.g. 2 repetitions/8 hr)
Name | Name | AppSync Type | Description |
Ratio | Element | + Rule: If present, start SHALL have a lower value than end | |
|- | numerator | Quantity | Numerator value |
|- | denominator | Quantity | Denominator value |
Description:描述資料的頻率,次數,區間等時間定義資料結構
Name | Name | AppSync Type | Description |
Timing | Element | ||
|- | event | AWSDateTime | When the event occurs |
|- | repeat | When the event is to occur \ + Rule: if there's a duration, there needs to be duration units \ + Rule: if there's a period, there needs to be period units \ + Rule: duration SHALL be a non-negative value \ + Rule: period SHALL be a non-negative value \ + Rule: If there's a periodMax, there must be a period \ + Rule: If there's a durationMax, there must be a duration \ + Rule: If there's a countMax, there must be a count \ + Rule: If there's an offset, there must be a when (and not C, CM, CD, CV) \ + Rule: If there's a timeOfDay, there cannot be a when, or vice versa | |
|-count | Int | Number of times to repeat | |
|-countMax | Int | Maximum number of times to repeat | |
|-duration | Float | How long when it happens | |
|-durationMax | Float | How long when it happens (Max) | |
|-durationUnit | CodeDisplay | s | min | h | d |wk | mo | y | |
|-frequency | Int | Event occurs frequency times per period | |
|-frequencyMax | Int | Event occurs up to frequencyMax times per period | |
|-period | Float | a length or portion of time | |
|-periodMax | Float | Upper limit of period | |
|-periodUnit | CodeDisplay | s | min | h | d |wk | mo | y | |
|-dayOfWeek | CodeDisplay | mon | tue | wed | thu | fri | sat | sun | |
|-timeOfDay | AWSDateTime | Time of day for action |
- Example
code | duration | durationUnit | frequency | frequencyMax | period | periodUnit | periodMax | Day of Week | Time of Day |
Every 8 hour | 1 | 8 | h | ||||||
Every 7 days | 1 | 7 | d | ||||||
Every 4-6 hours | 1 | 4 | h | 6 | |||||
3 times a day | 3 | 1 | d | ||||||
3-4 times a day | 3 | 1 | d | ||||||
Every 21 days for 1 hour | 1 | h | 1 | 21 | d | ||||
Three times a week for 0.5 hour | 0.5 | h | 3 | 1 | wk | ||||
Mon, Wed, Fri | mon | wed | fri | ||||||||
Every day at 10am | 1 | 1 | d | 10:00 |
Description:資料日誌,產生資料與修改資料的人員與時間之資料結構
Name | Name | AppSync Type | Description |
RecordLog | Element | ||
|- | crUser | Cognito | Cognito User Reference who create record |
|- | crDate | AWSDateTime | DateTime that user create record |
|- | txUser | Cognito | Cognito User Reference who modify record |
|- | txDate | AWSDateTime | DateTime that user modify record |
Description:用於當某欄位參照多個Tables,且參照只限於某tables時,使用node來描述資料結構 \
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
NodeUnion | Element | json | 多元資料參考節點 | |||
|- | system | 1..1 | enum | json - string | 節點列舉 | exactly identical to table name |
|- | systemRef | 1..1 | union type | json - string | 節點參考 | foreign key of reference table |
Description:用於當某欄位儲存多個參數時 \
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
NodeProps | Element | json | 多元資料參考節點 | |||
|- | system | 1..1 | enum | json - string | 節點列舉 | node enum |
|- | systemProps | 1..1 | AWSJSON! | json - object | 節點參數 | node parameters in json |
Description:記錄儲存在 S3 的檔案資訊
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
FileProps | Element | json | 多元資料參考節點 | |||
|- | fileID | 1..1 | String! | json - string | 檔案識別碼 | |
|- | fileName | 1..1 | String! | json - string | 檔案名稱 |
Description:物品的履歷資料結構
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
Portfolio | Element | json | ||||
|- | constructerRef | 0..1 | Reference(Company)→ | varchar | 建造參考 | used in objects that constructed on specific location |
|- | constructionDate | 0..1 | AWSDate | date | 建造日期 | construction date |
|- | manufacturerRef | 0..1 | Reference(Company)→ | varchar | 製造參考 | used in objects that are made in factories. |
|- | manufactureDate | 0..1 | AWSDate | date | 製造日期 | manufacture date |
|- | vendorRef | 0..1 | Reference(Company)→ | varchar | 供應商 | vendor company reference |
|- | installationDate | 0..1 | AWSDate | date | 安裝日期 | date of installation |
|- | operationRef | 0..1 | Reference(Company)→ | varchar | 運營商 | operation company reference |
|- | operationByDate | 0..1 | AWSDate | date | 運營起始日期 | operation start date |
|- | maintenanceRef | 0..1 | Reference(Company)→ | varchar | 維運商 | maintenance company reference |
|- | expectedServiceLife | 0..1 | Int | integer | 預期使用年限 | expected numbers of year that object work properly |
|- | expirationDate | 0..1 | AWSDate | date | 過期失效日期 | expiratioin date |
|- | rfdmeAssetRef | 0..1 | ID | 微電資產參考 | reference of Rfdme asset system |
Description:裝置型號等資訊 \
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
Model | Element | json | ||||
|- | modelNumber | 1..1 | String! | varchar | 型號 | unique number given to each product made by computer hardware manufacturers |
|- | brand | 0..1 | Reference(Company) | varchar | 廠牌 | brand |
|- | itemWeight | 0..1 | SimpleQuantity | json | 物品重量 | item weight |
|- | itemDimenstions | 0..1 | Dimensions | json | 物品大小 | item’s depth, width, and height |
Description:邊緣端設備狀態
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
EdgeState | Element | json | ||||
|- | edgeRef | 1..1 | Reference | varchar | 設備參考 | edge devices reference |
|- | state | 1..1 | Boolean | boolean | 設備狀態 | true : on/work/live false:off/dead |
Description:所有權相關資訊
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
edgeState | Element | json | ||||
|- | ownerPerson | 0..1 | HumanName | json | 所有權擁有者 | ownership person |
|- | ownerCompany | 0..1 | Boolean | boolean | 所有權擁有公司 | ownership company |
|- | ownershipPeriod | 0..1 | Period | json | 所有權擁有期間 | owenrship period |
|- | ownershipByYear | 0..1 | Int | integer | 所有權第幾年開始持有 | amount of years that holding object since it starting operation |
|- | idOwnership | 0..1 | ID! | varchar | 所有權原擁有編號 | ID of previous ownership Database |
Description:人員
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
Person | Element | |||||
|- | personID | 1..1 | ID! | varchar | 編號 | ID |
|- | type | 1..1 | String! | varchar | 資料類別 | constant string value → “Person” |
|- | name | 1..1 | HumanName! | json | 名稱 | person name |
|- | address | 0..1 | Address | json | 地址 | person address |
|- | contactInfo | 0..* | [ContactPoint] | json | 聯絡資訊 | person contact |
Description:邊緣中心節點狀態 \
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
State | Element | |||||
|- | edgeCenterNodeID | 1..1 | ID! | varchar | 邊緣中心節點編號 | |
|- | type | 1..1 | String! | varchar | 資料類別 | constant string value → “State” |
|- | coreDeviceState | 0..* | [Backbone(edgeState)] | json | coreDevice狀態 | |
|-type | 1..1 | enum | varchar | coreDevice | rfdmeraspberry | advantechlogger | some energy manage system | … | |
|-edgeRef | 1..1 | Reference(UNION!) | varchar | coreDevice參考 | ||
|-state | 1..1 | Boolean | boolean | coreDevice狀態 | ||
|- | clientDeviceState | 0..* | [Backbone(edgeState)] | json | clientDevice狀態 | |
|-edgeRef | 1..1 | Reference( ClientDevice!) | varchar | clientDevice參考 | ||
|-state | 1..1 | Boolean | boolean | clientDevice狀態 | ||
|- | locationObjectID | 0..1 | ID! | varchar | 位置案場編號 | |
|- | recordTrail | 1..1 | RecordLog! | json | 資料日誌 |
Description:邊緣裝置錯誤資料 \
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
Error | Element | |||||
|- | errorID | 1..1 | ID! | varchar | 邊緣中心節點編號 | |
|- | time | 1..1 | String! | varchar | 資料類別 | constant string value → “State” |
|- | coreDeviceState | 0..* | [Backbone(edgeState)] | json | coreDevice狀態 | |
|-type | 1..1 | enum | varchar | coreDevice | rfdmeraspberry | advantechlogger | some energy manage system | … | |
|-edgeRef | 1..1 | Reference(UNION!) | varchar | coreDevice參考 | ||
|-state | 1..1 | Boolean | boolean | coreDevice狀態 | ||
|- | clientDeviceState | 0..* | [Backbone(edgeState)] | json | clientDevice狀態 | |
|-edgeRef | 1..1 | Reference( ClientDevice!) | varchar | clientDevice參考 | ||
|-state | 1..1 | Boolean | boolean | clientDevice狀態 | ||
|- | locationObjectID | 0..1 | ID! | varchar | 位置案場編號 | |
|- | recordTrail | 1..1 | RecordLog! | json | 資料日誌 |
>>>>> gd2md-html alert: inline image link here (to images/image2.png). Store image on your image server and adjust path/filename/extension if necessary.
(Back to top)(Next alert)
>>>>>
- MB標示為監控箱
- 單變站與低壓段都為案場,都有各自的LocationObjectID和ObjectID
- 一個監控箱(EdgeCenterNode) 會對應一個案場 也可以對應多個案場
- 一個案場可能不會對應監控箱,也可以對應一個監控箱。但最多一個!
- SP:有的SP會位於單變站,但它實際上是收低壓段的值。
- 如果需要Object與LocationObject的關係,到Object拿。
- 如果需要Object與EdgeCenterNode的關係,到Object拿。
- 如果需要ClientDevice的Object和LocationObject關係,到ClientDevice拿
Data Import:
Description:資金履歷資訊
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
FundPortfolio | Element | |||||
|- | FundPortfolioID | 1..1 | ID! | varchar(10) | 資金履歷編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “FundPortfolio” |
|- | name | 0..1 | String | varchar(300) | 資金履歷名稱 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:
Description:資金池資訊
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
Pool | Element | |||||
|- | PoolID | 1..1 | ID! | varchar(10) | 資金池編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “Pool” |
|- | name | 0..1 | String | varchar(300) | 特資金池名稱 | |
|- | FundPortfolioRef | 0..1 | Reference(FundPortfolio)→ | varchar(10) | 資金履歷參考 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:
Description:特殊目的項目公司資訊 \
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
SPV | Element | |||||
|- | SPVID | 1..1 | ID! | varchar(10) | 特殊目的項目公司編號 | ID |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “SPV” |
|- | name | 0..1 | String | varchar(300) | 特殊目的項目公司名稱 | |
|- | PoolRef | 0..1 | Reference(Pool)→ | varchar(10) | 資金池參考 | |
|- | FundPortfolioRef | 0..1 | Reference(FundPortfolio)→ | varchar(10) | 資金履歷參考 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Source:
Description:
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description | |
LoadBill | Element | ||||||
|- | powerNumber | 1..1 | String! | PK | varchar(15) | 電號 | |
|- | type | 1..1 | String! | varchar(60) | 資料類別 | constant string value → “BillMappingObject” | |
|- | generatingSet | 1..1 | String! | PK | varchar(2) | 機組 | |
|- | objectID | 1..1 | String! | PK | varchar(10) | 案場編號 |
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
Element | ||||||
|- | ancillaryServiceID | 1..1 | ID! | varchar | 裝置編號 | ID |
|- | type | 1..1 | String! | varchar | 資料類別 | constant string value → “DeviceDefinition” |
|- | name | 0..1 | String | varchar | 裝置名稱 | |
|- | ||||||
|- | priceRef | 0..1 | Reference(Price)→ | varchar | 躉售價格參考 | |
|- | ||||||
|- | ancillaryServiceType | 0..* | BackboneElement | |||
|-type | 1..1 | enum! | regulation | spinning | supplemental \ 調頻備轉 | 即時備轉 | 補充備轉 | |||
|-capacity | 1..1 | Float! |
Description:記錄微電邊端中心節點之 CoreDevice (樹莓派)與 ClientDevice 狀態。
Implement:interface State
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
Element | ||||||
|- | edgeCenterNodeID | 1..1 | ID! | varchar | 邊緣中心節點編號 | |
|- | type | 1..1 | String! | varchar | 資料類別 | constant string value → “State” |
|- | coreDeviceState | 0..* | [Backbone(edgeState)] | json | coreDevice狀態 | |
|-type | 1..1 | enum | varchar | coreDevice | rfdmeraspberry | advantechlogger | some energy manage system | … | |
|-edgeRef | 1..1 | Reference( RfdmeRaspberry!) | varchar | coreDevice參考 | ||
|-state | 1..1 | Boolean | boolean | coreDevice狀態 | ||
|- | clientDeviceState | 0..* | [Backbone(edgeState)] | json | clientDevice狀態 | |
|-edgeRef | 1..1 | Reference( ClientDevice!) | varchar | clientDevice參考 | ||
|-state | 1..1 | Boolean | boolean | clientDevice狀態 | ||
|- | locationObjectID | 0..1 | ID! | varchar | 位置案場編號 | |
|- | hutState | 0..1 | Int | integer | clientDevice狀態全覽 | 0為 |
|- | mbMode | 0..1 | String | varchar | coreDevice單雙系統 | single代表只有一個coreDevice,double |
|- | mbState | 0..1 | Int | integer | coreDevice狀態全覽 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Description:記錄微電邊端中心節點之 CoreDevice (advantech)與 ClientDevice 狀態。
Implement:interface State
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
Element | ||||||
|- | edgeCenterNodeID | 1..1 | ID! | varchar | 邊緣中心節點編號 | |
|- | type | 1..1 | String! | varchar | 資料類別 | constant string value → “State” |
|- | coreDeviceState | 0..* | [Backbone(edgeState)] | jsonb | coreDevice狀態 | |
|-type | 1..1 | enum | varchar | coreDevice | rfdmeraspberry | advantechlogger | some energy manage system | … | |
|-edgeRef | 1..1 | Reference(UNION advantech!) | varchar | coreDevice參考 | ||
|-state | 1..1 | Boolean | boolean | coreDevice狀態 | ||
|- | clientDeviceState | 0..* | [Backbone(edgeState)] | jsonb | clientDevice狀態 | |
|-edgeRef | 1..1 | Reference( ClientDevice!) | varchar | clientDevice參考 | ||
|-state | 1..1 | Boolean | boolean | clientDevice狀態 | ||
|- | locationObjectID | 0..1 | ID! | varchar | 位置案場編號 | |
|- | recordTrail | 1..1 | RecordLog! | jsonb | 資料日誌 |
Data Import:無
Source: 無
Description: 待 Jerry 進行補充
Name | Name | Card. | AppSync Type | SQL-Type | Name | Description |
PvSatellitePrediction | Element | |||||
|- | logID | 1..1 | String! | uuid | log編號 | |
|- | logTime | 0..1 | AWSDateTime | timestamp
with time zone |
記錄時間 | |
|- | logValue | 0..1 | AWSJson | jsonb | 記錄內容 |