Created
March 19, 2020 09:39
-
-
Save jlengrand/85ab9ea6875c2d4b21151b0afc511077 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 Ratings : IntIdTable(){ | |
val tconst : Column<String> = varchar("tconst", 10).uniqueIndex() | |
val averageRating : Column<Float?> = float("averageRating").nullable() | |
val numVotes : Column<Int?> = integer("numVotes").nullable() | |
} | |
object Titles : IntIdTable() { | |
val tconst : Column<String> = varchar("tconst", 10).uniqueIndex() | |
val titleType: Column<String> = varchar("titleType", 50) // TODO: Own Table? | |
val primaryTitle: Column<String> = varchar("primaryTitle", 500) | |
val originalTitle: Column<String> = varchar("originalTitle", 500) | |
val isAdult: Column<Boolean> = bool("isAdult") | |
val startYear: Column<Int?> = integer("startYear").nullable() | |
val endYear: Column<Int?> = integer("endYear").nullable() | |
val runtimeMinutes: Column<Long?> = long("runtimeMinutes").nullable() | |
val genres: Column<String> = varchar("genres", 50) // TODO: Own Table? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment