hiling_go/db/migrations/000007_create_user_follow_table.up.sql
2024-05-22 11:26:15 +07:00

7 lines
272 B
SQL
Executable File

CREATE TABLE user_follow(
id serial primary key not null,
follower_id integer references "users"("id") not null,
followee_id integer references "users"("id") not null,
created_at timestamp default (now()) not null,
updated_at timestamp default (now()) not null
)