backend/src/main/resources/db/migration/V0016__MANGA_FOLLOW.sql

9 lines
240 B
SQL

ALTER TABLE mangas
ADD COLUMN follow BOOLEAN NOT NULL DEFAULT FALSE;
CREATE TABLE user_manga_follow
(
id BIGSERIAL NOT NULL PRIMARY KEY,
user_id BIGINT REFERENCES users (id),
manga_id BIGINT REFERENCES mangas (id)
);