Add issue_id model.

This commit is contained in:
shimamoto
2013-06-19 20:12:20 +09:00
parent 0e7b855610
commit 46a2a95411

View File

@@ -2,6 +2,13 @@ package model
import scala.slick.driver.H2Driver.simple._
object IssueId extends Table[(String, String, Int)]("ISSUE_ID") {
def userName = column[String]("USER_NAME", O PrimaryKey)
def repositoryName = column[String]("REPOSITORY_NAME", O PrimaryKey)
def issueId = column[Int]("ISSUE_ID")
def * = userName ~ repositoryName ~ issueId
}
object Issues extends Table[Issue]("ISSUE") {
def userName = column[String]("USER_NAME", O PrimaryKey)
def repositoryName = column[String]("REPOSITORY_NAME", O PrimaryKey)