Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Permissions(tag: Tag) extends Table[Permission](tag, "permissions") {
- def id = column[Long]("id", O.PrimaryKey, O.AutoInc)
- def value = column[String]("value", O.NotNull)
- def description = column[Option[String]]("description", O.Nullable)
- def created = column[Timestamp]("created", O.NotNull, O.DBType("timestamp default now()"))
- def lastUpdated = column[Timestamp]("last_updated", O.NotNull, O.DBType("timestamp default now()"))
- def idx = index("unique_permission_name", (value), unique = true)
- def * = (id, value, description, created, lastUpdated) <>((Permission.apply _).tupled, Permission.unapply _)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement