(refs #464)Add PLUGIN table for plugin management

This commit is contained in:
Naoki Takezoe
2014-08-13 02:23:29 +09:00
parent 3f20cec7b2
commit 13385cbced
5 changed files with 64 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
package model
trait PluginComponent extends TemplateComponent { self: Profile =>
import profile.simple._
import self._
lazy val Plugins = TableQuery[Plugins]
class Plugins(tag: Tag) extends Table[Plugin](tag, "PLUGIN"){
val pluginId = column[String]("PLUGIN_ID")
val version = column[String]("VERSION")
def * = (pluginId, version) <> (Plugin.tupled, Plugin.unapply)
}
}
case class Plugin(
pluginId: String,
version: String
)