package com.jeesharp.business.modules.marketing.tenantQrcode.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 店铺推广二维码实体，映射表 {@code cfg_marketing_tenant_qrcode}。
 *
 * @author jeesharp
 * @since 2026-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cfg_marketing_tenant_qrcode")
@Schema(description = "店铺推广二维码")
public class MarketingTenantQrcode extends BaseEntity<MarketingTenantQrcode> {

    @Schema(description = "渠道编码")
    private String channelCode;

    @Schema(description = "渠道名称")
    private String channelName;

    @Schema(description = "微信小程序 scene 参数")
    private String wxScene;

    @Schema(description = "小程序码图片URL")
    private String qrcodeUrl;

    @Schema(description = "小程序落地页路径")
    private String pagePath;

    @Schema(description = "状态：0-停用 1-启用")
    private Integer status;

    @Schema(description = "过期时间")
    private LocalDateTime expireDate;

    @Schema(description = "累计扫描次数")
    private Long scanCount;
}
