CREATE TABLE public."AsyncMotor" (
    id serial NOT NULL,
    global_uuid uuid NOT NULL,
    noload_voltage decimal(7, 2) NOT NULL,
    noload_electric_current decimal(7, 2) NOT NULL,
    noload_power decimal(7, 2) NOT NULL,
    blockage_f1_frequency decimal(5, 2) NOT NULL,
    blockage_f1_voltage decimal(7, 2) NOT NULL,
    blockage_f1_electric_current decimal(7, 2) NOT NULL,
    blockage_f1_power decimal(7, 2) NOT NULL,
    blockage_f2_frequency decimal(5, 2) NOT NULL,
    blockage_f2_voltage decimal(7, 2) NOT NULL,
    blockage_f2_electric_current decimal(7, 2) NOT NULL,
    blockage_f2_power decimal(7, 2) NOT NULL,
    a_phase_dc_resistance decimal(7, 2) NOT NULL,
    b_phase_dc_resistance decimal(7, 2) NOT NULL,
    c_phase_dc_resistance decimal(7, 2) NOT NULL,
    running_stator_resistance decimal(8, 5) NOT NULL,
    startup_stator_resistance decimal(8, 5) NOT NULL,
    coldstate_stator_resistance decimal(8, 5) NOT NULL,
    running_stator_reactance decimal(8, 5) NOT NULL,
    startup_stator_reactance decimal(8, 5) NOT NULL,
    coldstate_stator_reactance decimal(8, 5) NOT NULL,
    running_equivalent_resistance_of_rotor decimal(8, 5) NOT NULL,
    startup_equivalent_resistance_of_rotor decimal(8, 5) NOT NULL,
    coldstate_equivalent_resistance_of_rotor decimal(8, 5) NOT NULL,
    running_equivalent_reactance_of_rotor decimal(8, 5) NOT NULL,
    startup_equivalent_reactance_of_rotor decimal(8, 5) NOT NULL,
    coldtsate_equivalent_reactance_of_rotor decimal(8, 5) NOT NULL,
    running_excitation_resistance decimal(8, 5) NOT NULL,
    startup_excitation_resistance decimal(8, 5) NOT NULL,
    coldstate_excitation_resistance decimal(8, 5) NOT NULL,
    running_excitation_reactance decimal(8, 5) NOT NULL,
    startup_excitation_reactance decimal(8, 5) NOT NULL,
    coldstate_excitation_reactance decimal(8, 5) NOT NULL,
    running_temperature integer NOT NULL,
    startup_temperature integer NOT NULL,
    coldstate_temperature integer NOT NULL,
    eis character varying(10) default 'f' NOT NULL,
    temperature_limit integer NOT NULL,
    temperature_rise_limit integer NOT NULL,
    coldstate_allows_continuous_starting_times integer default 2 NOT NULL,
    hotstate_allows_continuous_starting_times integer default 1 NOT NULL,
    prohibition_of_restart_for_shortest_time decimal(4, 1) default 30 NOT NULL,
    hotstate_allows_blockage_time decimal(5, 2) default 10 NOT NULL,
    coldstate_allows_blockage_time decimal(5, 2) default 6 NOT NULL,
    electric_motor_heating_time_constant decimal(5, 2) default 100 NOT NULL,
    electric_motor_heat_dissipation_time_constant decimal(5, 2) default 300 NOT NULL,
    thermal_load_curve decimal(5, 2) [] NOT NULL,
    compensation_for_env_conditions decimal(5, 2) NOT NULL,
    min_limit_of_terminal_voltage integer default 80 NOT NULL,
    max_limit_of_tarts integer NOT NULL,
    starting_strategy character varying(10) NOT NULL,
    normal_startup_time integer NOT NULL,
    restart_batch integer NOT NULL,
    electric_current_measurement_level character varying(10) NOT NULL,
    voltage_measurement_level character varying(10) NOT NULL,
    electric_current_protection_level1 character varying(10) NOT NULL,
    electric_current_protection_level2 character varying(10) NOT NULL,
    voltage_protection_level character varying(10) NOT NULL,
    trend character varying(10) NOT NULL,
    frequency character varying(10) NOT NULL,
    status_measurement_point character varying(10) NOT NULL,
    machinery character varying(10) NOT NULL,
    context jsonb NULL,
    comment character varying(4096) NULL
);

ALTER TABLE
    public."AsyncMotor"
ADD
    CONSTRAINT "AsyncMotor_pkey" PRIMARY KEY (global_uuid)