Skip to content

Instantly share code, notes, and snippets.

@oshai
Created February 19, 2018 19:00
Show Gist options
  • Save oshai/174548d5f8c3f41be6a28349d5f1de51 to your computer and use it in GitHub Desktop.
Save oshai/174548d5f8c3f41be6a28349d5f1de51 to your computer and use it in GitHub Desktop.
object StarWarsFilms : IntIdTable() {
val sequelId: Column<Int> = integer("sequel_id").uniqueIndex()
val name: Column<String> = varchar("name", 50)
val director: Column<String> = varchar("director", 50)
}
data class StarWarsFilm(val sequelId: Int,
val name: String,
val director: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment