Created
May 24, 2020 15:15
-
-
Save tobioyelekan/9979bd2a0522a6726faa82c96e5160fc to your computer and use it in GitHub Desktop.
User Entity Class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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