Skip to content

Instantly share code, notes, and snippets.

@tobioyelekan
Created May 24, 2020 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobioyelekan/9979bd2a0522a6726faa82c96e5160fc to your computer and use it in GitHub Desktop.
Save tobioyelekan/9979bd2a0522a6726faa82c96e5160fc to your computer and use it in GitHub Desktop.
User Entity Class
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "user")
data class User(
@PrimaryKey
val id: String,
val firstName: String,
val lastName: String
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment