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

main.com.sceyt.chatuikit.persistence.entity.channel.UserChatLink.kt Maven / Gradle / Ivy

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

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey

@Entity(indices = [Index(value = ["chat_id", "user_id"], unique = true, name = "uniqueUserInChat")])
data class UserChatLink(
        @PrimaryKey(autoGenerate = true)
        val id: Int = 0,
        @ColumnInfo(name = "user_id", index = true)
        val userId: String,
        @ColumnInfo(name = "chat_id", index = true)
        val chatId: Long,
        val role: String
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy