Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import androidx.room.ColumnInfo
- import androidx.room.Entity
- import androidx.room.PrimaryKey
- @Entity
- class User {
- @PrimaryKey(autoGenerate = true)
- var uid = 0
- @ColumnInfo(name = "first_name")
- var firstName: String? = null
- @ColumnInfo(name = "last_name")
- var lastName: String? = null
- }
Add Comment
Please, Sign In to add comment