create table equipped (
  pchar integer references player_character (id) unique not null,
  weapon integer references item (id),
  armor integer references item (id),
  shield integer references item (id),
  unit0 integer references item (id),
  unit1 integer references item (id),
  unit2 integer references item (id),
  unit3 integer references item (id),
  mag integer references item (id)
);

create table inventory (
  pchar integer references player_character (id) unique not null,
  items jsonb not null
);

create table bank (
  pchar integer references player_character (id) not null,
  items jsonb not null,
  name varchar(128) not null,
  unique (pchar, name)
);
