package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * 项目名: yhlxj2
 * 文件名: CouponUserPopupsView
 * 创建者: JavaZou
 * 创建时间:2025/4/27 17:38
 */
@Getter
@Setter
@SearchBean(tables = "coupon_user_popups cup",
		where = "status is true")
public class CouponUserPopupsView {
	@DbField("cup.id")
	private Long popupsId;

	@DbField("cup.coupon_ids")
	@JsonIgnore
	private String couponIds;

	/**
	 * 触发页面
	 */
	@DbField("cup.trigger_page")
	private String triggerPage;

	/**
	 * 弹窗频率 0仅一次 1每日一次
	 */
	@DbField("cup.frequency")
	@JsonIgnore
	private Integer frequency;

	/**
	 * 有效开始时间
	 */
	@DbField("cup.start_time")
	@JsonIgnore
	private Date startTime;

	/**
	 * 有效结束时间
	 */
	@DbField("cup.end_time")
	@JsonIgnore
	private Date endTime;

	@DbIgnore
	private List<CouponUserView> couponUserViews;
}
