Skip to content
Snippets Groups Projects

PredictionEntity.kt

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    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
    )
    
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment