mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
Fix model composition.
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
package model
|
||||
|
||||
import scala.slick.driver.H2Driver.simple._
|
||||
import model.{BaseTable => Table}
|
||||
|
||||
object Milestones extends Table[Milestone]("MILESTONE") with Functions {
|
||||
object Milestones extends Table[Milestone]("MILESTONE") with BasicTemplate with Functions {
|
||||
def milestoneId = column[Int]("MILESTONE_ID", O AutoInc)
|
||||
def title = column[String]("TITLE")
|
||||
def description = column[String]("DESCRIPTION")
|
||||
def dueDate = column[java.util.Date]("DUE_DATE")
|
||||
def closedDate = column[java.util.Date]("CLOSED_DATE")
|
||||
def * = base ~ milestoneId ~ title ~ description.? ~ dueDate.? ~ closedDate.? <> (Milestone, Milestone.unapply _)
|
||||
def * = userName ~ repositoryName ~ milestoneId ~ title ~ description.? ~ dueDate.? ~ closedDate.? <> (Milestone, Milestone.unapply _)
|
||||
|
||||
def autoInc = base ~ title ~ description.? ~ dueDate.? ~ closedDate.? returning milestoneId
|
||||
def autoInc = userName ~ repositoryName ~ title ~ description.? ~ dueDate.? ~ closedDate.? returning milestoneId
|
||||
}
|
||||
|
||||
case class Milestone(
|
||||
|
||||
Reference in New Issue
Block a user