|
@ -122,27 +122,3 @@ create table mag_modifier ( |
|
|
modifier jsonb not null, |
|
|
modifier jsonb not null, |
|
|
created_at timestamptz default current_timestamp not null |
|
|
created_at timestamptz default current_timestamp not null |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
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) |
|
|
|
|
|
); |
|
|
|