package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品分润设定
 *
 * @author xm
 * @since 2026-05-20 14:33:00
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopGoodsProfit对象", description = "商品分润设定")
@TableName("shop_goods_profit")
public class ShopGoodsProfit implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "类型 1-股东分红 2-其他")
    private Integer type;

    @Schema(description = "商品ID")
    private Integer goodsId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "分佣比例 百分比")
    private BigDecimal profit;

    @Schema(description = "开启状态 0-未开启 1-开启")
    private Integer status;

    @Schema(description = "租户ID")
    private Integer tenantId;

    @Schema(description = "创建人")
    private Integer creator;

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

    @Schema(description = "更新人")
    private Integer updater;

    @Schema(description = "更新人")
    private LocalDateTime updateTime;

    @Schema(description = "删除 0-未删 1-已删")
    @TableLogic
    private Integer deleted;

}
