package com.tzy.pojo.app;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.teasoft.bee.osql.annotation.Entity;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description  
 * @Author  poyee
 * @Date 2022-10-10 
 */

@Entity("app_act_config")
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class AppActConfig  implements Serializable {

	private static final long serialVersionUID =  8207660194957131175L;

   	@Column(name = "id" )
	private Long id;

	/**
	 * 活动类型:优惠劵:coupon;广告:ad
	 */
   	@Column(name = "type" )
	private String type;

	/**
	 * 关联活动id
	 */
   	//@Column(name = "act_id" )
	//private Long actId;

	/**
	 * 用户消费金额
	 */
   	@Column(name = "user_growth" )
	private Long userGrowth;

	/**
	 * 组团id
	 */
   	@Column(name = "group_info_id" )
	private Long groupInfoId;

	/**
	 * 用户购买过的卡组
	 */
   	@Column(name = "set" )
	private String set;

	/**
	 * 购买过活动商家商品,1和0
	 */
   	//@Column(name = "buy_history" )
	//private Long buyHistory;

	/**
	 * 状态:1开启,0关闭
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 描述
	 */
   	@Column(name = "description" )
	private String description;

   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 活动名称
	 */
   	@Column(name = "act_name" )
	private String actName;

	/**
	 * 开始时间
	 */
   	@Column(name = "start_time" )
	private Date startTime;

	/**
	 * 结束时间
	 */
   	@Column(name = "end_time" )
	private Date endTime;

	/**
	 * 优惠劵id集合,多个逗号拼接
	 */
   	@Column(name = "coupon_ids" )
	private String couponIds;

	/**
	 * 历史购买时间天数
	 */
   	@Column(name = "history_limit_day" )
	private Integer historyLimitDay;

	/**
	 * 当天开始时间,24小时制,0-24
	 */
   	@Column(name = "start_hour" )
	private Integer startHour;

	/**
	 * 当天结束时间,24小时制0-24
	 */
   	@Column(name = "end_hour" )
	private Integer endHour;

	/**
	 * 活动图片
	 */
   	@Column(name = "act_img" )
	private String actImg;

	/**
	 * 图片:img,视频:video,动图:gif
	 */
	private String imgType;

	/**
	 * 跳转链接
	 */
   	@Column(name = "act_url" )
	private String actUrl;

	/**
	 * 排序时间
	 */
   	@Column(name = "sort_value" )
	private Integer sortValue;

	/**
	 * 提醒时间间隔,单位小时,默认0,仅一次
	 */
   	@Column(name = "remind_time" )
	private Integer remindTime;

	/**
	 * 点击区域,默认0,任意点击,1区域点击
	 */
   	@Column(name = "click_type" )
	private Integer clickType;

	/**
	 * 持续时间,默认5秒
	 */
   	@Column(name = "last_time" )
	private Integer lastTime;

	/**
	 * 开屏广告:open_ad,首页推广:first_page
	 */
   	@Column(name = "sub_type" )
	private String subType;

	/**
	 * 参加活动要求类型:消费金额:user_growth,序列sets,buy,暂时不用
	 */
   	//@Column(name = "join_type" )
	//private String joinType;

	/**
	 * 条件1:and 0:or
	 */
   	@Column(name = "op" )
	private Integer op;
    /**关联标签id*/
	private Long catId;
}
