Samples.scala 526 Bytes
Newer Older
Peter van 't Hof's avatar
Peter van 't Hof committed
1
2
package nl.lumc.sasc.biopet.utils.summary.db

Peter van 't Hof's avatar
Peter van 't Hof committed
3
4
import java.sql.Blob

Peter van 't Hof's avatar
Peter van 't Hof committed
5
6
7
8
9
import slick.driver.H2Driver.api._

/**
  * Created by pjvan_thof on 26-1-17.
  */
Peter van 't Hof's avatar
Peter van 't Hof committed
10
class Samples(tag: Tag) extends Table[(Int, String, Blob)](tag, "Samples") {
Peter van 't Hof's avatar
Peter van 't Hof committed
11
12
  def sampleId = column[Int]("sampleId", O.PrimaryKey) // This is the primary key column
  def sampleName = column[String]("sampleName")
Peter van 't Hof's avatar
Peter van 't Hof committed
13
  def tags = column[Blob]("tags")
Peter van 't Hof's avatar
Peter van 't Hof committed
14
  // Every table needs a * projection with the same type as the table's type parameter
Peter van 't Hof's avatar
Peter van 't Hof committed
15
  def * = (sampleId, sampleName, tags)
Peter van 't Hof's avatar
Peter van 't Hof committed
16
}