Skip to content

Instantly share code, notes, and snippets.

Last active Mar 21, 2022
What would you like to do?
Line item entity
@Entity(tableName = "line_items")
data class LineItem(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "lineItemId")
val id: Long,
@ColumnInfo(name = "productId")
val productId: String,
@ColumnInfo(name = "orderId")
val orderId: String,
@ColumnInfo(name = "quantity")
var quantity: Int,
@ColumnInfo(name = "subtotal")
var subtotal: Double,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment