mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-01-11 14:30:50 +01:00
18 lines
494 B
Scala
18 lines
494 B
Scala
package models.odc
|
|
|
|
import com.ysoft.odc.Reference
|
|
import models.odc
|
|
import models.odc.profile.MappedJdbcType
|
|
import models.odc.profile.api._
|
|
import slick.lifted.Tag
|
|
|
|
class References (tag: Tag) extends Table[(Int, Reference)](tag, "reference") {
|
|
def cveId = column[Int]("cveid")
|
|
def name = column[String]("name")
|
|
def url = column[String]("url")
|
|
def source = column[String]("source")
|
|
|
|
def base = (source, url, name) <> (Reference.tupled, Reference.unapply)
|
|
def * = (cveId, base)
|
|
}
|