score:-1

you could define a function that receives type and creates a column. Something like:

def makeColumn[T](name: String): Column[Int] = 
  column[Int](name, O.PrimaryKey, O.AutoInc, O DBType "INT UNSIGNED")

def id = makeColumn("id")

Related Query

More Query from same tag