package com.module.database.room.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 离线订单的数据保存
 */
@Entity(tableName = "localorder")
data class LocalOrderBean(

    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    @ColumnInfo
    val time: String,
    @ColumnInfo
    val price: Double,
    @ColumnInfo
    val payType: String,
    @ColumnInfo
    val sn: String,
    @ColumnInfo
    val name: String,
    @ColumnInfo(defaultValue = "0")
    var syncStatus: Int = 0 // 0=未上传, 1=上传中, 2=已上传
)
