mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-23 01:30:25 +01:00
Initial commit
This commit is contained in:
11
app/models/odc/OdcProperty.scala
Normal file
11
app/models/odc/OdcProperty.scala
Normal file
@@ -0,0 +1,11 @@
|
||||
package models.odc
|
||||
import models.odc.profile.api._
|
||||
|
||||
final case class OdcProperty (id: String, value: String)
|
||||
|
||||
final class OdcProperties(tag: Tag) extends Table[OdcProperty](tag, "properties"){
|
||||
def id = column[String]("id")
|
||||
def value = column[String]("value")
|
||||
|
||||
def * = (id, value) <> (OdcProperty.tupled, OdcProperty.unapply)
|
||||
}
|
||||
Reference in New Issue
Block a user