package shop.alien.entity.store.vo;

import com.baomidou.mybatisplus.annotation.TableLogic;
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.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商家会员卡订单表
 * </p>
 *
 * @author ssk
 * @since 2025-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "StoreMembershipCardOrder对象", description = "商家会员卡订单表")
public class StoreMembershipCardOrderVo extends Model<StoreMembershipCardOrderVo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "商铺id")
    private String storeId;

    @ApiModelProperty(value = "商铺名称")
    private String storeName;

    @ApiModelProperty(value = "会员卡id")
    private String cardId;

    @ApiModelProperty(value = "订单编号")
    private String orderCode;

    @ApiModelProperty(value = "订单状态（0：未过期，1：已过期）")
    private Integer orderStatus;

    @ApiModelProperty(value = "订单状态（0：未过期，1：已过期）")
    private String orderStatusStr;


    @ApiModelProperty(value = "会员卡类型")
    private Integer membershipType;

    @ApiModelProperty(value = "会员卡类型")
    private String membershipTypeStr;

    @ApiModelProperty(value = "订单类型（0：黄金vip，1：白金vip）")
    private Integer orderType;

    @ApiModelProperty(value = "购买类型（0：包月，1：包季，2：半年，3：包年）")
    private Integer purchasePattern;

    @ApiModelProperty(value = "购买类型（0：包月，1：包季，2：半年，3：包年）")
    private String purchasePatternStr;

    @ApiModelProperty(value = "开通时间")
    private Date openingTime;

    @ApiModelProperty(value = "到期时间")
    private Date expirationTime;

    @ApiModelProperty(value = "付款金额")
    private Double paymentAmount;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    @ApiModelProperty(value = "创建人ID")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改人ID")
    private Integer updatedUserId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
