Skip to content

Instantly share code, notes, and snippets.

@oshai
Last active December 5, 2017 20:44
Show Gist options
  • Save oshai/67b1c2d91cffad8845ae739024ec5807 to your computer and use it in GitHub Desktop.
Save oshai/67b1c2d91cffad8845ae739024ec5807 to your computer and use it in GitHub Desktop.
definition of schema
// Table definition
object Cities : Table() {
val id = integer("id").autoIncrement().primaryKey()
val name = varchar("name", 50)
}
// Entity definition
data class City(
val id: Int,
val name: String
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment