Closed knjk04 closed 2 years ago
Our publisher_book table:
CREATE TABLE publisher_book ( publisher_id BIGSERIAL NOT NULL, book_id BIGSERIAL NOT NULL, PRIMARY KEY (publisher_id, book_id), FOREIGN KEY (publisher_id) REFERENCES publisher (id), FOREIGN KEY (book_id) REFERENCES book (id) )
We should not be using BIGSERIAL for the IDs as we do not want them to auto-increment. Instead, we use BIGINT.
BIGSERIAL
BIGINT
Our publisher_book table:
We should not be using
BIGSERIAL
for the IDs as we do not want them to auto-increment. Instead, we useBIGINT
.