mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-01-11 22:41:31 +01:00
16 lines
623 B
Scala
16 lines
623 B
Scala
package models
|
|
|
|
import com.mohiva.play.silhouette.api.LoginInfo
|
|
import models.profile.api._
|
|
import slick.lifted.Tag
|
|
|
|
case class NotificationDigestStatus(user: LoginInfo, lastChangelogIdOption: Option[Int])
|
|
|
|
|
|
class NotificationDigestStatuses(tag: Tag) extends Table[NotificationDigestStatus](tag, "notification_digest_status"){
|
|
val user = new LoginInfoColumns("user", this)
|
|
def lastChangelogId = column[Int]("last_changelog_id").?
|
|
def * = (user(), lastChangelogId) <> (NotificationDigestStatus.tupled, NotificationDigestStatus.unapply)
|
|
def idx = index("notification_digest_status_user_idx", user(), unique = true)
|
|
}
|