Created
March 21, 2022 14:41
-
-
Save hieuwu/22ccb34707859051a15bb20ac525c222 to your computer and use it in GitHub Desktop.
Order Entity
This file contains 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 = "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