Last active
February 7, 2022 23:03
-
-
Save Farhandroid/e18d5ff73306eabd2e8c80d7664a8a7f to your computer and use it in GitHub Desktop.
User data model
This file contains hidden or 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
@Entity(tableName = "users") | |
data class User( | |
@PrimaryKey(autoGenerate = true) | |
@ColumnInfo(name = "user_id") | |
var id: Int, | |
@ColumnInfo(name = "user_name") | |
var name: String, | |
@ColumnInfo(name = "user_email") | |
var email: String, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment