package com.develop.common.data_repo.db.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.serialization.Serializable

/**
 * RecipeFood
 * 食材
 * @author elber
 * @date 2022/6/16 18:14
 * @since 0.0.1
 */
@Serializable
@Entity(tableName = "cc_dev_recipe_food")
data class DevRecipeFood(

    @PrimaryKey
    @ColumnInfo
    var code: String,

    /**
     * 序号
     */
    @ColumnInfo
    val number: String?,

    /**
     * 份量
     */
    @ColumnInfo
    val amount: Double?,

    /**
     * 食谱编号
     */
    @ColumnInfo(name = "recipe_number")
    val recipeNumber: String?,

    /**
     * 语言
     */
    @ColumnInfo
    val lang: String?,

    /**
     * 单位
     */
    @ColumnInfo
    val unit: String?,

    /**
     * 食材名称
     */
    @ColumnInfo(name = "food_name")
    val foodName: String?,

    /**
     * 关联食谱份量
     */
    @ColumnInfo(name = "recipe_portion_size_number")
    val recipePortionSizeNumber: String?,

    @ColumnInfo(name = "update_time")
    val updateTime: Long?,

    @ColumnInfo(name = "create_time")
    val createTime: Long?
)