package com.pig4cloud.pig.marketing.api.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * @author: lwh
 * @date: 2025-08-31
 * @description: 营销推送记录
 */
@Data
@TableName("mkt_mgmt_push_record")
@Schema(description = "营销推送记录")
@EqualsAndHashCode(callSuper = true)
public class MktMgmtPushRecord extends Model<MktMgmtPushRecord> {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(value = "id")
	@Schema(description = "id")
	private Long id;

	/**
	 * 规则名称
	 */
	@Schema(description = "规则名称")
	private String ruleName;

	/**
	 * 推送内容
	 */
	@Schema(description = "推送内容")
	private String pushContent;

	/**
	 * 推送频率
	 */
	@Schema(description = "推送频率")
	private String pushFrequency;

	/**
	 * 推送状态
	 */
	@Schema(description = "推送状态")
	private Boolean pushStatus;

	/**
	 * 推送方式
	 */
	@Schema(description = "推送方式")
	private String pushAction;

	/**
	 * 客户端id
	 */
    @Schema(description = "客户端id")
	private String clientId;


	/**
	 * 延时推送时间
	 */
	@Schema(description = "延时推送")
	private Integer delayPush;

	/**
	 * 推送类别（0-自动 1-手动）
	 */
	@Schema(description = "推送类别（0-自动 1-手动）")
	private Integer autoPush;

	/**
	 * 推送类型
	 */
	@Schema(description = "推送类型")
	private Boolean pushType;

	/**
	 * 触发条件
	 */
	@Schema(description = "触发条件")
	private String triggerCondition;

	/**
	 * 推送详情
	 */
	@Schema(description = "推送详情")
	private String pushDetail;

	/**
	 * 规则ID
	 */
	@Schema(description = "规则ID")
	private Long ruleId;
	
	/**
	 * 推送app
	 * */
	@Schema(description = "推送app")
	private String pushApp;

	/**
	 * 推送地址
	 * */
	@Schema(description = "推送地址")
	private String pushAddr;

	/**
	 * 删除标记
	 */
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "删除标记,1:已删除,0:正常")
	private String delFlag;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	private String createBy;

	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.UPDATE)
	@Schema(description = "修改人")
	private String updateBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.UPDATE)
	@Schema(description = "更新时间")
	private LocalDateTime updateTime;
}
