mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 23:15:49 +01:00
15 lines
515 B
Scala
15 lines
515 B
Scala
package model
|
|
|
|
import scala.slick.driver.H2Driver.simple._
|
|
|
|
object IssueLabels extends Table[IssueLabel]("ISSUE_LABEL") with IssueTemplate with LabelTemplate {
|
|
def * = userName ~ repositoryName ~ issueId ~ labelId <> (IssueLabel, IssueLabel.unapply _)
|
|
def byPrimaryKey(owner: String, repository: String, issueId: Int, labelId: Int) =
|
|
byIssue(owner, repository, issueId) && (this.labelId is labelId.bind)
|
|
}
|
|
|
|
case class IssueLabel(
|
|
userName: String,
|
|
repositoryName: String,
|
|
issueId: Int,
|
|
labelId: Int) |