feat: テーブル定義を追加

This commit is contained in:
usbharu 2023-12-08 12:28:21 +09:00
parent da8d3b9aea
commit 0ac4e37f0a
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
create table if not exists blocks
(
id bigserial primary key,
user_id bigint not null,
target bigint not null,
constraint fk_blocks_user_id__id foreign key (user_id) references users (id) on delete restrict on update restrict,
constraint fk_blocks_target_id__id foreign key (target) references users (id) on delete restrict on update restrict
);