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

main.com.sceyt.chatuikit.persistence.entity.user.UserMetadataEntity.kt Maven / Gradle / Ivy

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

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.ForeignKey.Companion.CASCADE

@Entity(
    tableName = "UserMetadata",
    primaryKeys = ["user_id", "key"],
    foreignKeys = [
        ForeignKey(
            entity = UserEntity::class,
            parentColumns = ["user_id"],
            childColumns = ["user_id"],
            onDelete = CASCADE
        )
    ]
)
data class UserMetadataEntity(
        @ColumnInfo(name = "user_id")
        val userId: String,
        val key: String,
        val value: String
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy