Skip to content

Commit

Permalink
Simplified table
Browse files Browse the repository at this point in the history
  • Loading branch information
bskjon committed Dec 18, 2024
1 parent 78b4b9d commit b8dee84
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import org.jetbrains.exposed.sql.Column

object titles: IntIdTable() {
val masterTitle: Column<String> = varchar("masterTitle", 250)
val title: Column<String> = varchar("title", 250)
val type: Column<Int> = integer("type").default(3)
val alternativeTitle: Column<String> = varchar("alternativeTitle", 250)

init {
uniqueIndex(masterTitle, title, type)
uniqueIndex(masterTitle, alternativeTitle)
}
}

0 comments on commit b8dee84

Please sign in to comment.