mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
20 lines
469 B
Scala
20 lines
469 B
Scala
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", O PrimaryKey)
|
|
val version = column[String]("VERSION")
|
|
def * = (pluginId, version) <> (Plugin.tupled, Plugin.unapply)
|
|
}
|
|
}
|
|
|
|
case class Plugin(
|
|
pluginId: String,
|
|
version: String
|
|
)
|