package com.gingersoft.gsa.cloud.database.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;

/**
 * 作者：ELEGANT_BIN
 * 版本：1.6.0
 * 创建日期：2020-01-02
 * 修订历史：2020-01-02
 * 描述：
 */

@Entity
public class Food {

    @Id(autoincrement = true)
    private Long id;

    @NotNull
    private int foodId;
    private int parentId;
    private String foodName;
    private int restaurantId;
    private double price;
    private int totalSold;
    private int isSold;
    private String plu;




    @Generated(hash = 1605097359)
    public Food(Long id, int foodId, int parentId, String foodName,
            int restaurantId, double price, int totalSold, int isSold, String plu) {
        this.id = id;
        this.foodId = foodId;
        this.parentId = parentId;
        this.foodName = foodName;
        this.restaurantId = restaurantId;
        this.price = price;
        this.totalSold = totalSold;
        this.isSold = isSold;
        this.plu = plu;
    }

    @Generated(hash = 866324199)
    public Food() {
    }




    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getFoodId() {
        return foodId;
    }

    public void setFoodId(int foodId) {
        this.foodId = foodId;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public int getRestaurantId() {
        return restaurantId;
    }

    public void setRestaurantId(int restaurantId) {
        this.restaurantId = restaurantId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getTotalSold() {
        return totalSold;
    }

    public void setTotalSold(int totalSold) {
        this.totalSold = totalSold;
    }

    public int getIsSold() {
        return isSold;
    }

    public void setIsSold(int isSold) {
        this.isSold = isSold;
    }

    public String getPlu() {
        return plu;
    }

    public void setPlu(String plu) {
        this.plu = plu;
    }
}
