mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-18 07:14:26 +01:00
Initial commit
This commit is contained in:
17
app/models/odc/References.scala
Normal file
17
app/models/odc/References.scala
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user