CREATE TABLE
  public.bus_stability (
    id serial NOT NULL,
    component_id integer NOT NULL DEFAULT '-1'::integer,
    resistance double precision NOT NULL DEFAULT 1,
    anchor_v boolean NOT NULL DEFAULT false,
    uv_alarm double precision NOT NULL DEFAULT 90,
    ov_alarm double precision NOT NULL DEFAULT 110,
    anchor_i boolean NOT NULL DEFAULT false,
    ui_alarm double precision NOT NULL DEFAULT 90,
    oi_alarm double precision NOT NULL DEFAULT 110,
    op integer NOT NULL DEFAULT '-1'::integer,
    ts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP
  );

ALTER TABLE
  public.bus_stability
ADD
  CONSTRAINT bus_stability_id_primarykey PRIMARY KEY (id)