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-07-22
 * @description: 营销应用
 */

@Data
@TableName("mkt_mgmt_apps")
@Schema(description = "营销应用")
@EqualsAndHashCode(callSuper = true)
public class MarketingApps extends Model<MarketingApps> {

	@Serial
	private static final long serialVersionUID = 1L;

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

	/**
	 * 应用ID
	 */
	@Schema(description = "应用ID")
	private String appId;

	/**
	 * 应用名称
	 */
	@Schema(description = "应用名称")
	private String appName;

	/**
	 * 应用图标
	 */
	@Schema(description = "应用图标")
	private String appImg;

	/**
	 * 应用链接
	 */
	@Schema(description = "应用链接")
	private String appUrl;

	/**
	 * 备用链接
	 */
	@Schema(description = "备用链接")
	private String backupUrl;

	/**
	 * 应用类型
	 */
	@Schema(description = "应用类型")
	private Integer domainType;

	/**
	 * 域名限制
	 */
	@Schema(description = "域名限制")
	private Boolean domainLimit;

	/**
	 * 营销投放
	 */
	@Schema(description = "营销投放")
	private Boolean launch;

	/**
	 * 触发规则
	 */
	@Schema(description = "触发规则")
	private Integer triggerRule;

	/**
	 * 触发频率
	 */
	@Schema(description = "触发频率")
	private String triggerNum;

	/**
	 * 状态,false-拉黑,true-启用
	 */
	@Schema(description = "状态,false-拉黑,true-启用")
	private Boolean status;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remark;

	/**
	 * 删除标记
	 */
	@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;
}
