package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 用户反向团购表
 *
 * @author ssk
 * @since 2025-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "LifeReverseGroupBuying对象", description = "用户反向团购表")
public class LifeReverseGroupBuying extends Model<LifeReverseGroupBuying> {

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

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "团购标题")
    @TableField("group_title")
    private String groupTitle;

    @ApiModelProperty(value = "团购类型, 字典表homePageType")
    @TableField("group_type")
    private Integer groupType;

    @ApiModelProperty(value = "字典类型, 字典表hotelLabel, restaurantLabel")
    @TableField("dict_id")
    private String dictId;

    @ApiModelProperty(value = "团购金额")
    @TableField("group_money")
    private Integer groupMoney;

    @ApiModelProperty(value = "团购开始时间")
    @TableField("group_start_time")
    private Date groupStartTime;

    @ApiModelProperty(value = "团购结束时间")
    @TableField("group_end_time")
    private Date groupEndTime;

    @ApiModelProperty(value = "适用人数")
    @TableField("people_num")
    private Integer peopleNum;

    @ApiModelProperty(value = "用户定位")
    @TableField("position")
    private String position;

    @ApiModelProperty(value = "用户手机号")
    @TableField("user_phone")
    private String userPhone;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "竞价截止时间")
    @TableField("bidding_end_time")
    private Date biddingEndTime;

    @ApiModelProperty(value = "状态, 0:待审核, 1:未通过, 2:已通过, 3:待接单, 4:未接单(已截止), 5:待使用, 6:已完成, 7:已退款")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "门店id")
    @TableField("store_id")
    private Integer storeId;

    @ApiModelProperty(value = "订单id")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(value = "created_user_id", fill = FieldFill.INSERT)
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField(value = "updated_user_id", fill = FieldFill.INSERT_UPDATE)
    private Integer updatedUserId;

}
