当域是外键时,表是否满足 6NF?例如:
CREATE TABLE authors(
author_id serial NOT NULL PRIMARY KEY
);
-- other author attributes
CREATE TABLE books(
book_id serial NOT NULL PRIMARY KEY
);
CREATE TABLE books_author(
book_id int NOT NULL PRIMARY KEY REFERENCES books (book_id),
author_id int NOT NULL REFERENCES authors (author_id)
);
如果不是,模型应该如何处理外键关系?
而如果是M2M的关系,那应该怎么处理呢?连接表也应该是 6NF 吗?