create table user_resource ( id integer default nextval('user_resource_id_seq'::regclass) not null constraint user_resource_pk primary key, user_id integer not null constraint fk_emp_dept2 references "user", resource_id varchar(128) default NULL::character varying not null constraint user_resource_resource_code_fk references resource, isshow boolean )