如果我的数据库中有外键设置,slick 会关心吗?

Does slick care if I have a foreign key setup in my database?

当使用 slick 进行连接时,slick 是否关心我是否在数据库模式级别设置了外键约束?

无论您的 Slick 模式是否定义了外键,Slick 都会起作用。

这是来自文档的 Constraints 部分:

Independent of the actual constraint defined in the database, such a foreign key can be used to navigate to the referenced data with a join. For this purpose, it behaves the same as a manually defined utility method for finding the joined data.