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

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

The newest version!
package gitbucket.core.model

trait GroupMemberComponent { self: Profile =>
  import profile.api._

  lazy val GroupMembers = TableQuery[GroupMembers]

  class GroupMembers(tag: Tag) extends Table[GroupMember](tag, "GROUP_MEMBER") {
    val groupName = column[String]("GROUP_NAME", O PrimaryKey)
    val userName = column[String]("USER_NAME", O PrimaryKey)
    val isManager = column[Boolean]("MANAGER")
    def * = (groupName, userName, isManager).mapTo[GroupMember]
  }
}

case class GroupMember(
  groupName: String,
  userName: String,
  isManager: Boolean
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy