All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.nussknacker.ui.db.entity.FingerprintEntityFactory.scala Maven / Gradle / Ivy

There is a newer version: 1.17.0
Show newest version
package pl.touk.nussknacker.ui.db.entity

import slick.lifted.{ProvenShape, TableQuery => LTableQuery}

trait FingerprintEntityFactory extends BaseEntityFactory {
  import profile.api._

  class FingerprintEntity(tag: Tag) extends Table[FingerprintEntityData](tag, "fingerprints") {
    def value: Rep[String] = column[String]("value", O.PrimaryKey)

    def * : ProvenShape[FingerprintEntityData] = value <> (FingerprintEntityData.apply, FingerprintEntityData.unapply)
  }

  val fingerprintsTable: LTableQuery[FingerprintEntityFactory#FingerprintEntity] = LTableQuery(new FingerprintEntity(_))
}

final case class FingerprintEntityData(value: String)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy