mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 22:15:51 +01:00
Add issue_id model.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user