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

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

package com.sceyt.chatuikit.persistence.entity.messages

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy