package com.yc.ship.module.marketing.dal.dataobject.couponpackagecode;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.ship.framework.tenant.core.db.TenantBaseDO;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 优惠券-券包领取码 DO
 *
 * @author lfy
 */
@TableName("coupon_package_code")
@KeySequence("coupon_package_code_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class CouponPackageCodeDO extends TenantBaseDO {

    /**
     * ID
     */
    @TableId
    private Long id;
    /**
     * 券包ID
     */
    private Long packageId;
    /**
     * 优惠券ID
     */
    private Long couponId;
    /**
     * 领取二维码
     */
    private String qrCode;

    private Integer surplusTimes;

}