package shop.alien.entity.store;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 达人订单表
 * </p>
 *
 * @author ssk
 * @since 2025-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="LifeUserExpertOrder对象", description="达人订单表")
public class LifeUserExpertOrder extends Model<LifeUserExpertOrder> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "达人id")
    @TableField("expert_id")
    private Integer expertId;

    @ApiModelProperty(value = "商家id")
    @TableField("store_id")
    private Integer storeId;

    @ApiModelProperty(value = "推广套餐id")
    @TableField("package_id")
    private Integer packageId;

    @ApiModelProperty(value = "订单金额")
    @TableField("order_money")
    private BigDecimal orderMoney;

    @ApiModelProperty(value = "到账金额")
    @TableField("account_money")
    private BigDecimal accountMoney;

    @ApiModelProperty(value = "下单时间")
    @TableField("order_time")
    private Date orderTime;

    @ApiModelProperty(value = "完成时间")
    @TableField("complete_time")
    private Date completeTime;

    @ApiModelProperty(value = "首次打款时间")
    @TableField("first_payment_time")
    private Date firstPaymentTime;

    @ApiModelProperty(value = "尾款打款时间")
    @TableField("final_payment_time")
    private Date finalPaymentTime;

    @ApiModelProperty(value = "订单播放量")
    @TableField("order_play_count")
    private Integer orderPlayCount;

    @ApiModelProperty(value = "订单GMV")
    @TableField("order_gmv")
    private BigDecimal orderGmv;

    @ApiModelProperty(value = "临时测试")
    @TableField("actual_gmv")
    private BigDecimal actualGmv;

    @ApiModelProperty(value = "状态（1-待完成  2-已完成）")
    @TableField("status")
    private Integer status;

    @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;

    @ApiModelProperty(value = "申请首款按钮")
    @TableField(value = "first_funds_button")
    private String firstFundsButton;

    @ApiModelProperty(value = "申请尾款按钮")
    @TableField(value = "end_funds_button")
    private String endFundsButton;

}
