package com.czg.product.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 店铺商品分类
 *
 * @author Tankaikai tankaikai@aliyun.com
 * @since 1.0 2025-02-10
 */
@Data
@Table("tb_shop_prod_category")
public class ShopProdCategory implements Serializable {

    @Serial
	private static final long serialVersionUID = 1L;

	/**
	* id
	*/
	@Id(keyType = KeyType.Auto)
	private Long id;
	/**
	 * 同步id
	 */
	private Long syncId;
	/**
	* 分类名称
	*/
	private String name;
	/**
	* 简称
	*/
	private String shortName;
	/**
	* 上级分类id-为0则表示是顶级
	*/
	private Long pid;
	/**
	* 图标
	*/
	private String pic;
	/**
	* 店铺Id
	*/
	private Long shopId;
	/**
	* 分类描述
	*/
	private String detail;
	/**
	* 排序
	*/
	private Integer sort;
	/**
	* 关键词
	*/
	private String keyWord;
	/**
	 * 状态 0-禁用 1-启用
	 */
	private Integer status;
    /**
     * 退菜是否退库存 1退菜退库存 2仅退菜不退库存 3每次询问-退菜后弹窗提示
     */
	private Integer refundMode;
	/**
	 * 创建时间
	 */
	@Column(onInsertValue = "now()")
	private LocalDateTime createTime;
	/**
	 * 更新时间
	 */
	@Column(onInsertValue = "now()", onUpdateValue = "now()")
	private LocalDateTime updateTime;
}