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

main.com.sceyt.chatuikit.persistence.entity.messages.MentionUserMessageLink.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.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey

@Entity(foreignKeys = [
    ForeignKey(
        entity = MessageEntity::class,
        parentColumns = ["tid"],
        childColumns = ["messageTid"],
        onDelete = ForeignKey.CASCADE,
        deferred = true
    )
], primaryKeys = ["messageTid", "user_id"])
data class MentionUserMessageLink(
        @ColumnInfo(index = true)
        val messageTid: Long,
        @ColumnInfo(name = "user_id", index = true)
        val userId: String
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy