update words
This commit is contained in:
parent
da592d825c
commit
40644c80d2
|
|
@ -1,8 +1,8 @@
|
||||||
-- Table: public.syncmotor_bay
|
-- Table: public.asyncmotor_bay
|
||||||
|
|
||||||
-- DROP
|
-- DROP
|
||||||
DROP TABLE IF EXISTS public.syncmotor_bay;
|
DROP TABLE IF EXISTS public.asyncmotor_bay;
|
||||||
DROP SEQUENCE IF EXISTS public.syncmotor_bay_id_seq;
|
DROP SEQUENCE IF EXISTS public.asyncmotor_bay_id_seq;
|
||||||
DROP TYPE IF EXISTS public.varible;
|
DROP TYPE IF EXISTS public.varible;
|
||||||
|
|
||||||
-- CREATE
|
-- CREATE
|
||||||
|
|
@ -16,11 +16,11 @@ CREATE TYPE public.varible AS
|
||||||
ALTER TYPE public.varible
|
ALTER TYPE public.varible
|
||||||
OWNER TO postgres;
|
OWNER TO postgres;
|
||||||
|
|
||||||
CREATE SEQUENCE IF NOT EXISTS public.syncmotor_bay_id_seq;
|
CREATE SEQUENCE IF NOT EXISTS public.asyncmotor_bay_id_seq;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS public.syncmotor_bay
|
CREATE TABLE IF NOT EXISTS public.asyncmotor_bay
|
||||||
(
|
(
|
||||||
id integer NOT NULL DEFAULT nextval('syncmotor_bay_id_seq'::regclass),
|
id integer NOT NULL DEFAULT nextval('asyncmotor_bay_id_seq'::regclass),
|
||||||
component_id integer NOT NULL,
|
component_id integer NOT NULL,
|
||||||
|
|
||||||
dev_protect jsonb NOT NULL DEFAULT '{}'::jsonb,
|
dev_protect jsonb NOT NULL DEFAULT '{}'::jsonb,
|
||||||
|
|
@ -90,8 +90,8 @@ CREATE TABLE IF NOT EXISTS public.syncmotor_bay
|
||||||
op integer NOT NULL DEFAULT '-1'::integer,
|
op integer NOT NULL DEFAULT '-1'::integer,
|
||||||
ts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
ts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
CONSTRAINT syncmotor_bay_id_PrimaryKey PRIMARY KEY (id),
|
CONSTRAINT asyncmotor_bay_id_PrimaryKey PRIMARY KEY (id),
|
||||||
CONSTRAINT syncmotor_bay_ForeignKey_component_id FOREIGN KEY (component_id)
|
CONSTRAINT asyncmotor_bay_ForeignKey_component_id FOREIGN KEY (component_id)
|
||||||
REFERENCES public.component (id) MATCH SIMPLE
|
REFERENCES public.component (id) MATCH SIMPLE
|
||||||
ON UPDATE NO ACTION
|
ON UPDATE NO ACTION
|
||||||
ON DELETE NO ACTION
|
ON DELETE NO ACTION
|
||||||
|
|
@ -99,9 +99,9 @@ CREATE TABLE IF NOT EXISTS public.syncmotor_bay
|
||||||
|
|
||||||
TABLESPACE pg_default;
|
TABLESPACE pg_default;
|
||||||
|
|
||||||
ALTER TABLE IF EXISTS public.syncmotor_bay
|
ALTER TABLE IF EXISTS public.asyncmotor_bay
|
||||||
OWNER to postgres;
|
OWNER to postgres;
|
||||||
|
|
||||||
COMMENT ON TABLE public.syncmotor_bay
|
COMMENT ON TABLE public.asyncmotor_bay
|
||||||
IS '存储异步电动机的间隔信息';
|
IS '存储异步电动机的间隔信息';
|
||||||
|
|
||||||
Loading…
Reference in New Issue