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

main.com.sceyt.chatuikit.persistence.entity.messages.AutoDeleteMessageEntity.kt Maven / Gradle / Ivy

There is a newer version: 1.7.2
Show newest version
package com.sceyt.chatuikit.persistence.entity.messages

import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey

@Entity(foreignKeys = [
        ForeignKey(
                entity = MessageEntity::class,
                parentColumns = ["message_id"],
                childColumns = ["messageId"],
                onDelete = ForeignKey.CASCADE
        )
],
tableName = "AutoDeleteMessages")
class AutoDeleteMessageEntity(
        @PrimaryKey
        val messageId: Long,
        val channelId: Long,
        val autoDeleteAt: Long
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy