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 java.io.Serializable;
import java.time.LocalDateTime;

import java.io.Serial;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 酒品表 实体类。
 *
 * @author zs
 * @since 2025-02-26
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Table("tb_shop_storage_good")
public class ShopStorageGood implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 酒品名
     */
    private String name;

    /**
     * 图片地址
     */
    private String imgUrl;

    /**
     * 单位
     */
    private String unit;

    /**
     * 有效期(天)
     */
    private Integer period;

    /**
     * 0:未删除；1:已删除
     */
    private Integer isDel;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 0:手动；1:商品；
     */
    private Integer source;

    /**
     * 商户Id
     */
    private Long shopId;

}
