package shop.alien.entity.store.dto;

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.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 优惠券商户发放好友优惠券关系表	
 * </p>
 *
 * @author ssk
 * @since 2025-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="LifeDiscountCouponStoreFriend对象", description="优惠券商户发放好友优惠券关系表	")
public class LifeDiscountCouponStoreFriendDto extends Model<LifeDiscountCouponStoreFriendDto> {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "店铺用户id")
    private Integer storeUserId;

    @ApiModelProperty(value = "券id")
    private Integer couponId;

    @ApiModelProperty(value = "好友店铺id")
    private Integer friendStoreUserId;

    @ApiModelProperty(value = "设置发放好友店铺可用优惠券列表")
    private List<LifeDiscountCouponStoreFriendDto> couponIds;

    @ApiModelProperty(value = "有效期（天）")
    private Integer expirationDate;

    @ApiModelProperty(value = "开始日期")
    private LocalDate startDate;

    @ApiModelProperty(value = "结束日期")
    private LocalDate endDate;

    @ApiModelProperty(value = "库存（优惠券数量）")
    private Integer singleQty;

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



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

}
