Refine energy schema
This commit is contained in:
@@ -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)
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user