From 8b4eb146acc4fd461dd38a6e41af276d9160e38c Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 5 Feb 2023 01:54:03 -0700 Subject: [PATCH] shared bank db migration --- .../postgres/migrations/V0011__shared_bank.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/entity/gateway/postgres/migrations/V0011__shared_bank.sql diff --git a/src/entity/gateway/postgres/migrations/V0011__shared_bank.sql b/src/entity/gateway/postgres/migrations/V0011__shared_bank.sql new file mode 100644 index 0000000..4bc7ec6 --- /dev/null +++ b/src/entity/gateway/postgres/migrations/V0011__shared_bank.sql @@ -0,0 +1,16 @@ + +create table shared_bank ( + user_account integer references user_accounts (id) not null, + items jsonb not null, + name varchar(128) not null, + unique (user_account, name) +); + + +create table shared_bank_meseta ( + user_account integer references user_accounts (id) not null, + name varchar(128) not null, + meseta integer not null, + unique (user_account, name) +); +