This commit is contained in:
InsanusMokrassar 2021-02-17 21:26:24 +06:00
parent a721981e40
commit 91cd897717

View File

@ -1,7 +1,6 @@
package dev.inmo.plagubot.plugins.captcha.db package dev.inmo.plagubot.plugins.captcha.db
import dev.inmo.micro_utils.repos.exposed.AbstractExposedCRUDRepo import dev.inmo.micro_utils.repos.exposed.*
import dev.inmo.micro_utils.repos.exposed.ExposedCRUDRepo
import dev.inmo.micro_utils.repos.exposed.keyvalue.ExposedKeyValueRepo import dev.inmo.micro_utils.repos.exposed.keyvalue.ExposedKeyValueRepo
import dev.inmo.plagubot.plugins.captcha.settings.* import dev.inmo.plagubot.plugins.captcha.settings.*
import dev.inmo.tgbotapi.types.ChatId import dev.inmo.tgbotapi.types.ChatId
@ -17,7 +16,7 @@ class CaptchaChatsSettingsRepo(
) { ) {
private val chatIdColumn = long("chatId") private val chatIdColumn = long("chatId")
private val checkTimeSecondsColumn = integer("checkTime") private val checkTimeSecondsColumn = integer("checkTime")
private val solveCaptchaTextColumn = text("checkTime") private val solveCaptchaTextColumn = text("solveCaptchaText")
override val primaryKey = PrimaryKey(chatIdColumn) override val primaryKey = PrimaryKey(chatIdColumn)
@ -53,4 +52,8 @@ class CaptchaChatsSettingsRepo(
get(checkTimeSecondsColumn), get(checkTimeSecondsColumn),
get(solveCaptchaTextColumn) get(solveCaptchaTextColumn)
) )
init {
initTable()
}
} }