user instruments

This commit is contained in:
yash 2026-04-28 11:42:07 +03:00
parent dd03cae0f3
commit abb2411af7
9 changed files with 494 additions and 48 deletions

View file

@ -0,0 +1,2 @@
drop table if exists user_instrument;
alter table instrument drop column if exists is_global;

View file

@ -0,0 +1,8 @@
alter table instrument add column is_global bool not null default false;
update instrument set is_global = true;
create table user_instrument (
user_id uuid references users(id) not null,
instrument_id uuid references instrument(id) not null,
primary key (user_id, instrument_id)
);