Runs.scala 439 Bytes
Newer Older
Peter van 't Hof's avatar
Peter van 't Hof committed
1
2
3
4
5
6
7
8
9
10
11
12
13
package nl.lumc.sasc.biopet.utils.summary.db

import slick.driver.H2Driver.api._

/**
  * Created by pjvanthof on 27/01/2017.
  */
class Runs(tag: Tag) extends Table[(Int, String)](tag, "Runs") {
  def runId = column[Int]("runId", O.PrimaryKey) // This is the primary key column
  def runName = column[String]("sampleName")
  // Every table needs a * projection with the same type as the table's type parameter
  def * = (runId, runName)
}