标签: scala squeryl
如何在squeryl模式中组合列中的唯一约束?
A | B 2 1 allow 2 3 allow 3 1 allow 2 1 don't allow same with row one
答案 0 :(得分:5)
你试过这个吗?
on(authors)(s => declare( columns(s.firstName, s.lastName) are(unique) ))
http://squeryl.org/schema-definition.html