Multi-column primary keys are not yet supported but you can define a
regular index / constraint over multiple columns so you can use them in
a foreign key, e.g. from ForeignKeyTest:
object B extends Table[(Int, Int, String)]("b") {
def f1 = column[Int]("f1")
def f2 = column[Int]("f2")
def s = column[String]("s")
def * = f1 ~ f2 ~ s
def bIdx1 = index("b_idx1", f1 ~ f2, unique = true)
}
("index" is a bit of a misnomer. It usually creates a unique constraint
with the given name and an automatically created backing index. I should
rename it to "constraint".)
-sz