 COMMENT ON COLUMN calc_ego_hv_powerflow.storage_pq_set.p_max_pu IS 'Unit: per unit
 Description: If control=”variable” this gives the maximum output for each snapshot per unit of p_nom for the OPF, relevant e.g. if for renewables the power output is limited by the weather.
 Status: Input (optional)';
-COMMENT ON COLUMN calc_ego_hv_powerflow.storage_pq_set.soa_set IS 'Unit: MWh
+COMMENT ON COLUMN calc_ego_hv_powerflow.storage_pq_set.soc_set IS 'Unit: MWh
 Description: State of charge set points for snapshots in the OPF.
 Status: Input (optional)';
 COMMENT ON COLUMN calc_ego_hv_powerflow.storage_pq_set.inflow IS 'Unit: MW

COMMENT ON COLUMN calc_ego_hv_powerflow.storage.efficiency IS 'Unit: per unit
Description: Ratio between primary energy and electrical energy, e.g. takes value 0.4 for gas. This is important for determining CO2 emissions per MWh.
Status: Input (optional)';
COMMENT ON COLUMN calc_ego_hv_powerflow.storage.soa_initial IS 'Unit: MWh
Description: State of charge before the snapshots in the OPF.
Status: Input (optional)
';
COMMENT ON COLUMN calc_ego_hv_powerflow.storage.soa_cyclic IS 'Unit: n/a
Description: Switch: if True, then state_of_charge_initial is ignored and the initial state of charge is set to the final state of charge for the group of snapshots in the OPF.
Status: Input (optional)';
COMMENT ON COLUMN calc_ego_hv_powerflow.storage.max_hours IS 'Unit: hours

  q_set double precision[], -- Unit: MVar...
  p_min_pu double precision[], -- Unit: per unit...
  p_max_pu double precision[], -- Unit: per unit...
  soc_set double precision[], -- Unit: MWh...
  inflow double precision[], -- Unit: MW...
    CONSTRAINT storage_pq_set_pkey PRIMARY KEY (storage_id, temp_id, scn_name),
  CONSTRAINT storage_pq_set_temp_fkey FOREIGN KEY (temp_id) REFERENCES calc_ego_hv_powerflow.temp_resolution (temp_id)
