package net.perfectdreams.loritta.tables

import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IdTable
import org.jetbrains.exposed.sql.Column

object SentYouTubeVideoIds : IdTable<String>() {
	val channelId = text("channel")
	val videoId = text("video")
	override val id: Column<EntityID<String>> = videoId.entityId()

	val receivedAt = long("received_at")
}
package net.perfectdreams.loritta.tables

import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IdTable
import org.jetbrains.exposed.sql.Column

object SentYouTubeVideoIds : IdTable<String>() {
	val channelId = text("channel").index()
	val videoId = text("video").index()
	override val id: Column<EntityID<String>> = videoId.entityId()

	val receivedAt = long("received_at")
}
Add indexes to sent videos channel IDs/video IDs fields
Add indexes to sent videos channel IDs/video IDs fields

LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta,LorittaBot/Loritta