Refine energy schema

This commit is contained in:
WQY\qiong
2022-10-22 11:00:28 +08:00
parent 5613e0eb14
commit e68cd998b3

View File

@@ -1,6 +1,6 @@
-- [ENERGY]
create type energy_param as enum ('price', 'pattern', 'effic');
create type energy_param as enum ('PRICE', 'PATTERN', 'EFFIC');
-- GLOBAL PRICE / PATTERN / EFFIC value
create table energy_global
@@ -22,3 +22,12 @@ create table energy_demand_charge
(
value numeric not null
);
insert into energy_global (param, value) values
('PRICE', 0.0)
, ('EFFIC', 75)
;
insert into energy_demand_charge values
(0.0)
;