update words
This commit is contained in:
parent
40644c80d2
commit
8e7cca5b27
|
|
@ -1,15 +1,15 @@
|
|||
-- Table: public.bus_stable
|
||||
-- Table: public.bus_stability
|
||||
|
||||
-- DROP
|
||||
DROP TABLE IF EXISTS public.bus_stable;
|
||||
DROP SEQUENCE IF EXISTS public.bus_stable_id_seq;
|
||||
DROP TABLE IF EXISTS public.bus_stability;
|
||||
DROP SEQUENCE IF EXISTS public.bus_stability_id_seq;
|
||||
|
||||
-- CREATE
|
||||
CREATE SEQUENCE IF NOT EXISTS public.bus_stable_id_seq;
|
||||
CREATE SEQUENCE IF NOT EXISTS public.bus_stability_id_seq;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS public.bus_stable
|
||||
CREATE TABLE IF NOT EXISTS public.bus_stability
|
||||
(
|
||||
id integer NOT NULL DEFAULT nextval('bus_stable_id_seq'::regclass),
|
||||
id integer NOT NULL DEFAULT nextval('bus_stability_id_seq'::regclass),
|
||||
component_id INTEGER NOT NULL DEFAULT -1,
|
||||
|
||||
uv_warn_rate DOUBLE PRECISION NOT NULL DEFAULT 95, -- 欠压预警 阈值 0~100(%)
|
||||
|
|
@ -33,8 +33,8 @@ CREATE TABLE IF NOT EXISTS public.bus_stable
|
|||
op integer NOT NULL DEFAULT '-1'::integer,
|
||||
ts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
CONSTRAINT bus_stable_id_PrimaryKey PRIMARY KEY (id),
|
||||
CONSTRAINT bus_stable_ForeignKey_component_id FOREIGN KEY (component_id)
|
||||
CONSTRAINT bus_stability_id_PrimaryKey PRIMARY KEY (id),
|
||||
CONSTRAINT bus_stability_ForeignKey_component_id FOREIGN KEY (component_id)
|
||||
REFERENCES public.component (id) MATCH SIMPLE
|
||||
ON UPDATE NO ACTION
|
||||
ON DELETE NO ACTION
|
||||
|
|
@ -42,8 +42,8 @@ CREATE TABLE IF NOT EXISTS public.bus_stable
|
|||
|
||||
TABLESPACE pg_default;
|
||||
|
||||
ALTER TABLE IF EXISTS public.bus_stable
|
||||
ALTER TABLE IF EXISTS public.bus_stability
|
||||
OWNER to postgres;
|
||||
|
||||
COMMENT ON TABLE public.bus_stable
|
||||
COMMENT ON TABLE public.bus_stability
|
||||
IS '存储母线的稳定参数';
|
||||
Loading…
Reference in New Issue