Implementing add collaborator stuff.

This commit is contained in:
takezoe
2013-06-04 03:09:23 +09:00
parent 93d6405592
commit 783a9684dc
5 changed files with 82 additions and 19 deletions

View File

@@ -0,0 +1,16 @@
package model
import scala.slick.driver.H2Driver.simple._
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 _)
}
case class Collaborator(
userName: String,
repositoryName: String,
collaboratorName: String
)