Commit b82d9c93 by ansible

patch_psql_wdchat

patch_psql_wdauthen
1 parent b721d00c
Drop Table IF EXISTS public.wd_user;
CREATE TABLE public.wd_user (
username varchar(40) NULL,
password varchar(254) NULL,
retry_count INTEGER,
status character varying(20),
created_date TIMESTAMP WITHOUT TIME ZONE,
updated_date TIMESTAMP WITHOUT TIME ZONE,
id int4 NOT NULL DEFAULT nextval('wd_user_id_seq'::regclass),
CONSTRAINT wd_user_pk PRIMARY KEY (id),
CONSTRAINT wd_user_uni01 UNIQUE (username)
)
WITH (
OIDS=FALSE
) ;
\ No newline at end of file
Drop Table IF EXISTS public.wd_authen_input_publish;
CREATE TABLE public.wd_authen_input_publish (
id int4 NOT NULL,
"index" int4 NULL,
field_name varchar(100) NULL,
default_value varchar(100) NULL,
value_from varchar(100) NULL,
xpath varchar(500) NULL,
user_authen_id int4 NOT NULL,
CONSTRAINT wd_authen_input_publish_pkey PRIMARY KEY (id),
CONSTRAINT wd_authen_input_publish_wd_user_authen_publish_fk FOREIGN KEY (user_authen_id) REFERENCES public.wd_user_authen_publish(id)
)
WITH (
OIDS=FALSE
) ;
Drop Table IF EXISTS public.wd_authen_input_temp;
CREATE TABLE public.wd_authen_input_temp (
id int4 NOT NULL DEFAULT nextval('wd_authen_input_temp_id_seq'::regclass),
"index" int4 NULL,
field_name varchar(100) NULL,
default_value varchar(100) NULL,
value_from varchar(100) NULL,
xpath varchar(500) NULL,
user_authen_id int4 NOT NULL,
CONSTRAINT wd_authen_input_temp_pkey PRIMARY KEY (id),
CONSTRAINT wd_authen_input_temp_wd_user_authen_temp_fk FOREIGN KEY (user_authen_id) REFERENCES public.wd_user_authen_temp(id)
)
WITH (
OIDS=FALSE
) ;
Drop Table IF EXISTS public.wd_authen_output_publish;
CREATE TABLE public.wd_authen_output_publish (
id integer NOT NULL,
field_name character varying(100),
field_type character varying(50),
success_type character varying(20),
success_value character varying(100),
user_authen_id integer NOT NULL,
xpath character varying(500),
json_sample character varying(3000),
CONSTRAINT id_pk PRIMARY KEY (id),
CONSTRAINT wd_authen_output_publish_wd_user_authen_publish_fk FOREIGN KEY (user_authen_id)
REFERENCES public.wd_user_authen_publish (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
)
WITH (
OIDS=FALSE
) ;
Drop Table IF EXISTS public.wd_authen_output_temp;
CREATE TABLE public.wd_authen_output_temp (
id integer NOT NULL DEFAULT nextval('wd_authen_output_temp_id_seq'::regclass),
field_name character varying(100),
field_type character varying(50),
success_type character varying(20),
success_value character varying(100),
user_authen_id integer NOT NULL,
xpath character varying(500),
json_sample character varying(3000),
CONSTRAINT wd_authen_output_temp_pkey PRIMARY KEY (id),
CONSTRAINT wd_authen_output_temp_wd_user_authen_temp_fk FOREIGN KEY (user_authen_id)
REFERENCES public.wd_user_authen_temp (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
)
WITH (
OIDS=FALSE
) ;
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!