mirror of https://github.com/usbharu/Hideout.git
feat: テーブル定義を追加
This commit is contained in:
parent
da8d3b9aea
commit
0ac4e37f0a
|
@ -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
|
||||||
|
);
|
Loading…
Reference in New Issue