mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 13:35:50 +01:00
Move userName and repositoryName to the base table class.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
package model
|
||||
|
||||
import scala.slick.driver.H2Driver.simple._
|
||||
import model.{BaseTable => Table}
|
||||
|
||||
object Collaborators extends Table[Collaborator]("COLLABORATOR") {
|
||||
def userName = column[String]("USER_NAME", O PrimaryKey)
|
||||
def repositoryName = column[String]("REPOSITORY_NAME")
|
||||
def collaboratorName = column[String]("COLLABORATOR_NAME")
|
||||
def * = userName ~ repositoryName ~ collaboratorName <> (Collaborator, Collaborator.unapply _)
|
||||
def * = base ~ collaboratorName <> (Collaborator, Collaborator.unapply _)
|
||||
}
|
||||
|
||||
case class Collaborator(
|
||||
|
||||
Reference in New Issue
Block a user