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