All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.dehuckakpyt.telegrambot.model.DatabaseCallbackContent.kt Maven / Gradle / Ivy

The newest version!
package io.github.dehuckakpyt.telegrambot.model

import org.jetbrains.exposed.dao.UUIDEntity
import org.jetbrains.exposed.dao.UUIDEntityClass
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.UUIDTable
import org.jetbrains.exposed.sql.javatime.datetime
import java.util.*


/**
 * Created on 23.07.2023.
 *

* Сущность для хранения содержимого callback'ов (у которых длина боль 64 символов). * * @author Denis Matytsin */ object CallbackContents : UUIDTable("callback_content") { val chatId = long("chat_id") val fromId = long("from_id") val callbackId = uuid("callback_id").uniqueIndex() val content = text("content") val updateDate = datetime("update_date") } class DatabaseCallbackContent(id: EntityID) : UUIDEntity(id) { companion object : UUIDEntityClass(CallbackContents) var callbackId by CallbackContents.callbackId var chatId by CallbackContents.chatId var fromId by CallbackContents.fromId var content by CallbackContents.content var updateDate by CallbackContents.updateDate }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy