package com.sz.admin.system.pojo.po;

import com.mybatisflex.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.io.Serial;

import com.sz.mysql.EntityChangeListener;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author Lz
 * @since 2026-01-22
 */
@Data
@Table(value = "sys_product", onInsert = EntityChangeListener.class, onUpdate = EntityChangeListener.class)
@Schema(description = "商品信息表")
public class Product implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "商品名称")
    private String productName;

    @Schema(description = "价格")
    private BigDecimal price;

    @Schema(description = "状态(0停用 1启用)")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

}