Last active
March 21, 2022 14:37
-
-
Save hieuwu/a9ec68116e55627d558cb49eb462b5af to your computer and use it in GitHub Desktop.
Product 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 = "products") | |
data class Product( | |
@PrimaryKey | |
@NonNull | |
@ColumnInfo(name = "productId") | |
val id: String, | |
@ColumnInfo(name = "name") | |
var name: String?, | |
@ColumnInfo(name = "price") | |
var price: Double | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment