ev charging station plug types table structure#
Lists all types of plugs found in electric vehicle charging stations in the model, including all the fields required by Polaris. Chargers with power level of 1,000 correspond to Level 1 chargers. Chargers with power level of 7,000 correspond to Level 2 chargers. Chargers with power level of 50,000 correspond to dcfc chargers. Required by all models presently, but will soon be more flexible.
Field |
Type |
NULL allowed |
Default Value |
Foreign key |
Description |
---|---|---|---|---|---|
plug_type_id* |
INTEGER |
NO |
Unique identifier for the plug type |
||
power_level |
REAL |
YES |
plug power level (in watts) |
||
power_source |
TEXT |
NO |
text description of source of energy, defaults to ‘Electric’ |
(* - Primary key)
The SQL statement for table and index creation is below.
CREATE TABLE IF NOT EXISTS "EV_Charging_Station_Plug_Types"(
plug_type_id INTEGER NOT NULL PRIMARY KEY,
power_level REAL,
power_source TEXT NOT NULL
);
insert into EV_Charging_Station_Plug_Types(plug_type_id,power_level,power_source) values (1,1000,'Electric');
insert into EV_Charging_Station_Plug_Types(plug_type_id,power_level,power_source) values (2,7000,'Electric');
insert into EV_Charging_Station_Plug_Types(plug_type_id,power_level,power_source) values (3,50000,'Electric');