Skip to content

Instantly share code, notes, and snippets.

@Sottti
Created September 18, 2018 06:33
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 Sottti/2f71d09529bfb7cbf3e54315a00d7d15 to your computer and use it in GitHub Desktop.
Save Sottti/2f71d09529bfb7cbf3e54315a00d7d15 to your computer and use it in GitHub Desktop.
@Entity(tableName = "Users")
data class UserRM(
@PrimaryKey
@ColumnInfo(name = "id")
val id: Int,
@ColumnInfo(name = "name")
val name: String,
@ColumnInfo(name = "age")
val age: Int
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment