(refs #74)Add WEB_HOOK table.

This commit is contained in:
takezoe
2013-09-02 18:17:28 +09:00
parent 6fe65c76b1
commit 940e2f4759
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package model
import scala.slick.driver.H2Driver.simple._
object WebHooks extends Table[WebHook]("WEB_HOOK") with BasicTemplate {
def url = column[String]("URL")
def * = userName ~ repositoryName ~ url <> (WebHook, WebHook.unapply _)
def byPrimaryKey(owner: String, repository: String) = byRepository(owner, repository)
}
case class WebHook(
userName: String,
repositoryName: String,
url: String
)