-
-
Save ajrouvoet/bfc9252c04307bbea446 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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