Skip to content

Commit

Permalink
Introduced unique on season - episode - collection
Browse files Browse the repository at this point in the history
  • Loading branch information
bskjon committed Jan 5, 2025
1 parent b8dee84 commit 56cdca4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ object serie: IntIdTable() {
val collection: Column<String> = varchar("collection", 250)
val video: Column<String> = varchar("video", 250).uniqueIndex()
val added: Column<LocalDateTime> = datetime("added").defaultExpression(CurrentDateTime)

init {
uniqueIndex(episode, season, collection)
}
}

0 comments on commit 56cdca4

Please sign in to comment.