Skip to content

Instantly share code, notes, and snippets.

@hieuwu
Created March 21, 2022 14:41
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 hieuwu/22ccb34707859051a15bb20ac525c222 to your computer and use it in GitHub Desktop.
Save hieuwu/22ccb34707859051a15bb20ac525c222 to your computer and use it in GitHub Desktop.
Order Entity
@Entity(tableName = "orders")
data class Order(
@PrimaryKey
@ColumnInfo(name = "orderId")
val id: String,
@ColumnInfo(name = "status")
var status: String,
@ColumnInfo(name = "address")
var address: String
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment