Advertisement
Guest User

Untitled

a guest
Mar 13th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.51 KB | None | 0 0
  1. class Suppliers(tag: Tag) extends Table[(Int, String, String, String, String, String)](tag, "SUPPLIERS") {
  2.   def id = column[Int]("SUP_ID", O.PrimaryKey) // This is the primary key column
  3.   def name = column[String]("SUP_NAME")
  4.   def street = column[String]("STREET")
  5.   def city = column[String]("CITY")
  6.   def state = column[String]("STATE")
  7.   def zip = column[String]("ZIP")
  8.   // Every table needs a * projection with the same type as the table's type parameter
  9.   def * = (id, name, street, city, state, zip)
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement