io.github.dehuckakpyt.telegrambot.model.callback.DatabaseCallbackContent.kt Maven / Gradle / Ivy
package io.github.dehuckakpyt.telegrambot.model.callback
import io.github.dehuckakpyt.telegrambot.model.UUIDTable
import io.github.dehuckakpyt.telegrambot.model.source.CallbackContent
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Table
import java.time.LocalDateTime
import java.util.*
/**
* Created on 23.07.2023.
*
* Сущность для хранения содержимого callback'ов (у которых длина боль 64 символов).
*
* @author Denis Matytsin
*/
@Entity
@Table(name = "callback_content")
class DatabaseCallbackContent(
@Column(nullable = false)
override val chatId: Long,
@Column(nullable = false)
override val fromId: Long,
@Column(nullable = false)
override var callbackId: UUID,
@Column(nullable = false, columnDefinition = "text")
override var content: String,
@Column(nullable = false)
var updateDate: LocalDateTime,
) : UUIDTable(), CallbackContent
© 2015 - 2025 Weber Informatics LLC | Privacy Policy