Skip to content

Commit

Permalink
user_search_his table kc_id bug fixing*
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolicvs committed Jul 31, 2020
1 parent 99fb860 commit aa16403
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,18 @@ CREATE table IF NOT EXISTS roles_users (
);

CREATE table IF NOT EXISTS user_search_his(
id serial not null,
user_id int not null references users(id),

PRIMARY KEY (id, user_id),
id serial primary key,
kc_id varchar(100) NOT NULL,

query text,
name varchar(50),
ui_structure text,
description text,

CONSTRAINT roles_users_kc_id_fkey FOREIGN KEY (kc_id)
REFERENCES users(kc_id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION,

createdAt timestamp NOT NULL DEFAULT NOW(),
updatedAt timestamp
);
Expand Down

0 comments on commit aa16403

Please sign in to comment.