Created
April 17, 2020 18:08
-
-
Save deepanshu42/e4c952db92b92e43a1b918548a243fca to your computer and use it in GitHub Desktop.
User Entity Example
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 | |
| data class User( | |
| @PrimaryKey val uid: Int, | |
| @ColumnInfo(name = "first_name") val firstName: String?, | |
| @ColumnInfo(name = "last_name") val lastName: String? | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment