Skip to content

Instantly share code, notes, and snippets.

@ajrouvoet
Created July 28, 2014 14:15
Show Gist options
  • Save ajrouvoet/bfc9252c04307bbea446 to your computer and use it in GitHub Desktop.
Save ajrouvoet/bfc9252c04307bbea446 to your computer and use it in GitHub Desktop.
package nl.ncim.alc.models
import aj.slick.auth._
trait EndpointComponent { this: ActiveSlick => {
import jdbcDriver.simple._
case class Endpoint(
id: Option[Int],
mac_address: String
)
class Endpoints extends Table[Endpoint]("endpoint") {
def id = column[Int]("id", 0.PrimaryKey, 0.AutoInc)
def mac_address = column[String]("mac_address")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment