create table resource
(
    code    varchar(128) default NULL::character varying not null
        constraint resource_pk
            primary key,
    name            varchar(128) default NULL::character varying not null,
    parent_resource varchar(128) default NULL::character varying
)
