hiling_go/db/migrations/000007_create_user_follow_table.up.sql

7 lines
272 B
MySQL
Raw Permalink Normal View History

2023-10-03 16:14:58 +07:00
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
)