PredictionEntity.kt
The snippet can be accessed without any authentication.
Authored by
a6-alrashdi
Edited
PredictionEntity.kt 602 B
package com.example.match.db
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "predictions")
data class PredictionEntity(
@PrimaryKey(autoGenerate = true) val id: Int = 0,
@ColumnInfo(name = "matchId") val matchId: String,
@ColumnInfo(name = "userId") val userId: Int,
@ColumnInfo(name = "homeScore") val homeScore: Int,
@ColumnInfo(name = "awayScore") val awayScore: Int,
@ColumnInfo(name = "timestamp") val timestamp: Long,
@ColumnInfo(name = "isCorrect") val isCorrect: Boolean? = null
)
Please register or sign in to comment