Created
February 19, 2018 19:00
-
-
Save oshai/174548d5f8c3f41be6a28349d5f1de51 to your computer and use it in GitHub Desktop.
This file contains 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
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