All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gitbucket.core.model.IssueAssignee.scala Maven / Gradle / Ivy

package gitbucket.core.model

trait IssueAssigneeComponent extends TemplateComponent { self: Profile =>
  import profile.api._
  import self._

  lazy val IssueAssignees = TableQuery[IssueAssignees]

  class IssueAssignees(tag: Tag) extends Table[IssueAssignee](tag, "ISSUE_ASSIGNEE") with IssueTemplate {
    val assigneeUserName = column[String]("ASSIGNEE_USER_NAME")
    def * =
      (userName, repositoryName, issueId, assigneeUserName).mapTo[IssueAssignee]

    def byPrimaryKey(owner: String, repository: String, issueId: Int, assigneeUserName: String) = {
      byIssue(owner, repository, issueId) && this.assigneeUserName === assigneeUserName.bind
    }
  }
}

case class IssueAssignee(
  userName: String,
  repositoryName: String,
  issueId: Int,
  assigneeUserName: String
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy