ServerEntity.kt 423 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package chat.rocket.android.server.infraestructure

import android.arch.persistence.room.Entity
import android.arch.persistence.room.Index
import android.arch.persistence.room.PrimaryKey

@Entity(tableName = "server", indices = arrayOf(Index(value = "host", unique = true)))
data class ServerEntity(
    @PrimaryKey(autoGenerate = true)
    val id: Long,
    val name: String,
    val host: String,
    val avatar: String
)